#[non_exhaustive]pub struct RestoreCoreNetworkPolicyVersionInput { /* private fields */ }Implementations§
source§impl RestoreCoreNetworkPolicyVersionInput
impl RestoreCoreNetworkPolicyVersionInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<RestoreCoreNetworkPolicyVersion, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<RestoreCoreNetworkPolicyVersion, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<RestoreCoreNetworkPolicyVersion>
Examples found in repository?
src/client.rs (line 9254)
9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::RestoreCoreNetworkPolicyVersion,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::RestoreCoreNetworkPolicyVersionError>,
> {
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::RestoreCoreNetworkPolicyVersionOutput,
aws_smithy_http::result::SdkError<crate::error::RestoreCoreNetworkPolicyVersionError>,
> {
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 RestoreCoreNetworkPolicyVersionInput.
source§impl RestoreCoreNetworkPolicyVersionInput
impl RestoreCoreNetworkPolicyVersionInput
sourcepub fn core_network_id(&self) -> Option<&str>
pub fn core_network_id(&self) -> Option<&str>
The ID of a core network.
sourcepub fn policy_version_id(&self) -> Option<i32>
pub fn policy_version_id(&self) -> Option<i32>
The ID of the policy version to restore.
Trait Implementations§
source§impl Clone for RestoreCoreNetworkPolicyVersionInput
impl Clone for RestoreCoreNetworkPolicyVersionInput
source§fn clone(&self) -> RestoreCoreNetworkPolicyVersionInput
fn clone(&self) -> RestoreCoreNetworkPolicyVersionInput
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