Struct aws_sdk_ec2::operation::get_default_credit_specification::builders::GetDefaultCreditSpecificationInputBuilder
source · #[non_exhaustive]pub struct GetDefaultCreditSpecificationInputBuilder { /* private fields */ }
Expand description
A builder for GetDefaultCreditSpecificationInput
.
Implementations§
source§impl GetDefaultCreditSpecificationInputBuilder
impl GetDefaultCreditSpecificationInputBuilder
sourcepub fn dry_run(self, input: bool) -> Self
pub fn dry_run(self, input: bool) -> Self
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn set_dry_run(self, input: Option<bool>) -> Self
pub fn set_dry_run(self, input: Option<bool>) -> Self
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn instance_family(self, input: UnlimitedSupportedInstanceFamily) -> Self
pub fn instance_family(self, input: UnlimitedSupportedInstanceFamily) -> Self
The instance family.
sourcepub fn set_instance_family(
self,
input: Option<UnlimitedSupportedInstanceFamily>
) -> Self
pub fn set_instance_family( self, input: Option<UnlimitedSupportedInstanceFamily> ) -> Self
The instance family.
sourcepub fn build(self) -> Result<GetDefaultCreditSpecificationInput, BuildError>
pub fn build(self) -> Result<GetDefaultCreditSpecificationInput, BuildError>
Consumes the builder and constructs a GetDefaultCreditSpecificationInput
.
Trait Implementations§
source§impl Clone for GetDefaultCreditSpecificationInputBuilder
impl Clone for GetDefaultCreditSpecificationInputBuilder
source§fn clone(&self) -> GetDefaultCreditSpecificationInputBuilder
fn clone(&self) -> GetDefaultCreditSpecificationInputBuilder
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 GetDefaultCreditSpecificationInputBuilder
impl Default for GetDefaultCreditSpecificationInputBuilder
source§fn default() -> GetDefaultCreditSpecificationInputBuilder
fn default() -> GetDefaultCreditSpecificationInputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<GetDefaultCreditSpecificationInputBuilder> for GetDefaultCreditSpecificationInputBuilder
impl PartialEq<GetDefaultCreditSpecificationInputBuilder> for GetDefaultCreditSpecificationInputBuilder
source§fn eq(&self, other: &GetDefaultCreditSpecificationInputBuilder) -> bool
fn eq(&self, other: &GetDefaultCreditSpecificationInputBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GetDefaultCreditSpecificationInputBuilder
Auto Trait Implementations§
impl RefUnwindSafe for GetDefaultCreditSpecificationInputBuilder
impl Send for GetDefaultCreditSpecificationInputBuilder
impl Sync for GetDefaultCreditSpecificationInputBuilder
impl Unpin for GetDefaultCreditSpecificationInputBuilder
impl UnwindSafe for GetDefaultCreditSpecificationInputBuilder
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