#[non_exhaustive]pub struct GetSessionOutputBuilder { /* private fields */ }
Expand description
A builder for GetSessionOutput
.
Implementations§
Source§impl GetSessionOutputBuilder
impl GetSessionOutputBuilder
Sourcepub fn session_arn(self, input: impl Into<String>) -> Self
pub fn session_arn(self, input: impl Into<String>) -> Self
Amazon Resource Name (ARN) for the session.
Sourcepub fn set_session_arn(self, input: Option<String>) -> Self
pub fn set_session_arn(self, input: Option<String>) -> Self
Amazon Resource Name (ARN) for the session.
Sourcepub fn get_session_arn(&self) -> &Option<String>
pub fn get_session_arn(&self) -> &Option<String>
Amazon Resource Name (ARN) for the session.
Sourcepub fn approval_team_arn(self, input: impl Into<String>) -> Self
pub fn approval_team_arn(self, input: impl Into<String>) -> Self
Amazon Resource Name (ARN) for the approval team.
Sourcepub fn set_approval_team_arn(self, input: Option<String>) -> Self
pub fn set_approval_team_arn(self, input: Option<String>) -> Self
Amazon Resource Name (ARN) for the approval team.
Sourcepub fn get_approval_team_arn(&self) -> &Option<String>
pub fn get_approval_team_arn(&self) -> &Option<String>
Amazon Resource Name (ARN) for the approval team.
Sourcepub fn approval_team_name(self, input: impl Into<String>) -> Self
pub fn approval_team_name(self, input: impl Into<String>) -> Self
Name of the approval team.
Sourcepub fn set_approval_team_name(self, input: Option<String>) -> Self
pub fn set_approval_team_name(self, input: Option<String>) -> Self
Name of the approval team.
Sourcepub fn get_approval_team_name(&self) -> &Option<String>
pub fn get_approval_team_name(&self) -> &Option<String>
Name of the approval team.
Sourcepub fn protected_resource_arn(self, input: impl Into<String>) -> Self
pub fn protected_resource_arn(self, input: impl Into<String>) -> Self
Amazon Resource Name (ARN) for the protected operation.
Sourcepub fn set_protected_resource_arn(self, input: Option<String>) -> Self
pub fn set_protected_resource_arn(self, input: Option<String>) -> Self
Amazon Resource Name (ARN) for the protected operation.
Sourcepub fn get_protected_resource_arn(&self) -> &Option<String>
pub fn get_protected_resource_arn(&self) -> &Option<String>
Amazon Resource Name (ARN) for the protected operation.
Sourcepub fn approval_strategy(self, input: ApprovalStrategyResponse) -> Self
pub fn approval_strategy(self, input: ApprovalStrategyResponse) -> Self
An ApprovalStrategyResponse
object. Contains details for how the team grants approval
Sourcepub fn set_approval_strategy(
self,
input: Option<ApprovalStrategyResponse>,
) -> Self
pub fn set_approval_strategy( self, input: Option<ApprovalStrategyResponse>, ) -> Self
An ApprovalStrategyResponse
object. Contains details for how the team grants approval
Sourcepub fn get_approval_strategy(&self) -> &Option<ApprovalStrategyResponse>
pub fn get_approval_strategy(&self) -> &Option<ApprovalStrategyResponse>
An ApprovalStrategyResponse
object. Contains details for how the team grants approval
Sourcepub fn number_of_approvers(self, input: i32) -> Self
pub fn number_of_approvers(self, input: i32) -> Self
Total number of approvers in the session.
Sourcepub fn set_number_of_approvers(self, input: Option<i32>) -> Self
pub fn set_number_of_approvers(self, input: Option<i32>) -> Self
Total number of approvers in the session.
Sourcepub fn get_number_of_approvers(&self) -> &Option<i32>
pub fn get_number_of_approvers(&self) -> &Option<i32>
Total number of approvers in the session.
Sourcepub fn initiation_time(self, input: DateTime) -> Self
pub fn initiation_time(self, input: DateTime) -> Self
Timestamp when the session was initiated.
Sourcepub fn set_initiation_time(self, input: Option<DateTime>) -> Self
pub fn set_initiation_time(self, input: Option<DateTime>) -> Self
Timestamp when the session was initiated.
Sourcepub fn get_initiation_time(&self) -> &Option<DateTime>
pub fn get_initiation_time(&self) -> &Option<DateTime>
Timestamp when the session was initiated.
Sourcepub fn expiration_time(self, input: DateTime) -> Self
pub fn expiration_time(self, input: DateTime) -> Self
Timestamp when the session will expire.
Sourcepub fn set_expiration_time(self, input: Option<DateTime>) -> Self
pub fn set_expiration_time(self, input: Option<DateTime>) -> Self
Timestamp when the session will expire.
Sourcepub fn get_expiration_time(&self) -> &Option<DateTime>
pub fn get_expiration_time(&self) -> &Option<DateTime>
Timestamp when the session will expire.
Sourcepub fn completion_time(self, input: DateTime) -> Self
pub fn completion_time(self, input: DateTime) -> Self
Timestamp when the session completed.
Sourcepub fn set_completion_time(self, input: Option<DateTime>) -> Self
pub fn set_completion_time(self, input: Option<DateTime>) -> Self
Timestamp when the session completed.
Sourcepub fn get_completion_time(&self) -> &Option<DateTime>
pub fn get_completion_time(&self) -> &Option<DateTime>
Timestamp when the session completed.
Sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
Description for the session.
Sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
Description for the session.
Sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
Description for the session.
Sourcepub fn metadata(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn metadata(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to metadata
.
To override the contents of this collection use set_metadata
.
Metadata for the session.
Sourcepub fn set_metadata(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_metadata(self, input: Option<HashMap<String, String>>) -> Self
Metadata for the session.
Sourcepub fn status(self, input: SessionStatus) -> Self
pub fn status(self, input: SessionStatus) -> Self
Status for the session. For example, if the team has approved the requested operation.
Sourcepub fn set_status(self, input: Option<SessionStatus>) -> Self
pub fn set_status(self, input: Option<SessionStatus>) -> Self
Status for the session. For example, if the team has approved the requested operation.
Sourcepub fn get_status(&self) -> &Option<SessionStatus>
pub fn get_status(&self) -> &Option<SessionStatus>
Status for the session. For example, if the team has approved the requested operation.
Sourcepub fn status_code(self, input: SessionStatusCode) -> Self
pub fn status_code(self, input: SessionStatusCode) -> Self
Status code of the session.
Sourcepub fn set_status_code(self, input: Option<SessionStatusCode>) -> Self
pub fn set_status_code(self, input: Option<SessionStatusCode>) -> Self
Status code of the session.
Sourcepub fn get_status_code(&self) -> &Option<SessionStatusCode>
pub fn get_status_code(&self) -> &Option<SessionStatusCode>
Status code of the session.
Sourcepub fn status_message(self, input: impl Into<String>) -> Self
pub fn status_message(self, input: impl Into<String>) -> Self
Message describing the status for session.
Sourcepub fn set_status_message(self, input: Option<String>) -> Self
pub fn set_status_message(self, input: Option<String>) -> Self
Message describing the status for session.
Sourcepub fn get_status_message(&self) -> &Option<String>
pub fn get_status_message(&self) -> &Option<String>
Message describing the status for session.
Sourcepub fn execution_status(self, input: SessionExecutionStatus) -> Self
pub fn execution_status(self, input: SessionExecutionStatus) -> Self
Status for the protected operation. For example, if the operation is PENDING
.
Sourcepub fn set_execution_status(self, input: Option<SessionExecutionStatus>) -> Self
pub fn set_execution_status(self, input: Option<SessionExecutionStatus>) -> Self
Status for the protected operation. For example, if the operation is PENDING
.
Sourcepub fn get_execution_status(&self) -> &Option<SessionExecutionStatus>
pub fn get_execution_status(&self) -> &Option<SessionExecutionStatus>
Status for the protected operation. For example, if the operation is PENDING
.
Sourcepub fn action_name(self, input: impl Into<String>) -> Self
pub fn action_name(self, input: impl Into<String>) -> Self
Name of the protected operation.
Sourcepub fn set_action_name(self, input: Option<String>) -> Self
pub fn set_action_name(self, input: Option<String>) -> Self
Name of the protected operation.
Sourcepub fn get_action_name(&self) -> &Option<String>
pub fn get_action_name(&self) -> &Option<String>
Name of the protected operation.
Sourcepub fn requester_service_principal(self, input: impl Into<String>) -> Self
pub fn requester_service_principal(self, input: impl Into<String>) -> Self
Service principal for the service associated with the protected operation.
Sourcepub fn set_requester_service_principal(self, input: Option<String>) -> Self
pub fn set_requester_service_principal(self, input: Option<String>) -> Self
Service principal for the service associated with the protected operation.
Sourcepub fn get_requester_service_principal(&self) -> &Option<String>
pub fn get_requester_service_principal(&self) -> &Option<String>
Service principal for the service associated with the protected operation.
Sourcepub fn requester_principal_arn(self, input: impl Into<String>) -> Self
pub fn requester_principal_arn(self, input: impl Into<String>) -> Self
IAM principal that made the operation request.
Sourcepub fn set_requester_principal_arn(self, input: Option<String>) -> Self
pub fn set_requester_principal_arn(self, input: Option<String>) -> Self
IAM principal that made the operation request.
Sourcepub fn get_requester_principal_arn(&self) -> &Option<String>
pub fn get_requester_principal_arn(&self) -> &Option<String>
IAM principal that made the operation request.
Sourcepub fn requester_account_id(self, input: impl Into<String>) -> Self
pub fn requester_account_id(self, input: impl Into<String>) -> Self
ID for the account that made the operation request.
Sourcepub fn set_requester_account_id(self, input: Option<String>) -> Self
pub fn set_requester_account_id(self, input: Option<String>) -> Self
ID for the account that made the operation request.
Sourcepub fn get_requester_account_id(&self) -> &Option<String>
pub fn get_requester_account_id(&self) -> &Option<String>
ID for the account that made the operation request.
Sourcepub fn requester_region(self, input: impl Into<String>) -> Self
pub fn requester_region(self, input: impl Into<String>) -> Self
Amazon Web Services Region where the operation request originated.
Sourcepub fn set_requester_region(self, input: Option<String>) -> Self
pub fn set_requester_region(self, input: Option<String>) -> Self
Amazon Web Services Region where the operation request originated.
Sourcepub fn get_requester_region(&self) -> &Option<String>
pub fn get_requester_region(&self) -> &Option<String>
Amazon Web Services Region where the operation request originated.
Sourcepub fn requester_comment(self, input: impl Into<String>) -> Self
pub fn requester_comment(self, input: impl Into<String>) -> Self
Message from the account that made the operation request
Sourcepub fn set_requester_comment(self, input: Option<String>) -> Self
pub fn set_requester_comment(self, input: Option<String>) -> Self
Message from the account that made the operation request
Sourcepub fn get_requester_comment(&self) -> &Option<String>
pub fn get_requester_comment(&self) -> &Option<String>
Message from the account that made the operation request
Sourcepub fn action_completion_strategy(self, input: ActionCompletionStrategy) -> Self
pub fn action_completion_strategy(self, input: ActionCompletionStrategy) -> Self
Strategy for executing the protected operation. AUTO_COMPLETION_UPON_APPROVAL
means the operation is automatically executed using the requester's permissions, if approved.
Sourcepub fn set_action_completion_strategy(
self,
input: Option<ActionCompletionStrategy>,
) -> Self
pub fn set_action_completion_strategy( self, input: Option<ActionCompletionStrategy>, ) -> Self
Strategy for executing the protected operation. AUTO_COMPLETION_UPON_APPROVAL
means the operation is automatically executed using the requester's permissions, if approved.
Sourcepub fn get_action_completion_strategy(
&self,
) -> &Option<ActionCompletionStrategy>
pub fn get_action_completion_strategy( &self, ) -> &Option<ActionCompletionStrategy>
Strategy for executing the protected operation. AUTO_COMPLETION_UPON_APPROVAL
means the operation is automatically executed using the requester's permissions, if approved.
Sourcepub fn approver_responses(
self,
input: GetSessionResponseApproverResponse,
) -> Self
pub fn approver_responses( self, input: GetSessionResponseApproverResponse, ) -> Self
Appends an item to approver_responses
.
To override the contents of this collection use set_approver_responses
.
An array of GetSessionResponseApproverResponse
objects. Contains details for approver responses in the session.
Sourcepub fn set_approver_responses(
self,
input: Option<Vec<GetSessionResponseApproverResponse>>,
) -> Self
pub fn set_approver_responses( self, input: Option<Vec<GetSessionResponseApproverResponse>>, ) -> Self
An array of GetSessionResponseApproverResponse
objects. Contains details for approver responses in the session.
Sourcepub fn get_approver_responses(
&self,
) -> &Option<Vec<GetSessionResponseApproverResponse>>
pub fn get_approver_responses( &self, ) -> &Option<Vec<GetSessionResponseApproverResponse>>
An array of GetSessionResponseApproverResponse
objects. Contains details for approver responses in the session.
Sourcepub fn build(self) -> GetSessionOutput
pub fn build(self) -> GetSessionOutput
Consumes the builder and constructs a GetSessionOutput
.
Trait Implementations§
Source§impl Clone for GetSessionOutputBuilder
impl Clone for GetSessionOutputBuilder
Source§fn clone(&self) -> GetSessionOutputBuilder
fn clone(&self) -> GetSessionOutputBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for GetSessionOutputBuilder
impl Debug for GetSessionOutputBuilder
Source§impl Default for GetSessionOutputBuilder
impl Default for GetSessionOutputBuilder
Source§fn default() -> GetSessionOutputBuilder
fn default() -> GetSessionOutputBuilder
Source§impl PartialEq for GetSessionOutputBuilder
impl PartialEq for GetSessionOutputBuilder
impl StructuralPartialEq for GetSessionOutputBuilder
Auto Trait Implementations§
impl Freeze for GetSessionOutputBuilder
impl RefUnwindSafe for GetSessionOutputBuilder
impl Send for GetSessionOutputBuilder
impl Sync for GetSessionOutputBuilder
impl Unpin for GetSessionOutputBuilder
impl UnwindSafe for GetSessionOutputBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);