#[non_exhaustive]pub struct ProposalSummaryBuilder { /* private fields */ }
Expand description
A builder for ProposalSummary
.
Implementations§
source§impl ProposalSummaryBuilder
impl ProposalSummaryBuilder
sourcepub fn proposal_id(self, input: impl Into<String>) -> Self
pub fn proposal_id(self, input: impl Into<String>) -> Self
The unique identifier of the proposal.
sourcepub fn set_proposal_id(self, input: Option<String>) -> Self
pub fn set_proposal_id(self, input: Option<String>) -> Self
The unique identifier of the proposal.
sourcepub fn get_proposal_id(&self) -> &Option<String>
pub fn get_proposal_id(&self) -> &Option<String>
The unique identifier of the proposal.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the proposal.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the proposal.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the proposal.
sourcepub fn proposed_by_member_id(self, input: impl Into<String>) -> Self
pub fn proposed_by_member_id(self, input: impl Into<String>) -> Self
The unique identifier of the member that created the proposal.
sourcepub fn set_proposed_by_member_id(self, input: Option<String>) -> Self
pub fn set_proposed_by_member_id(self, input: Option<String>) -> Self
The unique identifier of the member that created the proposal.
sourcepub fn get_proposed_by_member_id(&self) -> &Option<String>
pub fn get_proposed_by_member_id(&self) -> &Option<String>
The unique identifier of the member that created the proposal.
sourcepub fn proposed_by_member_name(self, input: impl Into<String>) -> Self
pub fn proposed_by_member_name(self, input: impl Into<String>) -> Self
The name of the member that created the proposal.
sourcepub fn set_proposed_by_member_name(self, input: Option<String>) -> Self
pub fn set_proposed_by_member_name(self, input: Option<String>) -> Self
The name of the member that created the proposal.
sourcepub fn get_proposed_by_member_name(&self) -> &Option<String>
pub fn get_proposed_by_member_name(&self) -> &Option<String>
The name of the member that created the proposal.
sourcepub fn status(self, input: ProposalStatus) -> Self
pub fn status(self, input: ProposalStatus) -> Self
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 sufficientYES
votes among members according to theVotingPolicy
specified for theNetwork
. The specified proposal actions are carried out. -
REJECTED
- The proposal was rejected with insufficientYES
votes among members according to theVotingPolicy
specified for theNetwork
. The specifiedProposalActions
aren't carried out. -
EXPIRED
- Members didn't cast the number of votes required to determine the proposal outcome before the proposal expired. The specifiedProposalActions
aren't carried out. -
ACTION_FAILED
- One or more of the specifiedProposalActions
in a proposal that was approved couldn't be completed because of an error.
sourcepub fn set_status(self, input: Option<ProposalStatus>) -> Self
pub fn set_status(self, input: Option<ProposalStatus>) -> Self
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 sufficientYES
votes among members according to theVotingPolicy
specified for theNetwork
. The specified proposal actions are carried out. -
REJECTED
- The proposal was rejected with insufficientYES
votes among members according to theVotingPolicy
specified for theNetwork
. The specifiedProposalActions
aren't carried out. -
EXPIRED
- Members didn't cast the number of votes required to determine the proposal outcome before the proposal expired. The specifiedProposalActions
aren't carried out. -
ACTION_FAILED
- One or more of the specifiedProposalActions
in a proposal that was approved couldn't be completed because of an error.
sourcepub fn get_status(&self) -> &Option<ProposalStatus>
pub fn get_status(&self) -> &Option<ProposalStatus>
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 sufficientYES
votes among members according to theVotingPolicy
specified for theNetwork
. The specified proposal actions are carried out. -
REJECTED
- The proposal was rejected with insufficientYES
votes among members according to theVotingPolicy
specified for theNetwork
. The specifiedProposalActions
aren't carried out. -
EXPIRED
- Members didn't cast the number of votes required to determine the proposal outcome before the proposal expired. The specifiedProposalActions
aren't carried out. -
ACTION_FAILED
- One or more of the specifiedProposalActions
in a proposal that was approved couldn't be completed because of an error.
sourcepub fn creation_date(self, input: DateTime) -> Self
pub fn creation_date(self, input: DateTime) -> Self
The date and time that the proposal was created.
sourcepub fn set_creation_date(self, input: Option<DateTime>) -> Self
pub fn set_creation_date(self, input: Option<DateTime>) -> Self
The date and time that the proposal was created.
sourcepub fn get_creation_date(&self) -> &Option<DateTime>
pub fn get_creation_date(&self) -> &Option<DateTime>
The date and time that the proposal was created.
sourcepub fn expiration_date(self, input: DateTime) -> Self
pub fn expiration_date(self, input: DateTime) -> Self
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.
sourcepub fn set_expiration_date(self, input: Option<DateTime>) -> Self
pub fn set_expiration_date(self, input: Option<DateTime>) -> Self
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.
sourcepub fn get_expiration_date(&self) -> &Option<DateTime>
pub fn get_expiration_date(&self) -> &Option<DateTime>
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.
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
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.
sourcepub fn get_arn(&self) -> &Option<String>
pub fn get_arn(&self) -> &Option<String>
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.
sourcepub fn build(self) -> ProposalSummary
pub fn build(self) -> ProposalSummary
Consumes the builder and constructs a ProposalSummary
.
Trait Implementations§
source§impl Clone for ProposalSummaryBuilder
impl Clone for ProposalSummaryBuilder
source§fn clone(&self) -> ProposalSummaryBuilder
fn clone(&self) -> ProposalSummaryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ProposalSummaryBuilder
impl Debug for ProposalSummaryBuilder
source§impl Default for ProposalSummaryBuilder
impl Default for ProposalSummaryBuilder
source§fn default() -> ProposalSummaryBuilder
fn default() -> ProposalSummaryBuilder
source§impl PartialEq for ProposalSummaryBuilder
impl PartialEq for ProposalSummaryBuilder
source§fn eq(&self, other: &ProposalSummaryBuilder) -> bool
fn eq(&self, other: &ProposalSummaryBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ProposalSummaryBuilder
Auto Trait Implementations§
impl Freeze for ProposalSummaryBuilder
impl RefUnwindSafe for ProposalSummaryBuilder
impl Send for ProposalSummaryBuilder
impl Sync for ProposalSummaryBuilder
impl Unpin for ProposalSummaryBuilder
impl UnwindSafe for ProposalSummaryBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more