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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears the object by setting all attributes to their initial values.booleanThis instance is equal to all instances ofUriProtocDistributionBeanthat have equal attribute values.from(UriProtocDistribution instance) Fill this modifiable instance with attribute values from the providedUriProtocDistributioninstance.from(UriProtocDistributionBean instance) Fill this modifiable instance with attribute values from the providedUriProtocDistributioninstance.getUrl()Get the URI.inthashCode()Computes a hash code from attributes:url.final booleanReturnstrueif all required attributes are set, indicating that the object is initialized.voidAssigns a value to theurlattribute.Converts toImmutableUriProtocDistribution.toString()Generates a string representation of thisUriProtocDistribution.final voidunsetUrl()Reset an attribute to its initial value.final booleanurlIsSet()Returnstrueif the required attributeurlis set.
-
Constructor Details
-
UriProtocDistributionBean
public UriProtocDistributionBean()
-
-
Method Details
-
getUrl
Get the URI.- Specified by:
getUrlin classUriProtocDistribution- 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 providedUriProtocDistributioninstance. 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:
thisfor use in a chained invocation
-
from
Fill this modifiable instance with attribute values from the providedUriProtocDistributioninstance. 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:
thisfor use in a chained invocation
-
setUrl
-
urlIsSet
public final boolean urlIsSet()Returnstrueif the required attributeurlis set.- Returns:
trueif set
-
unsetUrl
public final void unsetUrl()Reset an attribute to its initial value. -
isInitialized
public final boolean isInitialized()Returnstrueif all required attributes are set, indicating that the object is initialized.- Returns:
trueif set
-
toImmutable
Converts toImmutableUriProtocDistribution.- Returns:
- An immutable instance of UriProtocDistribution
-
equals
-
hashCode
-
toString
-