@Generated(value="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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
VoteSummary.Builder |
| Modifier and Type | Method and Description |
|---|---|
static VoteSummary.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
memberId()
The unique identifier of the member that cast the vote.
|
String |
memberName()
The name of the member that cast the vote.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends VoteSummary.Builder> |
serializableBuilderClass() |
VoteSummary.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
VoteValue |
vote()
The vote value, either
YES or NO. |
String |
voteAsString()
The vote value, either
YES or NO. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final VoteValue vote()
The vote value, either YES or NO.
If the service returns an enum value that is not available in the current SDK version, vote will return
VoteValue.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
voteAsString().
YES or NO.VoteValuepublic final String voteAsString()
The vote value, either YES or NO.
If the service returns an enum value that is not available in the current SDK version, vote will return
VoteValue.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
voteAsString().
YES or NO.VoteValuepublic final String memberName()
The name of the member that cast the vote.
public final String memberId()
The unique identifier of the member that cast the vote.
public VoteSummary.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<VoteSummary.Builder,VoteSummary>public static VoteSummary.Builder builder()
public static Class<? extends VoteSummary.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.