Struct aws_sdk_ec2::input::DeleteDhcpOptionsInput
source · #[non_exhaustive]pub struct DeleteDhcpOptionsInput { /* private fields */ }
Implementations§
source§impl DeleteDhcpOptionsInput
impl DeleteDhcpOptionsInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DeleteDhcpOptions, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<DeleteDhcpOptions, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<DeleteDhcpOptions
>
Examples found in repository?
src/client.rs (line 26249)
26235 26236 26237 26238 26239 26240 26241 26242 26243 26244 26245 26246 26247 26248 26249 26250 26251 26252 26253 26254 26255 26256 26257 26258 26259 26260 26261 26262 26263 26264 26265 26266 26267 26268 26269 26270 26271 26272 26273 26274 26275 26276 26277
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::DeleteDhcpOptions,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::DeleteDhcpOptionsError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::DeleteDhcpOptionsOutput,
aws_smithy_http::result::SdkError<crate::error::DeleteDhcpOptionsError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture DeleteDhcpOptionsInput
.
source§impl DeleteDhcpOptionsInput
impl DeleteDhcpOptionsInput
sourcepub fn dhcp_options_id(&self) -> Option<&str>
pub fn dhcp_options_id(&self) -> Option<&str>
The ID of the DHCP options set.
Trait Implementations§
source§impl Clone for DeleteDhcpOptionsInput
impl Clone for DeleteDhcpOptionsInput
source§fn clone(&self) -> DeleteDhcpOptionsInput
fn clone(&self) -> DeleteDhcpOptionsInput
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 more