Class BinaryMavenProtocDistributionBean
java.lang.Object
io.github.ascopes.protobufmavenplugin.dependencies.MavenArtifact
io.github.ascopes.protobufmavenplugin.protoc.distributions.BinaryMavenProtocDistribution
io.github.ascopes.protobufmavenplugin.protoc.distributions.BinaryMavenProtocDistributionBean
- All Implemented Interfaces:
ProtocDistribution
@Generated(from="BinaryMavenProtocDistribution",
generator="Modifiables")
@Generated({"Modifiables.generator","BinaryMavenProtocDistribution"})
public class BinaryMavenProtocDistributionBean
extends BinaryMavenProtocDistribution
A modifiable implementation of the
BinaryMavenProtocDistribution 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.
BinaryMavenProtocDistributionBean is not thread-safe
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanReturnstrueif the default attributeartifactIdis set.voidclear()Clears the object by setting all attributes to their initial values.booleanThis instance is equal to all instances ofBinaryMavenProtocDistributionBeanthat have equal attribute values.from(MavenArtifact instance) Fill this modifiable instance with attribute values from the providedMavenArtifactinstance.from(BinaryMavenProtocDistribution instance) Fill this modifiable instance with attribute values from the providedBinaryMavenProtocDistributioninstance.from(BinaryMavenProtocDistributionBean instance) Fill this modifiable instance with attribute values from the providedBinaryMavenProtocDistributioninstance.@Nullable StringgetType()@NonNull Stringfinal booleanReturnstrueif the default attributegroupIdis set.inthashCode()Computes a hash code from attributes:classifier,groupId,artifactId,version,type.final booleanReturnstrueif all required attributes are set, indicating that the object is initialized.voidsetArtifactId(String artifactId) Assigns a value to theartifactIdattribute.voidsetClassifier(@Nullable String classifier) Assigns a value to theclassifierattribute.voidsetGroupId(String groupId) Assigns a value to thegroupIdattribute.voidAssigns a value to thetypeattribute.voidsetVersion(@NonNull String version) Assigns a value to theversionattribute.Converts toImmutableBinaryMavenProtocDistribution.final booleanReturnstrueif the default attributetypeis set.final voidReset an attribute to its initial value.final voidReset an attribute to its initial value.final voidReset an attribute to its initial value.final voidReset an attribute to its initial value.final booleanReturnstrueif the required attributeversionis set.Methods inherited from class BinaryMavenProtocDistribution
toString
-
Constructor Details
-
BinaryMavenProtocDistributionBean
public BinaryMavenProtocDistributionBean()
-
-
Method Details
-
getClassifier
- Specified by:
getClassifierin classMavenArtifact- Returns:
- value of
classifierattribute, may benull
-
getGroupId
- Overrides:
getGroupIdin classBinaryMavenProtocDistribution- Returns:
- assigned or, otherwise, newly computed, not cached value of
groupIdattribute
-
getArtifactId
- Overrides:
getArtifactIdin classBinaryMavenProtocDistribution- Returns:
- assigned or, otherwise, newly computed, not cached value of
artifactIdattribute
-
getVersion
- Specified by:
getVersionin classBinaryMavenProtocDistribution- Returns:
- value of
versionattribute, may benull
-
getType
- Overrides:
getTypein classBinaryMavenProtocDistribution- Returns:
- assigned or, otherwise, newly computed, not cached value of
typeattribute
-
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 providedMavenArtifactinstance.- Parameters:
instance- The instance from which to copy values
-
from
Fill this modifiable instance with attribute values from the providedBinaryMavenProtocDistributioninstance.- Parameters:
instance- The instance from which to copy values
-
from
Fill this modifiable instance with attribute values from the providedBinaryMavenProtocDistributioninstance. 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
-
setClassifier
Assigns a value to theclassifierattribute.- Parameters:
classifier- The value for classifier, can benull
-
setGroupId
-
setArtifactId
Assigns a value to theartifactIdattribute.If not set, this attribute will have a default value returned by the initializer of
artifactId.- Parameters:
artifactId- The value for artifactId
-
setVersion
-
setType
-
versionIsSet
public final boolean versionIsSet()Returnstrueif the required attributeversionis set.- Returns:
trueif set
-
groupIdIsSet
public final boolean groupIdIsSet()Returnstrueif the default attributegroupIdis set.- Returns:
trueif set
-
artifactIdIsSet
public final boolean artifactIdIsSet()Returnstrueif the default attributeartifactIdis set.- Returns:
trueif set
-
typeIsSet
public final boolean typeIsSet()Returnstrueif the default attributetypeis set.- Returns:
trueif set
-
unsetVersion
public final void unsetVersion()Reset an attribute to its initial value. -
unsetGroupId
public final void unsetGroupId()Reset an attribute to its initial value. -
unsetArtifactId
public final void unsetArtifactId()Reset an attribute to its initial value. -
unsetType
public final void unsetType()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 toImmutableBinaryMavenProtocDistribution.- Returns:
- An immutable instance of BinaryMavenProtocDistribution
-
equals
-
hashCode
-