pub struct Builder { /* private fields */ }
Expand description
A builder for AwsApiGatewayRestApiDetails
.
Implementations
sourceimpl 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
.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more