Struct aws_sdk_eventbridge::operation::create_api_destination::builders::CreateApiDestinationInputBuilder
source · #[non_exhaustive]pub struct CreateApiDestinationInputBuilder { /* private fields */ }Expand description
A builder for CreateApiDestinationInput.
Implementations§
source§impl CreateApiDestinationInputBuilder
impl CreateApiDestinationInputBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name for the API destination to create.
This field is required.sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name for the API destination to create.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description for the API destination to create.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description for the API destination to create.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A description for the API destination to create.
sourcepub fn connection_arn(self, input: impl Into<String>) -> Self
pub fn connection_arn(self, input: impl Into<String>) -> Self
The ARN of the connection to use for the API destination. The destination endpoint must support the authorization type specified for the connection.
This field is required.sourcepub fn set_connection_arn(self, input: Option<String>) -> Self
pub fn set_connection_arn(self, input: Option<String>) -> Self
The ARN of the connection to use for the API destination. The destination endpoint must support the authorization type specified for the connection.
sourcepub fn get_connection_arn(&self) -> &Option<String>
pub fn get_connection_arn(&self) -> &Option<String>
The ARN of the connection to use for the API destination. The destination endpoint must support the authorization type specified for the connection.
sourcepub fn invocation_endpoint(self, input: impl Into<String>) -> Self
pub fn invocation_endpoint(self, input: impl Into<String>) -> Self
The URL to the HTTP invocation endpoint for the API destination.
This field is required.sourcepub fn set_invocation_endpoint(self, input: Option<String>) -> Self
pub fn set_invocation_endpoint(self, input: Option<String>) -> Self
The URL to the HTTP invocation endpoint for the API destination.
sourcepub fn get_invocation_endpoint(&self) -> &Option<String>
pub fn get_invocation_endpoint(&self) -> &Option<String>
The URL to the HTTP invocation endpoint for the API destination.
sourcepub fn http_method(self, input: ApiDestinationHttpMethod) -> Self
pub fn http_method(self, input: ApiDestinationHttpMethod) -> Self
The method to use for the request to the HTTP invocation endpoint.
This field is required.sourcepub fn set_http_method(self, input: Option<ApiDestinationHttpMethod>) -> Self
pub fn set_http_method(self, input: Option<ApiDestinationHttpMethod>) -> Self
The method to use for the request to the HTTP invocation endpoint.
sourcepub fn get_http_method(&self) -> &Option<ApiDestinationHttpMethod>
pub fn get_http_method(&self) -> &Option<ApiDestinationHttpMethod>
The method to use for the request to the HTTP invocation endpoint.
sourcepub fn invocation_rate_limit_per_second(self, input: i32) -> Self
pub fn invocation_rate_limit_per_second(self, input: i32) -> Self
The maximum number of requests per second to send to the HTTP invocation endpoint.
sourcepub fn set_invocation_rate_limit_per_second(self, input: Option<i32>) -> Self
pub fn set_invocation_rate_limit_per_second(self, input: Option<i32>) -> Self
The maximum number of requests per second to send to the HTTP invocation endpoint.
sourcepub fn get_invocation_rate_limit_per_second(&self) -> &Option<i32>
pub fn get_invocation_rate_limit_per_second(&self) -> &Option<i32>
The maximum number of requests per second to send to the HTTP invocation endpoint.
sourcepub fn build(self) -> Result<CreateApiDestinationInput, BuildError>
pub fn build(self) -> Result<CreateApiDestinationInput, BuildError>
Consumes the builder and constructs a CreateApiDestinationInput.
source§impl CreateApiDestinationInputBuilder
impl CreateApiDestinationInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateApiDestinationOutput, SdkError<CreateApiDestinationError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateApiDestinationOutput, SdkError<CreateApiDestinationError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateApiDestinationInputBuilder
impl Clone for CreateApiDestinationInputBuilder
source§fn clone(&self) -> CreateApiDestinationInputBuilder
fn clone(&self) -> CreateApiDestinationInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for CreateApiDestinationInputBuilder
impl Default for CreateApiDestinationInputBuilder
source§fn default() -> CreateApiDestinationInputBuilder
fn default() -> CreateApiDestinationInputBuilder
source§impl PartialEq for CreateApiDestinationInputBuilder
impl PartialEq for CreateApiDestinationInputBuilder
source§fn eq(&self, other: &CreateApiDestinationInputBuilder) -> bool
fn eq(&self, other: &CreateApiDestinationInputBuilder) -> bool
self and other values to be equal, and is used
by ==.