#[non_exhaustive]pub struct AwsApiGatewayRestApiDetailsBuilder { /* private fields */ }Expand description
A builder for AwsApiGatewayRestApiDetails.
Implementations§
source§impl AwsApiGatewayRestApiDetailsBuilder
impl AwsApiGatewayRestApiDetailsBuilder
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description of the REST API.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description of the REST API.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A description of the REST API.
sourcepub fn created_date(self, input: impl Into<String>) -> Self
pub fn created_date(self, input: impl Into<String>) -> Self
Indicates when the API was created.
This field accepts only the specified formats. Timestamps can end with Z or ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
-
YYYY-MM-DDTHH:MM:SSZ(for example,2019-01-31T23:00:00Z) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ(for example,2019-01-31T23:00:00.123456789Z) -
YYYY-MM-DDTHH:MM:SS+HH:MM(for example,2024-01-04T15:25:10+17:59) -
YYYY-MM-DDTHH:MM:SS-HHMM(for example,2024-01-04T15:25:10-1759) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM(for example,2024-01-04T15:25:10.123456789+17:59)
sourcepub fn set_created_date(self, input: Option<String>) -> Self
pub fn set_created_date(self, input: Option<String>) -> Self
Indicates when the API was created.
This field accepts only the specified formats. Timestamps can end with Z or ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
-
YYYY-MM-DDTHH:MM:SSZ(for example,2019-01-31T23:00:00Z) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ(for example,2019-01-31T23:00:00.123456789Z) -
YYYY-MM-DDTHH:MM:SS+HH:MM(for example,2024-01-04T15:25:10+17:59) -
YYYY-MM-DDTHH:MM:SS-HHMM(for example,2024-01-04T15:25:10-1759) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM(for example,2024-01-04T15:25:10.123456789+17:59)
sourcepub fn get_created_date(&self) -> &Option<String>
pub fn get_created_date(&self) -> &Option<String>
Indicates when the API was created.
This field accepts only the specified formats. Timestamps can end with Z or ("+" / "-") time-hour [":" time-minute]. The time-secfrac after seconds is limited to a maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
-
YYYY-MM-DDTHH:MM:SSZ(for example,2019-01-31T23:00:00Z) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ(for example,2019-01-31T23:00:00.123456789Z) -
YYYY-MM-DDTHH:MM:SS+HH:MM(for example,2024-01-04T15:25:10+17:59) -
YYYY-MM-DDTHH:MM:SS-HHMM(for example,2024-01-04T15:25:10-1759) -
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM(for example,2024-01-04T15:25:10.123456789+17:59)
sourcepub fn version(self, input: impl Into<String>) -> Self
pub fn version(self, input: impl Into<String>) -> Self
The version identifier for the REST API.
sourcepub fn set_version(self, input: Option<String>) -> Self
pub fn set_version(self, input: Option<String>) -> Self
The version identifier for the REST API.
sourcepub fn get_version(&self) -> &Option<String>
pub fn get_version(&self) -> &Option<String>
The version identifier for the REST API.
sourcepub fn binary_media_types(self, input: impl Into<String>) -> Self
pub fn binary_media_types(self, input: impl Into<String>) -> Self
Appends an item to binary_media_types.
To override the contents of this collection use set_binary_media_types.
The list of binary media types supported by the REST API.
sourcepub fn set_binary_media_types(self, input: Option<Vec<String>>) -> Self
pub fn set_binary_media_types(self, input: Option<Vec<String>>) -> Self
The list of binary media types supported by the REST API.
sourcepub fn get_binary_media_types(&self) -> &Option<Vec<String>>
pub fn get_binary_media_types(&self) -> &Option<Vec<String>>
The list of binary media types supported by the REST API.
sourcepub fn minimum_compression_size(self, input: i32) -> Self
pub fn minimum_compression_size(self, input: i32) -> Self
The minimum size in bytes of a payload before compression is enabled.
If null, then compression is disabled.
If 0, then all payloads are compressed.
sourcepub fn set_minimum_compression_size(self, input: Option<i32>) -> Self
pub fn set_minimum_compression_size(self, input: Option<i32>) -> Self
The minimum size in bytes of a payload before compression is enabled.
If null, then compression is disabled.
If 0, then all payloads are compressed.
sourcepub fn get_minimum_compression_size(&self) -> &Option<i32>
pub fn get_minimum_compression_size(&self) -> &Option<i32>
The minimum size in bytes of a payload before compression is enabled.
If null, then compression is disabled.
If 0, then all payloads are compressed.
sourcepub fn api_key_source(self, input: impl Into<String>) -> Self
pub fn api_key_source(self, input: impl Into<String>) -> Self
The source of the API key for metering requests according to a usage plan.
HEADER indicates whether to read the API key from the X-API-Key header of a request.
AUTHORIZER indicates whether to read the API key from the UsageIdentifierKey from a custom authorizer.
sourcepub fn set_api_key_source(self, input: Option<String>) -> Self
pub fn set_api_key_source(self, input: Option<String>) -> Self
The source of the API key for metering requests according to a usage plan.
HEADER indicates whether to read the API key from the X-API-Key header of a request.
AUTHORIZER indicates whether to read the API key from the UsageIdentifierKey from a custom authorizer.
sourcepub fn get_api_key_source(&self) -> &Option<String>
pub fn get_api_key_source(&self) -> &Option<String>
The source of the API key for metering requests according to a usage plan.
HEADER indicates whether to read the API key from the X-API-Key header of a request.
AUTHORIZER indicates whether to read the API key from the UsageIdentifierKey from a custom authorizer.
sourcepub fn endpoint_configuration(
self,
input: AwsApiGatewayEndpointConfiguration
) -> Self
pub fn endpoint_configuration( self, input: AwsApiGatewayEndpointConfiguration ) -> Self
The endpoint configuration of the REST API.
sourcepub fn set_endpoint_configuration(
self,
input: Option<AwsApiGatewayEndpointConfiguration>
) -> Self
pub fn set_endpoint_configuration( self, input: Option<AwsApiGatewayEndpointConfiguration> ) -> Self
The endpoint configuration of the REST API.
sourcepub fn get_endpoint_configuration(
&self
) -> &Option<AwsApiGatewayEndpointConfiguration>
pub fn get_endpoint_configuration( &self ) -> &Option<AwsApiGatewayEndpointConfiguration>
The endpoint configuration of the REST API.
sourcepub fn build(self) -> AwsApiGatewayRestApiDetails
pub fn build(self) -> AwsApiGatewayRestApiDetails
Consumes the builder and constructs a AwsApiGatewayRestApiDetails.
Trait Implementations§
source§impl Clone for AwsApiGatewayRestApiDetailsBuilder
impl Clone for AwsApiGatewayRestApiDetailsBuilder
source§fn clone(&self) -> AwsApiGatewayRestApiDetailsBuilder
fn clone(&self) -> AwsApiGatewayRestApiDetailsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for AwsApiGatewayRestApiDetailsBuilder
impl Default for AwsApiGatewayRestApiDetailsBuilder
source§fn default() -> AwsApiGatewayRestApiDetailsBuilder
fn default() -> AwsApiGatewayRestApiDetailsBuilder
source§impl PartialEq for AwsApiGatewayRestApiDetailsBuilder
impl PartialEq for AwsApiGatewayRestApiDetailsBuilder
source§fn eq(&self, other: &AwsApiGatewayRestApiDetailsBuilder) -> bool
fn eq(&self, other: &AwsApiGatewayRestApiDetailsBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AwsApiGatewayRestApiDetailsBuilder
Auto Trait Implementations§
impl Freeze for AwsApiGatewayRestApiDetailsBuilder
impl RefUnwindSafe for AwsApiGatewayRestApiDetailsBuilder
impl Send for AwsApiGatewayRestApiDetailsBuilder
impl Sync for AwsApiGatewayRestApiDetailsBuilder
impl Unpin for AwsApiGatewayRestApiDetailsBuilder
impl UnwindSafe for AwsApiGatewayRestApiDetailsBuilder
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