Class UriProtocDistributionBean

java.lang.Object
io.github.ascopes.protobufmavenplugin.protoc.distributions.UriProtocDistribution
io.github.ascopes.protobufmavenplugin.protoc.distributions.UriProtocDistributionBean
All Implemented Interfaces:
ProtocDistribution

@Generated(from="UriProtocDistribution", generator="Modifiables") @Generated({"Modifiables.generator","UriProtocDistribution"}) public class UriProtocDistributionBean extends UriProtocDistribution
A modifiable implementation of the UriProtocDistribution type.

Use the constructor to create new modifiable instances. You may even extend this class to add some convenience methods, however most of the methods in this class are final to preserve safety and predictable invariants.

UriProtocDistributionBean is not thread-safe

See Also:
  • Constructor Details

    • UriProtocDistributionBean

      public UriProtocDistributionBean()
  • Method Details

    • getUrl

      public URI getUrl()
      Get the URI.
      Specified by:
      getUrl in class UriProtocDistribution
      Returns:
      the URI.
    • clear

      public void clear()
      Clears the object by setting all attributes to their initial values.
    • from

      Fill this modifiable instance with attribute values from the provided UriProtocDistribution instance. Regular attribute values will be overridden, i.e. replaced with ones of an instance. Any of the instance's absent optional values will not be copied (will not override current values).
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this for use in a chained invocation
    • from

      Fill this modifiable instance with attribute values from the provided UriProtocDistribution instance. Regular attribute values will be overridden, i.e. replaced with ones of an instance. Any of the instance's absent optional values will not be copied (will not override current values).
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this for use in a chained invocation
    • setUrl

      public void setUrl(URI url)
      Assigns a value to the url attribute.
      Parameters:
      url - The value for url, can be null
    • urlIsSet

      public final boolean urlIsSet()
      Returns true if the required attribute url is set.
      Returns:
      true if set
    • unsetUrl

      public final void unsetUrl()
      Reset an attribute to its initial value.
    • isInitialized

      public final boolean isInitialized()
      Returns true if all required attributes are set, indicating that the object is initialized.
      Returns:
      true if set
    • toImmutable

      public final ImmutableUriProtocDistribution toImmutable()
      Returns:
      An immutable instance of UriProtocDistribution
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of UriProtocDistributionBean that have equal attribute values. An uninitialized instance is equal only to itself.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: url.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Generates a string representation of this UriProtocDistribution. If uninitialized, some attribute values may appear as question marks.
      Overrides:
      toString in class Object
      Returns:
      A string representation