#[non_exhaustive]pub struct ResetCacheParameterGroupInput { /* private fields */ }
Expand description
Represents the input of a ResetCacheParameterGroup
operation.
Implementations§
source§impl ResetCacheParameterGroupInput
impl ResetCacheParameterGroupInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ResetCacheParameterGroup, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ResetCacheParameterGroup, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<ResetCacheParameterGroup
>
Examples found in repository?
src/client.rs (line 10298)
10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::ResetCacheParameterGroup,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::ResetCacheParameterGroupError>,
> {
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::ResetCacheParameterGroupOutput,
aws_smithy_http::result::SdkError<crate::error::ResetCacheParameterGroupError>,
> {
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 ResetCacheParameterGroupInput
.
source§impl ResetCacheParameterGroupInput
impl ResetCacheParameterGroupInput
sourcepub fn cache_parameter_group_name(&self) -> Option<&str>
pub fn cache_parameter_group_name(&self) -> Option<&str>
The name of the cache parameter group to reset.
sourcepub fn reset_all_parameters(&self) -> bool
pub fn reset_all_parameters(&self) -> bool
If true
, all parameters in the cache parameter group are reset to their default values. If false
, only the parameters listed by ParameterNameValues
are reset to their default values.
Valid values: true
| false
sourcepub fn parameter_name_values(&self) -> Option<&[ParameterNameValue]>
pub fn parameter_name_values(&self) -> Option<&[ParameterNameValue]>
An array of parameter names to reset to their default values. If ResetAllParameters
is true
, do not use ParameterNameValues
. If ResetAllParameters
is false
, you must specify the name of at least one parameter to reset.
Trait Implementations§
source§impl Clone for ResetCacheParameterGroupInput
impl Clone for ResetCacheParameterGroupInput
source§fn clone(&self) -> ResetCacheParameterGroupInput
fn clone(&self) -> ResetCacheParameterGroupInput
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