Struct aws_sdk_savingsplans::operation::return_savings_plan::builders::ReturnSavingsPlanInputBuilder
source · #[non_exhaustive]pub struct ReturnSavingsPlanInputBuilder { /* private fields */ }
Expand description
A builder for ReturnSavingsPlanInput
.
Implementations§
source§impl ReturnSavingsPlanInputBuilder
impl ReturnSavingsPlanInputBuilder
sourcepub fn savings_plan_id(self, input: impl Into<String>) -> Self
pub fn savings_plan_id(self, input: impl Into<String>) -> Self
The ID of the Savings Plan.
This field is required.sourcepub fn set_savings_plan_id(self, input: Option<String>) -> Self
pub fn set_savings_plan_id(self, input: Option<String>) -> Self
The ID of the Savings Plan.
sourcepub fn get_savings_plan_id(&self) -> &Option<String>
pub fn get_savings_plan_id(&self) -> &Option<String>
The ID of the Savings Plan.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
sourcepub fn build(self) -> Result<ReturnSavingsPlanInput, BuildError>
pub fn build(self) -> Result<ReturnSavingsPlanInput, BuildError>
Consumes the builder and constructs a ReturnSavingsPlanInput
.
source§impl ReturnSavingsPlanInputBuilder
impl ReturnSavingsPlanInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<ReturnSavingsPlanOutput, SdkError<ReturnSavingsPlanError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<ReturnSavingsPlanOutput, SdkError<ReturnSavingsPlanError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for ReturnSavingsPlanInputBuilder
impl Clone for ReturnSavingsPlanInputBuilder
source§fn clone(&self) -> ReturnSavingsPlanInputBuilder
fn clone(&self) -> ReturnSavingsPlanInputBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for ReturnSavingsPlanInputBuilder
impl Default for ReturnSavingsPlanInputBuilder
source§fn default() -> ReturnSavingsPlanInputBuilder
fn default() -> ReturnSavingsPlanInputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for ReturnSavingsPlanInputBuilder
impl PartialEq for ReturnSavingsPlanInputBuilder
source§fn eq(&self, other: &ReturnSavingsPlanInputBuilder) -> bool
fn eq(&self, other: &ReturnSavingsPlanInputBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ReturnSavingsPlanInputBuilder
Auto Trait Implementations§
impl Freeze for ReturnSavingsPlanInputBuilder
impl RefUnwindSafe for ReturnSavingsPlanInputBuilder
impl Send for ReturnSavingsPlanInputBuilder
impl Sync for ReturnSavingsPlanInputBuilder
impl Unpin for ReturnSavingsPlanInputBuilder
impl UnwindSafe for ReturnSavingsPlanInputBuilder
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.