Struct aws_sdk_ec2::operation::enable_image_deprecation::builders::EnableImageDeprecationInputBuilder
source · #[non_exhaustive]pub struct EnableImageDeprecationInputBuilder { /* private fields */ }
Expand description
A builder for EnableImageDeprecationInput
.
Implementations§
source§impl EnableImageDeprecationInputBuilder
impl EnableImageDeprecationInputBuilder
sourcepub fn set_image_id(self, input: Option<String>) -> Self
pub fn set_image_id(self, input: Option<String>) -> Self
The ID of the AMI.
sourcepub fn get_image_id(&self) -> &Option<String>
pub fn get_image_id(&self) -> &Option<String>
The ID of the AMI.
sourcepub fn deprecate_at(self, input: DateTime) -> Self
pub fn deprecate_at(self, input: DateTime) -> Self
The date and time to deprecate the AMI, in UTC, in the following format: YYYY-MM-DDTHH:MM:SSZ. If you specify a value for seconds, Amazon EC2 rounds the seconds to the nearest minute.
You can’t specify a date in the past. The upper limit for DeprecateAt
is 10 years from now, except for public AMIs, where the upper limit is 2 years from the creation date.
sourcepub fn set_deprecate_at(self, input: Option<DateTime>) -> Self
pub fn set_deprecate_at(self, input: Option<DateTime>) -> Self
The date and time to deprecate the AMI, in UTC, in the following format: YYYY-MM-DDTHH:MM:SSZ. If you specify a value for seconds, Amazon EC2 rounds the seconds to the nearest minute.
You can’t specify a date in the past. The upper limit for DeprecateAt
is 10 years from now, except for public AMIs, where the upper limit is 2 years from the creation date.
sourcepub fn get_deprecate_at(&self) -> &Option<DateTime>
pub fn get_deprecate_at(&self) -> &Option<DateTime>
The date and time to deprecate the AMI, in UTC, in the following format: YYYY-MM-DDTHH:MM:SSZ. If you specify a value for seconds, Amazon EC2 rounds the seconds to the nearest minute.
You can’t specify a date in the past. The upper limit for DeprecateAt
is 10 years from now, except for public AMIs, where the upper limit is 2 years from the creation date.
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 get_dry_run(&self) -> &Option<bool>
pub fn get_dry_run(&self) -> &Option<bool>
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 build(self) -> Result<EnableImageDeprecationInput, BuildError>
pub fn build(self) -> Result<EnableImageDeprecationInput, BuildError>
Consumes the builder and constructs a EnableImageDeprecationInput
.
source§impl EnableImageDeprecationInputBuilder
impl EnableImageDeprecationInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<EnableImageDeprecationOutput, SdkError<EnableImageDeprecationError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<EnableImageDeprecationOutput, SdkError<EnableImageDeprecationError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for EnableImageDeprecationInputBuilder
impl Clone for EnableImageDeprecationInputBuilder
source§fn clone(&self) -> EnableImageDeprecationInputBuilder
fn clone(&self) -> EnableImageDeprecationInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for EnableImageDeprecationInputBuilder
impl Default for EnableImageDeprecationInputBuilder
source§fn default() -> EnableImageDeprecationInputBuilder
fn default() -> EnableImageDeprecationInputBuilder
source§impl PartialEq<EnableImageDeprecationInputBuilder> for EnableImageDeprecationInputBuilder
impl PartialEq<EnableImageDeprecationInputBuilder> for EnableImageDeprecationInputBuilder
source§fn eq(&self, other: &EnableImageDeprecationInputBuilder) -> bool
fn eq(&self, other: &EnableImageDeprecationInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.