Struct aws_sdk_apigateway::input::create_api_key_input::Builder
source · [−]pub struct Builder { /* private fields */ }Expand description
A builder for CreateApiKeyInput.
Implementations
sourceimpl Builder
impl Builder
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 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 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 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 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.
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.
sourcepub fn build(self) -> Result<CreateApiKeyInput, BuildError>
pub fn build(self) -> Result<CreateApiKeyInput, BuildError>
Consumes the builder and constructs a CreateApiKeyInput.