Struct aws_sdk_apigateway::types::builders::ApiKeyBuilder
source · #[non_exhaustive]pub struct ApiKeyBuilder { /* private fields */ }Expand description
A builder for ApiKey.
Implementations§
source§impl ApiKeyBuilder
impl ApiKeyBuilder
sourcepub fn customer_id(self, input: impl Into<String>) -> Self
pub fn customer_id(self, input: impl Into<String>) -> Self
An Amazon Web Services Marketplace customer identifier, when integrating with the Amazon Web Services SaaS Marketplace.
sourcepub fn set_customer_id(self, input: Option<String>) -> Self
pub fn set_customer_id(self, input: Option<String>) -> Self
An Amazon Web Services Marketplace customer identifier, when integrating with the Amazon Web Services SaaS Marketplace.
sourcepub fn get_customer_id(&self) -> &Option<String>
pub fn get_customer_id(&self) -> &Option<String>
An Amazon Web Services Marketplace customer identifier, when integrating with the Amazon Web Services SaaS Marketplace.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the API Key.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the API Key.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the API Key.
sourcepub fn enabled(self, input: bool) -> Self
pub fn enabled(self, input: bool) -> Self
Specifies whether the API Key can be used by callers.
sourcepub fn set_enabled(self, input: Option<bool>) -> Self
pub fn set_enabled(self, input: Option<bool>) -> Self
Specifies whether the API Key can be used by callers.
sourcepub fn get_enabled(&self) -> &Option<bool>
pub fn get_enabled(&self) -> &Option<bool>
Specifies whether the API Key can be used by callers.
sourcepub fn created_date(self, input: DateTime) -> Self
pub fn created_date(self, input: DateTime) -> Self
The timestamp when the API Key was created.
sourcepub fn set_created_date(self, input: Option<DateTime>) -> Self
pub fn set_created_date(self, input: Option<DateTime>) -> Self
The timestamp when the API Key was created.
sourcepub fn get_created_date(&self) -> &Option<DateTime>
pub fn get_created_date(&self) -> &Option<DateTime>
The timestamp when the API Key was created.
sourcepub fn last_updated_date(self, input: DateTime) -> Self
pub fn last_updated_date(self, input: DateTime) -> Self
The timestamp when the API Key was last updated.
sourcepub fn set_last_updated_date(self, input: Option<DateTime>) -> Self
pub fn set_last_updated_date(self, input: Option<DateTime>) -> Self
The timestamp when the API Key was last updated.
sourcepub fn get_last_updated_date(&self) -> &Option<DateTime>
pub fn get_last_updated_date(&self) -> &Option<DateTime>
The timestamp when the API Key was last updated.
sourcepub fn stage_keys(self, input: impl Into<String>) -> Self
pub fn stage_keys(self, input: impl Into<String>) -> Self
Appends an item to stage_keys.
To override the contents of this collection use set_stage_keys.
A list of Stage resources that are associated with the ApiKey resource.
sourcepub fn set_stage_keys(self, input: Option<Vec<String>>) -> Self
pub fn set_stage_keys(self, input: Option<Vec<String>>) -> Self
A list of Stage resources that are associated with the ApiKey resource.
sourcepub fn get_stage_keys(&self) -> &Option<Vec<String>>
pub fn get_stage_keys(&self) -> &Option<Vec<String>>
A list of Stage resources that are associated with the ApiKey resource.
Adds a key-value pair to tags.
To override the contents of this collection use set_tags.
The collection of tags. Each tag element is associated with a given resource.
The collection of tags. Each tag element is associated with a given resource.
The collection of tags. Each tag element is associated with a given resource.
Trait Implementations§
source§impl Clone for ApiKeyBuilder
impl Clone for ApiKeyBuilder
source§fn clone(&self) -> ApiKeyBuilder
fn clone(&self) -> ApiKeyBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ApiKeyBuilder
impl Debug for ApiKeyBuilder
source§impl Default for ApiKeyBuilder
impl Default for ApiKeyBuilder
source§fn default() -> ApiKeyBuilder
fn default() -> ApiKeyBuilder
source§impl PartialEq for ApiKeyBuilder
impl PartialEq for ApiKeyBuilder
source§fn eq(&self, other: &ApiKeyBuilder) -> bool
fn eq(&self, other: &ApiKeyBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ApiKeyBuilder
Auto Trait Implementations§
impl Freeze for ApiKeyBuilder
impl RefUnwindSafe for ApiKeyBuilder
impl Send for ApiKeyBuilder
impl Sync for ApiKeyBuilder
impl Unpin for ApiKeyBuilder
impl UnwindSafe for ApiKeyBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more