Class VoteSummary
- java.lang.Object
-
- software.amazon.awssdk.services.managedblockchain.model.VoteSummary
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<VoteSummary.Builder,VoteSummary>
@Generated("software.amazon.awssdk:codegen") public final class VoteSummary extends Object implements SdkPojo, Serializable, ToCopyableBuilder<VoteSummary.Builder,VoteSummary>
Properties of an individual vote that a member cast for a proposal.
Applies only to Hyperledger Fabric.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceVoteSummary.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VoteSummary.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringmemberId()The unique identifier of the member that cast the vote.StringmemberName()The name of the member that cast the vote.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends VoteSummary.Builder>serializableBuilderClass()VoteSummary.BuildertoBuilder()StringtoString()Returns a string representation of this object.VoteValuevote()The vote value, eitherYESorNO.StringvoteAsString()The vote value, eitherYESorNO.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
vote
public final VoteValue vote()
The vote value, either
YESorNO.If the service returns an enum value that is not available in the current SDK version,
votewill returnVoteValue.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromvoteAsString().- Returns:
- The vote value, either
YESorNO. - See Also:
VoteValue
-
voteAsString
public final String voteAsString()
The vote value, either
YESorNO.If the service returns an enum value that is not available in the current SDK version,
votewill returnVoteValue.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromvoteAsString().- Returns:
- The vote value, either
YESorNO. - See Also:
VoteValue
-
memberName
public final String memberName()
The name of the member that cast the vote.
- Returns:
- The name of the member that cast the vote.
-
memberId
public final String memberId()
The unique identifier of the member that cast the vote.
- Returns:
- The unique identifier of the member that cast the vote.
-
toBuilder
public VoteSummary.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<VoteSummary.Builder,VoteSummary>
-
builder
public static VoteSummary.Builder builder()
-
serializableBuilderClass
public static Class<? extends VoteSummary.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-