@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ProposalSummary extends Object implements Serializable, Cloneable, StructuredPojo
Properties of a proposal.
Applies only to Hyperledger Fabric.
Constructor and Description |
---|
ProposalSummary() |
Modifier and Type | Method and Description |
---|---|
ProposalSummary |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) of the proposal.
|
Date |
getCreationDate()
The date and time that the proposal was created.
|
String |
getDescription()
The description of the proposal.
|
Date |
getExpirationDate()
The date and time that the proposal expires.
|
String |
getProposalId()
The unique identifier of the proposal.
|
String |
getProposedByMemberId()
The unique identifier of the member that created the proposal.
|
String |
getProposedByMemberName()
The name of the member that created the proposal.
|
String |
getStatus()
The status of the proposal.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The Amazon Resource Name (ARN) of the proposal.
|
void |
setCreationDate(Date creationDate)
The date and time that the proposal was created.
|
void |
setDescription(String description)
The description of the proposal.
|
void |
setExpirationDate(Date expirationDate)
The date and time that the proposal expires.
|
void |
setProposalId(String proposalId)
The unique identifier of the proposal.
|
void |
setProposedByMemberId(String proposedByMemberId)
The unique identifier of the member that created the proposal.
|
void |
setProposedByMemberName(String proposedByMemberName)
The name of the member that created the proposal.
|
void |
setStatus(String status)
The status of the proposal.
|
String |
toString()
Returns a string representation of this object.
|
ProposalSummary |
withArn(String arn)
The Amazon Resource Name (ARN) of the proposal.
|
ProposalSummary |
withCreationDate(Date creationDate)
The date and time that the proposal was created.
|
ProposalSummary |
withDescription(String description)
The description of the proposal.
|
ProposalSummary |
withExpirationDate(Date expirationDate)
The date and time that the proposal expires.
|
ProposalSummary |
withProposalId(String proposalId)
The unique identifier of the proposal.
|
ProposalSummary |
withProposedByMemberId(String proposedByMemberId)
The unique identifier of the member that created the proposal.
|
ProposalSummary |
withProposedByMemberName(String proposedByMemberName)
The name of the member that created the proposal.
|
ProposalSummary |
withStatus(ProposalStatus status)
The status of the proposal.
|
ProposalSummary |
withStatus(String status)
The status of the proposal.
|
public void setProposalId(String proposalId)
The unique identifier of the proposal.
proposalId
- The unique identifier of the proposal.public String getProposalId()
The unique identifier of the proposal.
public ProposalSummary withProposalId(String proposalId)
The unique identifier of the proposal.
proposalId
- The unique identifier of the proposal.public void setDescription(String description)
The description of the proposal.
description
- The description of the proposal.public String getDescription()
The description of the proposal.
public ProposalSummary withDescription(String description)
The description of the proposal.
description
- The description of the proposal.public void setProposedByMemberId(String proposedByMemberId)
The unique identifier of the member that created the proposal.
proposedByMemberId
- The unique identifier of the member that created the proposal.public String getProposedByMemberId()
The unique identifier of the member that created the proposal.
public ProposalSummary withProposedByMemberId(String proposedByMemberId)
The unique identifier of the member that created the proposal.
proposedByMemberId
- The unique identifier of the member that created the proposal.public void setProposedByMemberName(String proposedByMemberName)
The name of the member that created the proposal.
proposedByMemberName
- The name of the member that created the proposal.public String getProposedByMemberName()
The name of the member that created the proposal.
public ProposalSummary withProposedByMemberName(String proposedByMemberName)
The name of the member that created the proposal.
proposedByMemberName
- The name of the member that created the proposal.public void setStatus(String status)
The status of the proposal. Values are as follows:
IN_PROGRESS
- The proposal is active and open for member voting.
APPROVED
- The proposal was approved with sufficient YES
votes among members according
to the VotingPolicy
specified for the Network
. The specified proposal actions are
carried out.
REJECTED
- The proposal was rejected with insufficient YES
votes among members
according to the VotingPolicy
specified for the Network
. The specified
ProposalActions
aren't carried out.
EXPIRED
- Members didn't cast the number of votes required to determine the proposal outcome before
the proposal expired. The specified ProposalActions
aren't carried out.
ACTION_FAILED
- One or more of the specified ProposalActions
in a proposal that was
approved couldn't be completed because of an error.
status
- The status of the proposal. Values are as follows:
IN_PROGRESS
- The proposal is active and open for member voting.
APPROVED
- The proposal was approved with sufficient YES
votes among members
according to the VotingPolicy
specified for the Network
. The specified proposal
actions are carried out.
REJECTED
- The proposal was rejected with insufficient YES
votes among members
according to the VotingPolicy
specified for the Network
. The specified
ProposalActions
aren't carried out.
EXPIRED
- Members didn't cast the number of votes required to determine the proposal outcome
before the proposal expired. The specified ProposalActions
aren't carried out.
ACTION_FAILED
- One or more of the specified ProposalActions
in a proposal that
was approved couldn't be completed because of an error.
ProposalStatus
public String getStatus()
The status of the proposal. Values are as follows:
IN_PROGRESS
- The proposal is active and open for member voting.
APPROVED
- The proposal was approved with sufficient YES
votes among members according
to the VotingPolicy
specified for the Network
. The specified proposal actions are
carried out.
REJECTED
- The proposal was rejected with insufficient YES
votes among members
according to the VotingPolicy
specified for the Network
. The specified
ProposalActions
aren't carried out.
EXPIRED
- Members didn't cast the number of votes required to determine the proposal outcome before
the proposal expired. The specified ProposalActions
aren't carried out.
ACTION_FAILED
- One or more of the specified ProposalActions
in a proposal that was
approved couldn't be completed because of an error.
IN_PROGRESS
- The proposal is active and open for member voting.
APPROVED
- The proposal was approved with sufficient YES
votes among members
according to the VotingPolicy
specified for the Network
. The specified proposal
actions are carried out.
REJECTED
- The proposal was rejected with insufficient YES
votes among members
according to the VotingPolicy
specified for the Network
. The specified
ProposalActions
aren't carried out.
EXPIRED
- Members didn't cast the number of votes required to determine the proposal outcome
before the proposal expired. The specified ProposalActions
aren't carried out.
ACTION_FAILED
- One or more of the specified ProposalActions
in a proposal that
was approved couldn't be completed because of an error.
ProposalStatus
public ProposalSummary withStatus(String status)
The status of the proposal. Values are as follows:
IN_PROGRESS
- The proposal is active and open for member voting.
APPROVED
- The proposal was approved with sufficient YES
votes among members according
to the VotingPolicy
specified for the Network
. The specified proposal actions are
carried out.
REJECTED
- The proposal was rejected with insufficient YES
votes among members
according to the VotingPolicy
specified for the Network
. The specified
ProposalActions
aren't carried out.
EXPIRED
- Members didn't cast the number of votes required to determine the proposal outcome before
the proposal expired. The specified ProposalActions
aren't carried out.
ACTION_FAILED
- One or more of the specified ProposalActions
in a proposal that was
approved couldn't be completed because of an error.
status
- The status of the proposal. Values are as follows:
IN_PROGRESS
- The proposal is active and open for member voting.
APPROVED
- The proposal was approved with sufficient YES
votes among members
according to the VotingPolicy
specified for the Network
. The specified proposal
actions are carried out.
REJECTED
- The proposal was rejected with insufficient YES
votes among members
according to the VotingPolicy
specified for the Network
. The specified
ProposalActions
aren't carried out.
EXPIRED
- Members didn't cast the number of votes required to determine the proposal outcome
before the proposal expired. The specified ProposalActions
aren't carried out.
ACTION_FAILED
- One or more of the specified ProposalActions
in a proposal that
was approved couldn't be completed because of an error.
ProposalStatus
public ProposalSummary withStatus(ProposalStatus status)
The status of the proposal. Values are as follows:
IN_PROGRESS
- The proposal is active and open for member voting.
APPROVED
- The proposal was approved with sufficient YES
votes among members according
to the VotingPolicy
specified for the Network
. The specified proposal actions are
carried out.
REJECTED
- The proposal was rejected with insufficient YES
votes among members
according to the VotingPolicy
specified for the Network
. The specified
ProposalActions
aren't carried out.
EXPIRED
- Members didn't cast the number of votes required to determine the proposal outcome before
the proposal expired. The specified ProposalActions
aren't carried out.
ACTION_FAILED
- One or more of the specified ProposalActions
in a proposal that was
approved couldn't be completed because of an error.
status
- The status of the proposal. Values are as follows:
IN_PROGRESS
- The proposal is active and open for member voting.
APPROVED
- The proposal was approved with sufficient YES
votes among members
according to the VotingPolicy
specified for the Network
. The specified proposal
actions are carried out.
REJECTED
- The proposal was rejected with insufficient YES
votes among members
according to the VotingPolicy
specified for the Network
. The specified
ProposalActions
aren't carried out.
EXPIRED
- Members didn't cast the number of votes required to determine the proposal outcome
before the proposal expired. The specified ProposalActions
aren't carried out.
ACTION_FAILED
- One or more of the specified ProposalActions
in a proposal that
was approved couldn't be completed because of an error.
ProposalStatus
public void setCreationDate(Date creationDate)
The date and time that the proposal was created.
creationDate
- The date and time that the proposal was created.public Date getCreationDate()
The date and time that the proposal was created.
public ProposalSummary withCreationDate(Date creationDate)
The date and time that the proposal was created.
creationDate
- The date and time that the proposal was created.public void setExpirationDate(Date expirationDate)
The date and time that the proposal expires. This is the CreationDate
plus the
ProposalDurationInHours
that is specified in the ProposalThresholdPolicy
. After this
date and time, if members haven't cast enough votes to determine the outcome according to the voting policy, the
proposal is EXPIRED
and Actions
aren't carried out.
expirationDate
- The date and time that the proposal expires. This is the CreationDate
plus the
ProposalDurationInHours
that is specified in the ProposalThresholdPolicy
. After
this date and time, if members haven't cast enough votes to determine the outcome according to the voting
policy, the proposal is EXPIRED
and Actions
aren't carried out.public Date getExpirationDate()
The date and time that the proposal expires. This is the CreationDate
plus the
ProposalDurationInHours
that is specified in the ProposalThresholdPolicy
. After this
date and time, if members haven't cast enough votes to determine the outcome according to the voting policy, the
proposal is EXPIRED
and Actions
aren't carried out.
CreationDate
plus the
ProposalDurationInHours
that is specified in the ProposalThresholdPolicy
. After
this date and time, if members haven't cast enough votes to determine the outcome according to the voting
policy, the proposal is EXPIRED
and Actions
aren't carried out.public ProposalSummary withExpirationDate(Date expirationDate)
The date and time that the proposal expires. This is the CreationDate
plus the
ProposalDurationInHours
that is specified in the ProposalThresholdPolicy
. After this
date and time, if members haven't cast enough votes to determine the outcome according to the voting policy, the
proposal is EXPIRED
and Actions
aren't carried out.
expirationDate
- The date and time that the proposal expires. This is the CreationDate
plus the
ProposalDurationInHours
that is specified in the ProposalThresholdPolicy
. After
this date and time, if members haven't cast enough votes to determine the outcome according to the voting
policy, the proposal is EXPIRED
and Actions
aren't carried out.public void setArn(String arn)
The Amazon Resource Name (ARN) of the proposal. For more information about ARNs and their format, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
arn
- The Amazon Resource Name (ARN) of the proposal. For more information about ARNs and their format, see Amazon Resource Names
(ARNs) in the Amazon Web Services General Reference.public String getArn()
The Amazon Resource Name (ARN) of the proposal. For more information about ARNs and their format, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
public ProposalSummary withArn(String arn)
The Amazon Resource Name (ARN) of the proposal. For more information about ARNs and their format, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
arn
- The Amazon Resource Name (ARN) of the proposal. For more information about ARNs and their format, see Amazon Resource Names
(ARNs) in the Amazon Web Services General Reference.public String toString()
toString
in class Object
Object.toString()
public ProposalSummary clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.