#[non_exhaustive]pub struct CreateApiKeyInputBuilder { /* private fields */ }
Expand description
A builder for CreateApiKeyInput
.
Implementations§
source§impl CreateApiKeyInputBuilder
impl CreateApiKeyInputBuilder
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the ApiKey.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the ApiKey.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the ApiKey.
sourcepub fn set_enabled(self, input: Option<bool>) -> Self
pub fn set_enabled(self, input: Option<bool>) -> Self
Specifies whether the ApiKey can be used by callers.
sourcepub fn get_enabled(&self) -> &Option<bool>
pub fn get_enabled(&self) -> &Option<bool>
Specifies whether the ApiKey can be used by callers.
sourcepub fn generate_distinct_id(self, input: bool) -> Self
pub fn generate_distinct_id(self, input: bool) -> Self
Specifies whether (true
) or not (false
) the key identifier is distinct from the created API key value. This parameter is deprecated and should not be used.
sourcepub fn set_generate_distinct_id(self, input: Option<bool>) -> Self
pub fn set_generate_distinct_id(self, input: Option<bool>) -> Self
Specifies whether (true
) or not (false
) the key identifier is distinct from the created API key value. This parameter is deprecated and should not be used.
sourcepub fn get_generate_distinct_id(&self) -> &Option<bool>
pub fn get_generate_distinct_id(&self) -> &Option<bool>
Specifies whether (true
) or not (false
) the key identifier is distinct from the created API key value. This parameter is deprecated and should not be used.
sourcepub fn stage_keys(self, input: StageKey) -> Self
pub fn stage_keys(self, input: StageKey) -> Self
Appends an item to stage_keys
.
To override the contents of this collection use set_stage_keys
.
DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.
sourcepub fn set_stage_keys(self, input: Option<Vec<StageKey>>) -> Self
pub fn set_stage_keys(self, input: Option<Vec<StageKey>>) -> Self
DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.
sourcepub fn get_stage_keys(&self) -> &Option<Vec<StageKey>>
pub fn get_stage_keys(&self) -> &Option<Vec<StageKey>>
DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.
sourcepub fn customer_id(self, input: impl Into<String>) -> Self
pub fn customer_id(self, input: impl Into<String>) -> Self
An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.
sourcepub fn set_customer_id(self, input: Option<String>) -> Self
pub fn set_customer_id(self, input: Option<String>) -> Self
An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.
sourcepub fn get_customer_id(&self) -> &Option<String>
pub fn get_customer_id(&self) -> &Option<String>
An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws:
. The tag value can be up to 256 characters.
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws:
. The tag value can be up to 256 characters.
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws:
. The tag value can be up to 256 characters.
sourcepub fn build(self) -> Result<CreateApiKeyInput, BuildError>
pub fn build(self) -> Result<CreateApiKeyInput, BuildError>
Consumes the builder and constructs a CreateApiKeyInput
.
source§impl CreateApiKeyInputBuilder
impl CreateApiKeyInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateApiKeyOutput, SdkError<CreateApiKeyError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateApiKeyOutput, SdkError<CreateApiKeyError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateApiKeyInputBuilder
impl Clone for CreateApiKeyInputBuilder
source§fn clone(&self) -> CreateApiKeyInputBuilder
fn clone(&self) -> CreateApiKeyInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CreateApiKeyInputBuilder
impl Debug for CreateApiKeyInputBuilder
source§impl Default for CreateApiKeyInputBuilder
impl Default for CreateApiKeyInputBuilder
source§fn default() -> CreateApiKeyInputBuilder
fn default() -> CreateApiKeyInputBuilder
source§impl PartialEq<CreateApiKeyInputBuilder> for CreateApiKeyInputBuilder
impl PartialEq<CreateApiKeyInputBuilder> for CreateApiKeyInputBuilder
source§fn eq(&self, other: &CreateApiKeyInputBuilder) -> bool
fn eq(&self, other: &CreateApiKeyInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.