pub struct Builder { /* private fields */ }
Expand description
A builder for AwsApiGatewayRestApiDetails
.
Implementations§
source§impl Builder
impl Builder
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 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. 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. 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 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 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 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 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 build(self) -> AwsApiGatewayRestApiDetails
pub fn build(self) -> AwsApiGatewayRestApiDetails
Consumes the builder and constructs a AwsApiGatewayRestApiDetails
.