Struct aws_sdk_apigateway::client::fluent_builders::GetApiKey
source · pub struct GetApiKey { /* private fields */ }
Expand description
Fluent builder constructing a request to GetApiKey
.
Gets information about the current ApiKey resource.
Implementations§
source§impl GetApiKey
impl GetApiKey
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<GetApiKey, AwsResponseRetryClassifier>, SdkError<GetApiKeyError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<GetApiKey, AwsResponseRetryClassifier>, SdkError<GetApiKeyError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(self) -> Result<GetApiKeyOutput, SdkError<GetApiKeyError>>
pub async fn send(self) -> Result<GetApiKeyOutput, SdkError<GetApiKeyError>>
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, which can be set when configuring the client.
sourcepub fn set_api_key(self, input: Option<String>) -> Self
pub fn set_api_key(self, input: Option<String>) -> Self
The identifier of the ApiKey resource.
sourcepub fn include_value(self, input: bool) -> Self
pub fn include_value(self, input: bool) -> Self
A boolean flag to specify whether (true
) or not (false
) the result contains the key value.
sourcepub fn set_include_value(self, input: Option<bool>) -> Self
pub fn set_include_value(self, input: Option<bool>) -> Self
A boolean flag to specify whether (true
) or not (false
) the result contains the key value.