#[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.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be separated by T
. For example, 2020-03-22T13:22:13.933Z
.
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.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be separated by T
. For example, 2020-03-22T13:22:13.933Z
.
sourcepub fn get_created_date(&self) -> &Option<String>
pub fn get_created_date(&self) -> &Option<String>
Indicates when the API was created.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be separated by T
. For example, 2020-03-22T13:22:13.933Z
.
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 ==
.