@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class VoteSummary extends Object implements Serializable, Cloneable, StructuredPojo
Properties of an individual vote that a member cast for a proposal.
Applies only to Hyperledger Fabric.
| Constructor and Description |
|---|
VoteSummary() |
| Modifier and Type | Method and Description |
|---|---|
VoteSummary |
clone() |
boolean |
equals(Object obj) |
String |
getMemberId()
The unique identifier of the member that cast the vote.
|
String |
getMemberName()
The name of the member that cast the vote.
|
String |
getVote()
The vote value, either
YES or NO. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setMemberId(String memberId)
The unique identifier of the member that cast the vote.
|
void |
setMemberName(String memberName)
The name of the member that cast the vote.
|
void |
setVote(String vote)
The vote value, either
YES or NO. |
String |
toString()
Returns a string representation of this object.
|
VoteSummary |
withMemberId(String memberId)
The unique identifier of the member that cast the vote.
|
VoteSummary |
withMemberName(String memberName)
The name of the member that cast the vote.
|
VoteSummary |
withVote(String vote)
The vote value, either
YES or NO. |
VoteSummary |
withVote(VoteValue vote)
The vote value, either
YES or NO. |
public void setVote(String vote)
The vote value, either YES or NO.
vote - The vote value, either YES or NO.VoteValuepublic String getVote()
The vote value, either YES or NO.
YES or NO.VoteValuepublic VoteSummary withVote(String vote)
The vote value, either YES or NO.
vote - The vote value, either YES or NO.VoteValuepublic VoteSummary withVote(VoteValue vote)
The vote value, either YES or NO.
vote - The vote value, either YES or NO.VoteValuepublic void setMemberName(String memberName)
The name of the member that cast the vote.
memberName - The name of the member that cast the vote.public String getMemberName()
The name of the member that cast the vote.
public VoteSummary withMemberName(String memberName)
The name of the member that cast the vote.
memberName - The name of the member that cast the vote.public void setMemberId(String memberId)
The unique identifier of the member that cast the vote.
memberId - The unique identifier of the member that cast the vote.public String getMemberId()
The unique identifier of the member that cast the vote.
public VoteSummary withMemberId(String memberId)
The unique identifier of the member that cast the vote.
memberId - The unique identifier of the member that cast the vote.public String toString()
toString in class ObjectObject.toString()public VoteSummary clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.