#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum RouteState {
#[allow(missing_docs)] Active,
#[allow(missing_docs)] Creating,
#[allow(missing_docs)] Deleting,
#[allow(missing_docs)] Failed,
#[allow(missing_docs)] Inactive,
#[allow(missing_docs)] Updating,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for RouteState {
fn from(s: &str) -> Self {
match s {
"ACTIVE" => RouteState::Active,
"CREATING" => RouteState::Creating,
"DELETING" => RouteState::Deleting,
"FAILED" => RouteState::Failed,
"INACTIVE" => RouteState::Inactive,
"UPDATING" => RouteState::Updating,
other => RouteState::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for RouteState {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(RouteState::from(s))
}
}
impl RouteState {
pub fn as_str(&self) -> &str {
match self {
RouteState::Active => "ACTIVE",
RouteState::Creating => "CREATING",
RouteState::Deleting => "DELETING",
RouteState::Failed => "FAILED",
RouteState::Inactive => "INACTIVE",
RouteState::Updating => "UPDATING",
RouteState::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&[
"ACTIVE", "CREATING", "DELETING", "FAILED", "INACTIVE", "UPDATING",
]
}
}
impl AsRef<str> for RouteState {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum RouteActivationState {
#[allow(missing_docs)] Active,
#[allow(missing_docs)] Inactive,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for RouteActivationState {
fn from(s: &str) -> Self {
match s {
"ACTIVE" => RouteActivationState::Active,
"INACTIVE" => RouteActivationState::Inactive,
other => {
RouteActivationState::Unknown(crate::types::UnknownVariantValue(other.to_owned()))
}
}
}
}
impl std::str::FromStr for RouteActivationState {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(RouteActivationState::from(s))
}
}
impl RouteActivationState {
pub fn as_str(&self) -> &str {
match self {
RouteActivationState::Active => "ACTIVE",
RouteActivationState::Inactive => "INACTIVE",
RouteActivationState::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["ACTIVE", "INACTIVE"]
}
}
impl AsRef<str> for RouteActivationState {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ServiceSummary {
#[doc(hidden)]
pub service_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub owner_account_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub created_by_account_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub description: std::option::Option<std::string::String>,
#[doc(hidden)]
pub environment_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub application_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub vpc_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub endpoint_type: std::option::Option<crate::model::ServiceEndpointType>,
#[doc(hidden)]
pub url_endpoint: std::option::Option<crate::model::UrlEndpointSummary>,
#[doc(hidden)]
pub lambda_endpoint: std::option::Option<crate::model::LambdaEndpointSummary>,
#[doc(hidden)]
pub state: std::option::Option<crate::model::ServiceState>,
#[doc(hidden)]
pub tags:
std::option::Option<std::collections::HashMap<std::string::String, std::string::String>>,
#[doc(hidden)]
pub error: std::option::Option<crate::model::ErrorResponse>,
#[doc(hidden)]
pub last_updated_time: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub created_time: std::option::Option<aws_smithy_types::DateTime>,
}
impl ServiceSummary {
pub fn service_id(&self) -> std::option::Option<&str> {
self.service_id.as_deref()
}
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
pub fn owner_account_id(&self) -> std::option::Option<&str> {
self.owner_account_id.as_deref()
}
pub fn created_by_account_id(&self) -> std::option::Option<&str> {
self.created_by_account_id.as_deref()
}
pub fn description(&self) -> std::option::Option<&str> {
self.description.as_deref()
}
pub fn environment_id(&self) -> std::option::Option<&str> {
self.environment_id.as_deref()
}
pub fn application_id(&self) -> std::option::Option<&str> {
self.application_id.as_deref()
}
pub fn vpc_id(&self) -> std::option::Option<&str> {
self.vpc_id.as_deref()
}
pub fn endpoint_type(&self) -> std::option::Option<&crate::model::ServiceEndpointType> {
self.endpoint_type.as_ref()
}
pub fn url_endpoint(&self) -> std::option::Option<&crate::model::UrlEndpointSummary> {
self.url_endpoint.as_ref()
}
pub fn lambda_endpoint(&self) -> std::option::Option<&crate::model::LambdaEndpointSummary> {
self.lambda_endpoint.as_ref()
}
pub fn state(&self) -> std::option::Option<&crate::model::ServiceState> {
self.state.as_ref()
}
pub fn tags(
&self,
) -> std::option::Option<&std::collections::HashMap<std::string::String, std::string::String>>
{
self.tags.as_ref()
}
pub fn error(&self) -> std::option::Option<&crate::model::ErrorResponse> {
self.error.as_ref()
}
pub fn last_updated_time(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.last_updated_time.as_ref()
}
pub fn created_time(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.created_time.as_ref()
}
}
impl std::fmt::Debug for ServiceSummary {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ServiceSummary");
formatter.field("service_id", &self.service_id);
formatter.field("name", &self.name);
formatter.field("arn", &self.arn);
formatter.field("owner_account_id", &self.owner_account_id);
formatter.field("created_by_account_id", &self.created_by_account_id);
formatter.field("description", &self.description);
formatter.field("environment_id", &self.environment_id);
formatter.field("application_id", &self.application_id);
formatter.field("vpc_id", &self.vpc_id);
formatter.field("endpoint_type", &self.endpoint_type);
formatter.field("url_endpoint", &self.url_endpoint);
formatter.field("lambda_endpoint", &self.lambda_endpoint);
formatter.field("state", &self.state);
formatter.field("tags", &"*** Sensitive Data Redacted ***");
formatter.field("error", &self.error);
formatter.field("last_updated_time", &self.last_updated_time);
formatter.field("created_time", &self.created_time);
formatter.finish()
}
}
pub mod service_summary {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) service_id: std::option::Option<std::string::String>,
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) arn: std::option::Option<std::string::String>,
pub(crate) owner_account_id: std::option::Option<std::string::String>,
pub(crate) created_by_account_id: std::option::Option<std::string::String>,
pub(crate) description: std::option::Option<std::string::String>,
pub(crate) environment_id: std::option::Option<std::string::String>,
pub(crate) application_id: std::option::Option<std::string::String>,
pub(crate) vpc_id: std::option::Option<std::string::String>,
pub(crate) endpoint_type: std::option::Option<crate::model::ServiceEndpointType>,
pub(crate) url_endpoint: std::option::Option<crate::model::UrlEndpointSummary>,
pub(crate) lambda_endpoint: std::option::Option<crate::model::LambdaEndpointSummary>,
pub(crate) state: std::option::Option<crate::model::ServiceState>,
pub(crate) tags: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
pub(crate) error: std::option::Option<crate::model::ErrorResponse>,
pub(crate) last_updated_time: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) created_time: std::option::Option<aws_smithy_types::DateTime>,
}
impl Builder {
pub fn service_id(mut self, input: impl Into<std::string::String>) -> Self {
self.service_id = Some(input.into());
self
}
pub fn set_service_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.service_id = input;
self
}
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
pub fn owner_account_id(mut self, input: impl Into<std::string::String>) -> Self {
self.owner_account_id = Some(input.into());
self
}
pub fn set_owner_account_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.owner_account_id = input;
self
}
pub fn created_by_account_id(mut self, input: impl Into<std::string::String>) -> Self {
self.created_by_account_id = Some(input.into());
self
}
pub fn set_created_by_account_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.created_by_account_id = input;
self
}
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.description = Some(input.into());
self
}
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.description = input;
self
}
pub fn environment_id(mut self, input: impl Into<std::string::String>) -> Self {
self.environment_id = Some(input.into());
self
}
pub fn set_environment_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.environment_id = input;
self
}
pub fn application_id(mut self, input: impl Into<std::string::String>) -> Self {
self.application_id = Some(input.into());
self
}
pub fn set_application_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.application_id = input;
self
}
pub fn vpc_id(mut self, input: impl Into<std::string::String>) -> Self {
self.vpc_id = Some(input.into());
self
}
pub fn set_vpc_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.vpc_id = input;
self
}
pub fn endpoint_type(mut self, input: crate::model::ServiceEndpointType) -> Self {
self.endpoint_type = Some(input);
self
}
pub fn set_endpoint_type(
mut self,
input: std::option::Option<crate::model::ServiceEndpointType>,
) -> Self {
self.endpoint_type = input;
self
}
pub fn url_endpoint(mut self, input: crate::model::UrlEndpointSummary) -> Self {
self.url_endpoint = Some(input);
self
}
pub fn set_url_endpoint(
mut self,
input: std::option::Option<crate::model::UrlEndpointSummary>,
) -> Self {
self.url_endpoint = input;
self
}
pub fn lambda_endpoint(mut self, input: crate::model::LambdaEndpointSummary) -> Self {
self.lambda_endpoint = Some(input);
self
}
pub fn set_lambda_endpoint(
mut self,
input: std::option::Option<crate::model::LambdaEndpointSummary>,
) -> Self {
self.lambda_endpoint = input;
self
}
pub fn state(mut self, input: crate::model::ServiceState) -> Self {
self.state = Some(input);
self
}
pub fn set_state(mut self, input: std::option::Option<crate::model::ServiceState>) -> Self {
self.state = input;
self
}
pub fn tags(
mut self,
k: impl Into<std::string::String>,
v: impl Into<std::string::String>,
) -> Self {
let mut hash_map = self.tags.unwrap_or_default();
hash_map.insert(k.into(), v.into());
self.tags = Some(hash_map);
self
}
pub fn set_tags(
mut self,
input: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
) -> Self {
self.tags = input;
self
}
pub fn error(mut self, input: crate::model::ErrorResponse) -> Self {
self.error = Some(input);
self
}
pub fn set_error(
mut self,
input: std::option::Option<crate::model::ErrorResponse>,
) -> Self {
self.error = input;
self
}
pub fn last_updated_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.last_updated_time = Some(input);
self
}
pub fn set_last_updated_time(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.last_updated_time = input;
self
}
pub fn created_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.created_time = Some(input);
self
}
pub fn set_created_time(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.created_time = input;
self
}
pub fn build(self) -> crate::model::ServiceSummary {
crate::model::ServiceSummary {
service_id: self.service_id,
name: self.name,
arn: self.arn,
owner_account_id: self.owner_account_id,
created_by_account_id: self.created_by_account_id,
description: self.description,
environment_id: self.environment_id,
application_id: self.application_id,
vpc_id: self.vpc_id,
endpoint_type: self.endpoint_type,
url_endpoint: self.url_endpoint,
lambda_endpoint: self.lambda_endpoint,
state: self.state,
tags: self.tags,
error: self.error,
last_updated_time: self.last_updated_time,
created_time: self.created_time,
}
}
}
impl std::fmt::Debug for Builder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Builder");
formatter.field("service_id", &self.service_id);
formatter.field("name", &self.name);
formatter.field("arn", &self.arn);
formatter.field("owner_account_id", &self.owner_account_id);
formatter.field("created_by_account_id", &self.created_by_account_id);
formatter.field("description", &self.description);
formatter.field("environment_id", &self.environment_id);
formatter.field("application_id", &self.application_id);
formatter.field("vpc_id", &self.vpc_id);
formatter.field("endpoint_type", &self.endpoint_type);
formatter.field("url_endpoint", &self.url_endpoint);
formatter.field("lambda_endpoint", &self.lambda_endpoint);
formatter.field("state", &self.state);
formatter.field("tags", &"*** Sensitive Data Redacted ***");
formatter.field("error", &self.error);
formatter.field("last_updated_time", &self.last_updated_time);
formatter.field("created_time", &self.created_time);
formatter.finish()
}
}
}
impl ServiceSummary {
pub fn builder() -> crate::model::service_summary::Builder {
crate::model::service_summary::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ErrorResponse {
#[doc(hidden)]
pub code: std::option::Option<crate::model::ErrorCode>,
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
#[doc(hidden)]
pub account_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub resource_identifier: std::option::Option<std::string::String>,
#[doc(hidden)]
pub resource_type: std::option::Option<crate::model::ErrorResourceType>,
#[doc(hidden)]
pub additional_details:
std::option::Option<std::collections::HashMap<std::string::String, std::string::String>>,
}
impl ErrorResponse {
pub fn code(&self) -> std::option::Option<&crate::model::ErrorCode> {
self.code.as_ref()
}
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
pub fn account_id(&self) -> std::option::Option<&str> {
self.account_id.as_deref()
}
pub fn resource_identifier(&self) -> std::option::Option<&str> {
self.resource_identifier.as_deref()
}
pub fn resource_type(&self) -> std::option::Option<&crate::model::ErrorResourceType> {
self.resource_type.as_ref()
}
pub fn additional_details(
&self,
) -> std::option::Option<&std::collections::HashMap<std::string::String, std::string::String>>
{
self.additional_details.as_ref()
}
}
pub mod error_response {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) code: std::option::Option<crate::model::ErrorCode>,
pub(crate) message: std::option::Option<std::string::String>,
pub(crate) account_id: std::option::Option<std::string::String>,
pub(crate) resource_identifier: std::option::Option<std::string::String>,
pub(crate) resource_type: std::option::Option<crate::model::ErrorResourceType>,
pub(crate) additional_details: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
}
impl Builder {
pub fn code(mut self, input: crate::model::ErrorCode) -> Self {
self.code = Some(input);
self
}
pub fn set_code(mut self, input: std::option::Option<crate::model::ErrorCode>) -> Self {
self.code = input;
self
}
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn account_id(mut self, input: impl Into<std::string::String>) -> Self {
self.account_id = Some(input.into());
self
}
pub fn set_account_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.account_id = input;
self
}
pub fn resource_identifier(mut self, input: impl Into<std::string::String>) -> Self {
self.resource_identifier = Some(input.into());
self
}
pub fn set_resource_identifier(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.resource_identifier = input;
self
}
pub fn resource_type(mut self, input: crate::model::ErrorResourceType) -> Self {
self.resource_type = Some(input);
self
}
pub fn set_resource_type(
mut self,
input: std::option::Option<crate::model::ErrorResourceType>,
) -> Self {
self.resource_type = input;
self
}
pub fn additional_details(
mut self,
k: impl Into<std::string::String>,
v: impl Into<std::string::String>,
) -> Self {
let mut hash_map = self.additional_details.unwrap_or_default();
hash_map.insert(k.into(), v.into());
self.additional_details = Some(hash_map);
self
}
pub fn set_additional_details(
mut self,
input: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
) -> Self {
self.additional_details = input;
self
}
pub fn build(self) -> crate::model::ErrorResponse {
crate::model::ErrorResponse {
code: self.code,
message: self.message,
account_id: self.account_id,
resource_identifier: self.resource_identifier,
resource_type: self.resource_type,
additional_details: self.additional_details,
}
}
}
}
impl ErrorResponse {
pub fn builder() -> crate::model::error_response::Builder {
crate::model::error_response::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum ErrorResourceType {
#[allow(missing_docs)] ApiGateway,
#[allow(missing_docs)] Application,
#[allow(missing_docs)] Environment,
#[allow(missing_docs)] IamRole,
#[allow(missing_docs)] Lambda,
#[allow(missing_docs)] LoadBalancerListener,
#[allow(missing_docs)] Nlb,
#[allow(missing_docs)] ResourceShare,
#[allow(missing_docs)] Route,
#[allow(missing_docs)] RouteTable,
#[allow(missing_docs)] SecurityGroup,
#[allow(missing_docs)] Service,
#[allow(missing_docs)] Subnet,
#[allow(missing_docs)] TargetGroup,
#[allow(missing_docs)] TransitGateway,
#[allow(missing_docs)] TransitGatewayAttachment,
#[allow(missing_docs)] Vpc,
#[allow(missing_docs)] VpcEndpointServiceConfiguration,
#[allow(missing_docs)] VpcLink,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for ErrorResourceType {
fn from(s: &str) -> Self {
match s {
"API_GATEWAY" => ErrorResourceType::ApiGateway,
"APPLICATION" => ErrorResourceType::Application,
"ENVIRONMENT" => ErrorResourceType::Environment,
"IAM_ROLE" => ErrorResourceType::IamRole,
"LAMBDA" => ErrorResourceType::Lambda,
"LOAD_BALANCER_LISTENER" => ErrorResourceType::LoadBalancerListener,
"NLB" => ErrorResourceType::Nlb,
"RESOURCE_SHARE" => ErrorResourceType::ResourceShare,
"ROUTE" => ErrorResourceType::Route,
"ROUTE_TABLE" => ErrorResourceType::RouteTable,
"SECURITY_GROUP" => ErrorResourceType::SecurityGroup,
"SERVICE" => ErrorResourceType::Service,
"SUBNET" => ErrorResourceType::Subnet,
"TARGET_GROUP" => ErrorResourceType::TargetGroup,
"TRANSIT_GATEWAY" => ErrorResourceType::TransitGateway,
"TRANSIT_GATEWAY_ATTACHMENT" => ErrorResourceType::TransitGatewayAttachment,
"VPC" => ErrorResourceType::Vpc,
"VPC_ENDPOINT_SERVICE_CONFIGURATION" => {
ErrorResourceType::VpcEndpointServiceConfiguration
}
"VPC_LINK" => ErrorResourceType::VpcLink,
other => {
ErrorResourceType::Unknown(crate::types::UnknownVariantValue(other.to_owned()))
}
}
}
}
impl std::str::FromStr for ErrorResourceType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(ErrorResourceType::from(s))
}
}
impl ErrorResourceType {
pub fn as_str(&self) -> &str {
match self {
ErrorResourceType::ApiGateway => "API_GATEWAY",
ErrorResourceType::Application => "APPLICATION",
ErrorResourceType::Environment => "ENVIRONMENT",
ErrorResourceType::IamRole => "IAM_ROLE",
ErrorResourceType::Lambda => "LAMBDA",
ErrorResourceType::LoadBalancerListener => "LOAD_BALANCER_LISTENER",
ErrorResourceType::Nlb => "NLB",
ErrorResourceType::ResourceShare => "RESOURCE_SHARE",
ErrorResourceType::Route => "ROUTE",
ErrorResourceType::RouteTable => "ROUTE_TABLE",
ErrorResourceType::SecurityGroup => "SECURITY_GROUP",
ErrorResourceType::Service => "SERVICE",
ErrorResourceType::Subnet => "SUBNET",
ErrorResourceType::TargetGroup => "TARGET_GROUP",
ErrorResourceType::TransitGateway => "TRANSIT_GATEWAY",
ErrorResourceType::TransitGatewayAttachment => "TRANSIT_GATEWAY_ATTACHMENT",
ErrorResourceType::Vpc => "VPC",
ErrorResourceType::VpcEndpointServiceConfiguration => {
"VPC_ENDPOINT_SERVICE_CONFIGURATION"
}
ErrorResourceType::VpcLink => "VPC_LINK",
ErrorResourceType::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&[
"API_GATEWAY",
"APPLICATION",
"ENVIRONMENT",
"IAM_ROLE",
"LAMBDA",
"LOAD_BALANCER_LISTENER",
"NLB",
"RESOURCE_SHARE",
"ROUTE",
"ROUTE_TABLE",
"SECURITY_GROUP",
"SERVICE",
"SUBNET",
"TARGET_GROUP",
"TRANSIT_GATEWAY",
"TRANSIT_GATEWAY_ATTACHMENT",
"VPC",
"VPC_ENDPOINT_SERVICE_CONFIGURATION",
"VPC_LINK",
]
}
}
impl AsRef<str> for ErrorResourceType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum ErrorCode {
#[allow(missing_docs)] InvalidResourceState,
#[allow(missing_docs)] NotAuthorized,
#[allow(missing_docs)] RequestLimitExceeded,
#[allow(missing_docs)] ResourceCreationFailure,
#[allow(missing_docs)] ResourceDeletionFailure,
#[allow(missing_docs)] ResourceInUse,
#[allow(missing_docs)] ResourceLimitExceeded,
#[allow(missing_docs)] ResourceNotFound,
#[allow(missing_docs)] ResourceRetrievalFailure,
#[allow(missing_docs)] ResourceUpdateFailure,
#[allow(missing_docs)] ServiceEndpointHealthCheckFailure,
#[allow(missing_docs)] StateTransitionFailure,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for ErrorCode {
fn from(s: &str) -> Self {
match s {
"INVALID_RESOURCE_STATE" => ErrorCode::InvalidResourceState,
"NOT_AUTHORIZED" => ErrorCode::NotAuthorized,
"REQUEST_LIMIT_EXCEEDED" => ErrorCode::RequestLimitExceeded,
"RESOURCE_CREATION_FAILURE" => ErrorCode::ResourceCreationFailure,
"RESOURCE_DELETION_FAILURE" => ErrorCode::ResourceDeletionFailure,
"RESOURCE_IN_USE" => ErrorCode::ResourceInUse,
"RESOURCE_LIMIT_EXCEEDED" => ErrorCode::ResourceLimitExceeded,
"RESOURCE_NOT_FOUND" => ErrorCode::ResourceNotFound,
"RESOURCE_RETRIEVAL_FAILURE" => ErrorCode::ResourceRetrievalFailure,
"RESOURCE_UPDATE_FAILURE" => ErrorCode::ResourceUpdateFailure,
"SERVICE_ENDPOINT_HEALTH_CHECK_FAILURE" => ErrorCode::ServiceEndpointHealthCheckFailure,
"STATE_TRANSITION_FAILURE" => ErrorCode::StateTransitionFailure,
other => ErrorCode::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for ErrorCode {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(ErrorCode::from(s))
}
}
impl ErrorCode {
pub fn as_str(&self) -> &str {
match self {
ErrorCode::InvalidResourceState => "INVALID_RESOURCE_STATE",
ErrorCode::NotAuthorized => "NOT_AUTHORIZED",
ErrorCode::RequestLimitExceeded => "REQUEST_LIMIT_EXCEEDED",
ErrorCode::ResourceCreationFailure => "RESOURCE_CREATION_FAILURE",
ErrorCode::ResourceDeletionFailure => "RESOURCE_DELETION_FAILURE",
ErrorCode::ResourceInUse => "RESOURCE_IN_USE",
ErrorCode::ResourceLimitExceeded => "RESOURCE_LIMIT_EXCEEDED",
ErrorCode::ResourceNotFound => "RESOURCE_NOT_FOUND",
ErrorCode::ResourceRetrievalFailure => "RESOURCE_RETRIEVAL_FAILURE",
ErrorCode::ResourceUpdateFailure => "RESOURCE_UPDATE_FAILURE",
ErrorCode::ServiceEndpointHealthCheckFailure => "SERVICE_ENDPOINT_HEALTH_CHECK_FAILURE",
ErrorCode::StateTransitionFailure => "STATE_TRANSITION_FAILURE",
ErrorCode::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&[
"INVALID_RESOURCE_STATE",
"NOT_AUTHORIZED",
"REQUEST_LIMIT_EXCEEDED",
"RESOURCE_CREATION_FAILURE",
"RESOURCE_DELETION_FAILURE",
"RESOURCE_IN_USE",
"RESOURCE_LIMIT_EXCEEDED",
"RESOURCE_NOT_FOUND",
"RESOURCE_RETRIEVAL_FAILURE",
"RESOURCE_UPDATE_FAILURE",
"SERVICE_ENDPOINT_HEALTH_CHECK_FAILURE",
"STATE_TRANSITION_FAILURE",
]
}
}
impl AsRef<str> for ErrorCode {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum ServiceState {
#[allow(missing_docs)] Active,
#[allow(missing_docs)] Creating,
#[allow(missing_docs)] Deleting,
#[allow(missing_docs)] Failed,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for ServiceState {
fn from(s: &str) -> Self {
match s {
"ACTIVE" => ServiceState::Active,
"CREATING" => ServiceState::Creating,
"DELETING" => ServiceState::Deleting,
"FAILED" => ServiceState::Failed,
other => ServiceState::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for ServiceState {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(ServiceState::from(s))
}
}
impl ServiceState {
pub fn as_str(&self) -> &str {
match self {
ServiceState::Active => "ACTIVE",
ServiceState::Creating => "CREATING",
ServiceState::Deleting => "DELETING",
ServiceState::Failed => "FAILED",
ServiceState::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["ACTIVE", "CREATING", "DELETING", "FAILED"]
}
}
impl AsRef<str> for ServiceState {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct LambdaEndpointSummary {
#[doc(hidden)]
pub arn: std::option::Option<std::string::String>,
}
impl LambdaEndpointSummary {
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
}
pub mod lambda_endpoint_summary {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) arn: std::option::Option<std::string::String>,
}
impl Builder {
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
pub fn build(self) -> crate::model::LambdaEndpointSummary {
crate::model::LambdaEndpointSummary { arn: self.arn }
}
}
}
impl LambdaEndpointSummary {
pub fn builder() -> crate::model::lambda_endpoint_summary::Builder {
crate::model::lambda_endpoint_summary::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UrlEndpointSummary {
#[doc(hidden)]
pub url: std::option::Option<std::string::String>,
#[doc(hidden)]
pub health_url: std::option::Option<std::string::String>,
}
impl UrlEndpointSummary {
pub fn url(&self) -> std::option::Option<&str> {
self.url.as_deref()
}
pub fn health_url(&self) -> std::option::Option<&str> {
self.health_url.as_deref()
}
}
pub mod url_endpoint_summary {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) url: std::option::Option<std::string::String>,
pub(crate) health_url: std::option::Option<std::string::String>,
}
impl Builder {
pub fn url(mut self, input: impl Into<std::string::String>) -> Self {
self.url = Some(input.into());
self
}
pub fn set_url(mut self, input: std::option::Option<std::string::String>) -> Self {
self.url = input;
self
}
pub fn health_url(mut self, input: impl Into<std::string::String>) -> Self {
self.health_url = Some(input.into());
self
}
pub fn set_health_url(mut self, input: std::option::Option<std::string::String>) -> Self {
self.health_url = input;
self
}
pub fn build(self) -> crate::model::UrlEndpointSummary {
crate::model::UrlEndpointSummary {
url: self.url,
health_url: self.health_url,
}
}
}
}
impl UrlEndpointSummary {
pub fn builder() -> crate::model::url_endpoint_summary::Builder {
crate::model::url_endpoint_summary::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum ServiceEndpointType {
#[allow(missing_docs)] Lambda,
#[allow(missing_docs)] Url,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for ServiceEndpointType {
fn from(s: &str) -> Self {
match s {
"LAMBDA" => ServiceEndpointType::Lambda,
"URL" => ServiceEndpointType::Url,
other => {
ServiceEndpointType::Unknown(crate::types::UnknownVariantValue(other.to_owned()))
}
}
}
}
impl std::str::FromStr for ServiceEndpointType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(ServiceEndpointType::from(s))
}
}
impl ServiceEndpointType {
pub fn as_str(&self) -> &str {
match self {
ServiceEndpointType::Lambda => "LAMBDA",
ServiceEndpointType::Url => "URL",
ServiceEndpointType::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["LAMBDA", "URL"]
}
}
impl AsRef<str> for ServiceEndpointType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct RouteSummary {
#[doc(hidden)]
pub route_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub owner_account_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub created_by_account_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub route_type: std::option::Option<crate::model::RouteType>,
#[doc(hidden)]
pub service_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub application_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub environment_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub source_path: std::option::Option<std::string::String>,
#[doc(hidden)]
pub methods: std::option::Option<std::vec::Vec<crate::model::HttpMethod>>,
#[doc(hidden)]
pub include_child_paths: std::option::Option<bool>,
#[doc(hidden)]
pub path_resource_to_id:
std::option::Option<std::collections::HashMap<std::string::String, std::string::String>>,
#[doc(hidden)]
pub state: std::option::Option<crate::model::RouteState>,
#[doc(hidden)]
pub tags:
std::option::Option<std::collections::HashMap<std::string::String, std::string::String>>,
#[doc(hidden)]
pub error: std::option::Option<crate::model::ErrorResponse>,
#[doc(hidden)]
pub last_updated_time: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub created_time: std::option::Option<aws_smithy_types::DateTime>,
}
impl RouteSummary {
pub fn route_id(&self) -> std::option::Option<&str> {
self.route_id.as_deref()
}
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
pub fn owner_account_id(&self) -> std::option::Option<&str> {
self.owner_account_id.as_deref()
}
pub fn created_by_account_id(&self) -> std::option::Option<&str> {
self.created_by_account_id.as_deref()
}
pub fn route_type(&self) -> std::option::Option<&crate::model::RouteType> {
self.route_type.as_ref()
}
pub fn service_id(&self) -> std::option::Option<&str> {
self.service_id.as_deref()
}
pub fn application_id(&self) -> std::option::Option<&str> {
self.application_id.as_deref()
}
pub fn environment_id(&self) -> std::option::Option<&str> {
self.environment_id.as_deref()
}
pub fn source_path(&self) -> std::option::Option<&str> {
self.source_path.as_deref()
}
pub fn methods(&self) -> std::option::Option<&[crate::model::HttpMethod]> {
self.methods.as_deref()
}
pub fn include_child_paths(&self) -> std::option::Option<bool> {
self.include_child_paths
}
pub fn path_resource_to_id(
&self,
) -> std::option::Option<&std::collections::HashMap<std::string::String, std::string::String>>
{
self.path_resource_to_id.as_ref()
}
pub fn state(&self) -> std::option::Option<&crate::model::RouteState> {
self.state.as_ref()
}
pub fn tags(
&self,
) -> std::option::Option<&std::collections::HashMap<std::string::String, std::string::String>>
{
self.tags.as_ref()
}
pub fn error(&self) -> std::option::Option<&crate::model::ErrorResponse> {
self.error.as_ref()
}
pub fn last_updated_time(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.last_updated_time.as_ref()
}
pub fn created_time(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.created_time.as_ref()
}
}
impl std::fmt::Debug for RouteSummary {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("RouteSummary");
formatter.field("route_id", &self.route_id);
formatter.field("arn", &self.arn);
formatter.field("owner_account_id", &self.owner_account_id);
formatter.field("created_by_account_id", &self.created_by_account_id);
formatter.field("route_type", &self.route_type);
formatter.field("service_id", &self.service_id);
formatter.field("application_id", &self.application_id);
formatter.field("environment_id", &self.environment_id);
formatter.field("source_path", &self.source_path);
formatter.field("methods", &self.methods);
formatter.field("include_child_paths", &self.include_child_paths);
formatter.field("path_resource_to_id", &self.path_resource_to_id);
formatter.field("state", &self.state);
formatter.field("tags", &"*** Sensitive Data Redacted ***");
formatter.field("error", &self.error);
formatter.field("last_updated_time", &self.last_updated_time);
formatter.field("created_time", &self.created_time);
formatter.finish()
}
}
pub mod route_summary {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) route_id: std::option::Option<std::string::String>,
pub(crate) arn: std::option::Option<std::string::String>,
pub(crate) owner_account_id: std::option::Option<std::string::String>,
pub(crate) created_by_account_id: std::option::Option<std::string::String>,
pub(crate) route_type: std::option::Option<crate::model::RouteType>,
pub(crate) service_id: std::option::Option<std::string::String>,
pub(crate) application_id: std::option::Option<std::string::String>,
pub(crate) environment_id: std::option::Option<std::string::String>,
pub(crate) source_path: std::option::Option<std::string::String>,
pub(crate) methods: std::option::Option<std::vec::Vec<crate::model::HttpMethod>>,
pub(crate) include_child_paths: std::option::Option<bool>,
pub(crate) path_resource_to_id: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
pub(crate) state: std::option::Option<crate::model::RouteState>,
pub(crate) tags: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
pub(crate) error: std::option::Option<crate::model::ErrorResponse>,
pub(crate) last_updated_time: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) created_time: std::option::Option<aws_smithy_types::DateTime>,
}
impl Builder {
pub fn route_id(mut self, input: impl Into<std::string::String>) -> Self {
self.route_id = Some(input.into());
self
}
pub fn set_route_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.route_id = input;
self
}
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
pub fn owner_account_id(mut self, input: impl Into<std::string::String>) -> Self {
self.owner_account_id = Some(input.into());
self
}
pub fn set_owner_account_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.owner_account_id = input;
self
}
pub fn created_by_account_id(mut self, input: impl Into<std::string::String>) -> Self {
self.created_by_account_id = Some(input.into());
self
}
pub fn set_created_by_account_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.created_by_account_id = input;
self
}
pub fn route_type(mut self, input: crate::model::RouteType) -> Self {
self.route_type = Some(input);
self
}
pub fn set_route_type(
mut self,
input: std::option::Option<crate::model::RouteType>,
) -> Self {
self.route_type = input;
self
}
pub fn service_id(mut self, input: impl Into<std::string::String>) -> Self {
self.service_id = Some(input.into());
self
}
pub fn set_service_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.service_id = input;
self
}
pub fn application_id(mut self, input: impl Into<std::string::String>) -> Self {
self.application_id = Some(input.into());
self
}
pub fn set_application_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.application_id = input;
self
}
pub fn environment_id(mut self, input: impl Into<std::string::String>) -> Self {
self.environment_id = Some(input.into());
self
}
pub fn set_environment_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.environment_id = input;
self
}
pub fn source_path(mut self, input: impl Into<std::string::String>) -> Self {
self.source_path = Some(input.into());
self
}
pub fn set_source_path(mut self, input: std::option::Option<std::string::String>) -> Self {
self.source_path = input;
self
}
pub fn methods(mut self, input: crate::model::HttpMethod) -> Self {
let mut v = self.methods.unwrap_or_default();
v.push(input);
self.methods = Some(v);
self
}
pub fn set_methods(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::HttpMethod>>,
) -> Self {
self.methods = input;
self
}
pub fn include_child_paths(mut self, input: bool) -> Self {
self.include_child_paths = Some(input);
self
}
pub fn set_include_child_paths(mut self, input: std::option::Option<bool>) -> Self {
self.include_child_paths = input;
self
}
pub fn path_resource_to_id(
mut self,
k: impl Into<std::string::String>,
v: impl Into<std::string::String>,
) -> Self {
let mut hash_map = self.path_resource_to_id.unwrap_or_default();
hash_map.insert(k.into(), v.into());
self.path_resource_to_id = Some(hash_map);
self
}
pub fn set_path_resource_to_id(
mut self,
input: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
) -> Self {
self.path_resource_to_id = input;
self
}
pub fn state(mut self, input: crate::model::RouteState) -> Self {
self.state = Some(input);
self
}
pub fn set_state(mut self, input: std::option::Option<crate::model::RouteState>) -> Self {
self.state = input;
self
}
pub fn tags(
mut self,
k: impl Into<std::string::String>,
v: impl Into<std::string::String>,
) -> Self {
let mut hash_map = self.tags.unwrap_or_default();
hash_map.insert(k.into(), v.into());
self.tags = Some(hash_map);
self
}
pub fn set_tags(
mut self,
input: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
) -> Self {
self.tags = input;
self
}
pub fn error(mut self, input: crate::model::ErrorResponse) -> Self {
self.error = Some(input);
self
}
pub fn set_error(
mut self,
input: std::option::Option<crate::model::ErrorResponse>,
) -> Self {
self.error = input;
self
}
pub fn last_updated_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.last_updated_time = Some(input);
self
}
pub fn set_last_updated_time(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.last_updated_time = input;
self
}
pub fn created_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.created_time = Some(input);
self
}
pub fn set_created_time(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.created_time = input;
self
}
pub fn build(self) -> crate::model::RouteSummary {
crate::model::RouteSummary {
route_id: self.route_id,
arn: self.arn,
owner_account_id: self.owner_account_id,
created_by_account_id: self.created_by_account_id,
route_type: self.route_type,
service_id: self.service_id,
application_id: self.application_id,
environment_id: self.environment_id,
source_path: self.source_path,
methods: self.methods,
include_child_paths: self.include_child_paths,
path_resource_to_id: self.path_resource_to_id,
state: self.state,
tags: self.tags,
error: self.error,
last_updated_time: self.last_updated_time,
created_time: self.created_time,
}
}
}
impl std::fmt::Debug for Builder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Builder");
formatter.field("route_id", &self.route_id);
formatter.field("arn", &self.arn);
formatter.field("owner_account_id", &self.owner_account_id);
formatter.field("created_by_account_id", &self.created_by_account_id);
formatter.field("route_type", &self.route_type);
formatter.field("service_id", &self.service_id);
formatter.field("application_id", &self.application_id);
formatter.field("environment_id", &self.environment_id);
formatter.field("source_path", &self.source_path);
formatter.field("methods", &self.methods);
formatter.field("include_child_paths", &self.include_child_paths);
formatter.field("path_resource_to_id", &self.path_resource_to_id);
formatter.field("state", &self.state);
formatter.field("tags", &"*** Sensitive Data Redacted ***");
formatter.field("error", &self.error);
formatter.field("last_updated_time", &self.last_updated_time);
formatter.field("created_time", &self.created_time);
formatter.finish()
}
}
}
impl RouteSummary {
pub fn builder() -> crate::model::route_summary::Builder {
crate::model::route_summary::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum HttpMethod {
#[allow(missing_docs)] Delete,
#[allow(missing_docs)] Get,
#[allow(missing_docs)] Head,
#[allow(missing_docs)] Options,
#[allow(missing_docs)] Patch,
#[allow(missing_docs)] Post,
#[allow(missing_docs)] Put,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for HttpMethod {
fn from(s: &str) -> Self {
match s {
"DELETE" => HttpMethod::Delete,
"GET" => HttpMethod::Get,
"HEAD" => HttpMethod::Head,
"OPTIONS" => HttpMethod::Options,
"PATCH" => HttpMethod::Patch,
"POST" => HttpMethod::Post,
"PUT" => HttpMethod::Put,
other => HttpMethod::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for HttpMethod {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(HttpMethod::from(s))
}
}
impl HttpMethod {
pub fn as_str(&self) -> &str {
match self {
HttpMethod::Delete => "DELETE",
HttpMethod::Get => "GET",
HttpMethod::Head => "HEAD",
HttpMethod::Options => "OPTIONS",
HttpMethod::Patch => "PATCH",
HttpMethod::Post => "POST",
HttpMethod::Put => "PUT",
HttpMethod::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["DELETE", "GET", "HEAD", "OPTIONS", "PATCH", "POST", "PUT"]
}
}
impl AsRef<str> for HttpMethod {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum RouteType {
#[allow(missing_docs)] Default,
#[allow(missing_docs)] UriPath,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for RouteType {
fn from(s: &str) -> Self {
match s {
"DEFAULT" => RouteType::Default,
"URI_PATH" => RouteType::UriPath,
other => RouteType::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for RouteType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(RouteType::from(s))
}
}
impl RouteType {
pub fn as_str(&self) -> &str {
match self {
RouteType::Default => "DEFAULT",
RouteType::UriPath => "URI_PATH",
RouteType::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["DEFAULT", "URI_PATH"]
}
}
impl AsRef<str> for RouteType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct EnvironmentVpc {
#[doc(hidden)]
pub environment_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub vpc_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub account_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub cidr_blocks: std::option::Option<std::vec::Vec<std::string::String>>,
#[doc(hidden)]
pub vpc_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub last_updated_time: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub created_time: std::option::Option<aws_smithy_types::DateTime>,
}
impl EnvironmentVpc {
pub fn environment_id(&self) -> std::option::Option<&str> {
self.environment_id.as_deref()
}
pub fn vpc_id(&self) -> std::option::Option<&str> {
self.vpc_id.as_deref()
}
pub fn account_id(&self) -> std::option::Option<&str> {
self.account_id.as_deref()
}
pub fn cidr_blocks(&self) -> std::option::Option<&[std::string::String]> {
self.cidr_blocks.as_deref()
}
pub fn vpc_name(&self) -> std::option::Option<&str> {
self.vpc_name.as_deref()
}
pub fn last_updated_time(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.last_updated_time.as_ref()
}
pub fn created_time(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.created_time.as_ref()
}
}
pub mod environment_vpc {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) environment_id: std::option::Option<std::string::String>,
pub(crate) vpc_id: std::option::Option<std::string::String>,
pub(crate) account_id: std::option::Option<std::string::String>,
pub(crate) cidr_blocks: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) vpc_name: std::option::Option<std::string::String>,
pub(crate) last_updated_time: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) created_time: std::option::Option<aws_smithy_types::DateTime>,
}
impl Builder {
pub fn environment_id(mut self, input: impl Into<std::string::String>) -> Self {
self.environment_id = Some(input.into());
self
}
pub fn set_environment_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.environment_id = input;
self
}
pub fn vpc_id(mut self, input: impl Into<std::string::String>) -> Self {
self.vpc_id = Some(input.into());
self
}
pub fn set_vpc_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.vpc_id = input;
self
}
pub fn account_id(mut self, input: impl Into<std::string::String>) -> Self {
self.account_id = Some(input.into());
self
}
pub fn set_account_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.account_id = input;
self
}
pub fn cidr_blocks(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.cidr_blocks.unwrap_or_default();
v.push(input.into());
self.cidr_blocks = Some(v);
self
}
pub fn set_cidr_blocks(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.cidr_blocks = input;
self
}
pub fn vpc_name(mut self, input: impl Into<std::string::String>) -> Self {
self.vpc_name = Some(input.into());
self
}
pub fn set_vpc_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.vpc_name = input;
self
}
pub fn last_updated_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.last_updated_time = Some(input);
self
}
pub fn set_last_updated_time(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.last_updated_time = input;
self
}
pub fn created_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.created_time = Some(input);
self
}
pub fn set_created_time(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.created_time = input;
self
}
pub fn build(self) -> crate::model::EnvironmentVpc {
crate::model::EnvironmentVpc {
environment_id: self.environment_id,
vpc_id: self.vpc_id,
account_id: self.account_id,
cidr_blocks: self.cidr_blocks,
vpc_name: self.vpc_name,
last_updated_time: self.last_updated_time,
created_time: self.created_time,
}
}
}
}
impl EnvironmentVpc {
pub fn builder() -> crate::model::environment_vpc::Builder {
crate::model::environment_vpc::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct EnvironmentSummary {
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub description: std::option::Option<std::string::String>,
#[doc(hidden)]
pub environment_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub network_fabric_type: std::option::Option<crate::model::NetworkFabricType>,
#[doc(hidden)]
pub owner_account_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub transit_gateway_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub state: std::option::Option<crate::model::EnvironmentState>,
#[doc(hidden)]
pub tags:
std::option::Option<std::collections::HashMap<std::string::String, std::string::String>>,
#[doc(hidden)]
pub error: std::option::Option<crate::model::ErrorResponse>,
#[doc(hidden)]
pub last_updated_time: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub created_time: std::option::Option<aws_smithy_types::DateTime>,
}
impl EnvironmentSummary {
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
pub fn description(&self) -> std::option::Option<&str> {
self.description.as_deref()
}
pub fn environment_id(&self) -> std::option::Option<&str> {
self.environment_id.as_deref()
}
pub fn network_fabric_type(&self) -> std::option::Option<&crate::model::NetworkFabricType> {
self.network_fabric_type.as_ref()
}
pub fn owner_account_id(&self) -> std::option::Option<&str> {
self.owner_account_id.as_deref()
}
pub fn transit_gateway_id(&self) -> std::option::Option<&str> {
self.transit_gateway_id.as_deref()
}
pub fn state(&self) -> std::option::Option<&crate::model::EnvironmentState> {
self.state.as_ref()
}
pub fn tags(
&self,
) -> std::option::Option<&std::collections::HashMap<std::string::String, std::string::String>>
{
self.tags.as_ref()
}
pub fn error(&self) -> std::option::Option<&crate::model::ErrorResponse> {
self.error.as_ref()
}
pub fn last_updated_time(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.last_updated_time.as_ref()
}
pub fn created_time(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.created_time.as_ref()
}
}
impl std::fmt::Debug for EnvironmentSummary {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("EnvironmentSummary");
formatter.field("name", &self.name);
formatter.field("arn", &self.arn);
formatter.field("description", &self.description);
formatter.field("environment_id", &self.environment_id);
formatter.field("network_fabric_type", &self.network_fabric_type);
formatter.field("owner_account_id", &self.owner_account_id);
formatter.field("transit_gateway_id", &self.transit_gateway_id);
formatter.field("state", &self.state);
formatter.field("tags", &"*** Sensitive Data Redacted ***");
formatter.field("error", &self.error);
formatter.field("last_updated_time", &self.last_updated_time);
formatter.field("created_time", &self.created_time);
formatter.finish()
}
}
pub mod environment_summary {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) arn: std::option::Option<std::string::String>,
pub(crate) description: std::option::Option<std::string::String>,
pub(crate) environment_id: std::option::Option<std::string::String>,
pub(crate) network_fabric_type: std::option::Option<crate::model::NetworkFabricType>,
pub(crate) owner_account_id: std::option::Option<std::string::String>,
pub(crate) transit_gateway_id: std::option::Option<std::string::String>,
pub(crate) state: std::option::Option<crate::model::EnvironmentState>,
pub(crate) tags: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
pub(crate) error: std::option::Option<crate::model::ErrorResponse>,
pub(crate) last_updated_time: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) created_time: std::option::Option<aws_smithy_types::DateTime>,
}
impl Builder {
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.description = Some(input.into());
self
}
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.description = input;
self
}
pub fn environment_id(mut self, input: impl Into<std::string::String>) -> Self {
self.environment_id = Some(input.into());
self
}
pub fn set_environment_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.environment_id = input;
self
}
pub fn network_fabric_type(mut self, input: crate::model::NetworkFabricType) -> Self {
self.network_fabric_type = Some(input);
self
}
pub fn set_network_fabric_type(
mut self,
input: std::option::Option<crate::model::NetworkFabricType>,
) -> Self {
self.network_fabric_type = input;
self
}
pub fn owner_account_id(mut self, input: impl Into<std::string::String>) -> Self {
self.owner_account_id = Some(input.into());
self
}
pub fn set_owner_account_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.owner_account_id = input;
self
}
pub fn transit_gateway_id(mut self, input: impl Into<std::string::String>) -> Self {
self.transit_gateway_id = Some(input.into());
self
}
pub fn set_transit_gateway_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.transit_gateway_id = input;
self
}
pub fn state(mut self, input: crate::model::EnvironmentState) -> Self {
self.state = Some(input);
self
}
pub fn set_state(
mut self,
input: std::option::Option<crate::model::EnvironmentState>,
) -> Self {
self.state = input;
self
}
pub fn tags(
mut self,
k: impl Into<std::string::String>,
v: impl Into<std::string::String>,
) -> Self {
let mut hash_map = self.tags.unwrap_or_default();
hash_map.insert(k.into(), v.into());
self.tags = Some(hash_map);
self
}
pub fn set_tags(
mut self,
input: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
) -> Self {
self.tags = input;
self
}
pub fn error(mut self, input: crate::model::ErrorResponse) -> Self {
self.error = Some(input);
self
}
pub fn set_error(
mut self,
input: std::option::Option<crate::model::ErrorResponse>,
) -> Self {
self.error = input;
self
}
pub fn last_updated_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.last_updated_time = Some(input);
self
}
pub fn set_last_updated_time(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.last_updated_time = input;
self
}
pub fn created_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.created_time = Some(input);
self
}
pub fn set_created_time(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.created_time = input;
self
}
pub fn build(self) -> crate::model::EnvironmentSummary {
crate::model::EnvironmentSummary {
name: self.name,
arn: self.arn,
description: self.description,
environment_id: self.environment_id,
network_fabric_type: self.network_fabric_type,
owner_account_id: self.owner_account_id,
transit_gateway_id: self.transit_gateway_id,
state: self.state,
tags: self.tags,
error: self.error,
last_updated_time: self.last_updated_time,
created_time: self.created_time,
}
}
}
impl std::fmt::Debug for Builder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Builder");
formatter.field("name", &self.name);
formatter.field("arn", &self.arn);
formatter.field("description", &self.description);
formatter.field("environment_id", &self.environment_id);
formatter.field("network_fabric_type", &self.network_fabric_type);
formatter.field("owner_account_id", &self.owner_account_id);
formatter.field("transit_gateway_id", &self.transit_gateway_id);
formatter.field("state", &self.state);
formatter.field("tags", &"*** Sensitive Data Redacted ***");
formatter.field("error", &self.error);
formatter.field("last_updated_time", &self.last_updated_time);
formatter.field("created_time", &self.created_time);
formatter.finish()
}
}
}
impl EnvironmentSummary {
pub fn builder() -> crate::model::environment_summary::Builder {
crate::model::environment_summary::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum EnvironmentState {
#[allow(missing_docs)] Active,
#[allow(missing_docs)] Creating,
#[allow(missing_docs)] Deleting,
#[allow(missing_docs)] Failed,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for EnvironmentState {
fn from(s: &str) -> Self {
match s {
"ACTIVE" => EnvironmentState::Active,
"CREATING" => EnvironmentState::Creating,
"DELETING" => EnvironmentState::Deleting,
"FAILED" => EnvironmentState::Failed,
other => EnvironmentState::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for EnvironmentState {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(EnvironmentState::from(s))
}
}
impl EnvironmentState {
pub fn as_str(&self) -> &str {
match self {
EnvironmentState::Active => "ACTIVE",
EnvironmentState::Creating => "CREATING",
EnvironmentState::Deleting => "DELETING",
EnvironmentState::Failed => "FAILED",
EnvironmentState::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["ACTIVE", "CREATING", "DELETING", "FAILED"]
}
}
impl AsRef<str> for EnvironmentState {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum NetworkFabricType {
#[allow(missing_docs)] TransitGateway,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for NetworkFabricType {
fn from(s: &str) -> Self {
match s {
"TRANSIT_GATEWAY" => NetworkFabricType::TransitGateway,
other => {
NetworkFabricType::Unknown(crate::types::UnknownVariantValue(other.to_owned()))
}
}
}
}
impl std::str::FromStr for NetworkFabricType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(NetworkFabricType::from(s))
}
}
impl NetworkFabricType {
pub fn as_str(&self) -> &str {
match self {
NetworkFabricType::TransitGateway => "TRANSIT_GATEWAY",
NetworkFabricType::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["TRANSIT_GATEWAY"]
}
}
impl AsRef<str> for NetworkFabricType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ApplicationSummary {
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub owner_account_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub created_by_account_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub application_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub environment_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub vpc_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub proxy_type: std::option::Option<crate::model::ProxyType>,
#[doc(hidden)]
pub api_gateway_proxy: std::option::Option<crate::model::ApiGatewayProxySummary>,
#[doc(hidden)]
pub state: std::option::Option<crate::model::ApplicationState>,
#[doc(hidden)]
pub tags:
std::option::Option<std::collections::HashMap<std::string::String, std::string::String>>,
#[doc(hidden)]
pub error: std::option::Option<crate::model::ErrorResponse>,
#[doc(hidden)]
pub last_updated_time: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub created_time: std::option::Option<aws_smithy_types::DateTime>,
}
impl ApplicationSummary {
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
pub fn owner_account_id(&self) -> std::option::Option<&str> {
self.owner_account_id.as_deref()
}
pub fn created_by_account_id(&self) -> std::option::Option<&str> {
self.created_by_account_id.as_deref()
}
pub fn application_id(&self) -> std::option::Option<&str> {
self.application_id.as_deref()
}
pub fn environment_id(&self) -> std::option::Option<&str> {
self.environment_id.as_deref()
}
pub fn vpc_id(&self) -> std::option::Option<&str> {
self.vpc_id.as_deref()
}
pub fn proxy_type(&self) -> std::option::Option<&crate::model::ProxyType> {
self.proxy_type.as_ref()
}
pub fn api_gateway_proxy(&self) -> std::option::Option<&crate::model::ApiGatewayProxySummary> {
self.api_gateway_proxy.as_ref()
}
pub fn state(&self) -> std::option::Option<&crate::model::ApplicationState> {
self.state.as_ref()
}
pub fn tags(
&self,
) -> std::option::Option<&std::collections::HashMap<std::string::String, std::string::String>>
{
self.tags.as_ref()
}
pub fn error(&self) -> std::option::Option<&crate::model::ErrorResponse> {
self.error.as_ref()
}
pub fn last_updated_time(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.last_updated_time.as_ref()
}
pub fn created_time(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.created_time.as_ref()
}
}
impl std::fmt::Debug for ApplicationSummary {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ApplicationSummary");
formatter.field("name", &self.name);
formatter.field("arn", &self.arn);
formatter.field("owner_account_id", &self.owner_account_id);
formatter.field("created_by_account_id", &self.created_by_account_id);
formatter.field("application_id", &self.application_id);
formatter.field("environment_id", &self.environment_id);
formatter.field("vpc_id", &self.vpc_id);
formatter.field("proxy_type", &self.proxy_type);
formatter.field("api_gateway_proxy", &self.api_gateway_proxy);
formatter.field("state", &self.state);
formatter.field("tags", &"*** Sensitive Data Redacted ***");
formatter.field("error", &self.error);
formatter.field("last_updated_time", &self.last_updated_time);
formatter.field("created_time", &self.created_time);
formatter.finish()
}
}
pub mod application_summary {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) arn: std::option::Option<std::string::String>,
pub(crate) owner_account_id: std::option::Option<std::string::String>,
pub(crate) created_by_account_id: std::option::Option<std::string::String>,
pub(crate) application_id: std::option::Option<std::string::String>,
pub(crate) environment_id: std::option::Option<std::string::String>,
pub(crate) vpc_id: std::option::Option<std::string::String>,
pub(crate) proxy_type: std::option::Option<crate::model::ProxyType>,
pub(crate) api_gateway_proxy: std::option::Option<crate::model::ApiGatewayProxySummary>,
pub(crate) state: std::option::Option<crate::model::ApplicationState>,
pub(crate) tags: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
pub(crate) error: std::option::Option<crate::model::ErrorResponse>,
pub(crate) last_updated_time: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) created_time: std::option::Option<aws_smithy_types::DateTime>,
}
impl Builder {
pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
self.name = Some(input.into());
self
}
pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.name = input;
self
}
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
pub fn owner_account_id(mut self, input: impl Into<std::string::String>) -> Self {
self.owner_account_id = Some(input.into());
self
}
pub fn set_owner_account_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.owner_account_id = input;
self
}
pub fn created_by_account_id(mut self, input: impl Into<std::string::String>) -> Self {
self.created_by_account_id = Some(input.into());
self
}
pub fn set_created_by_account_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.created_by_account_id = input;
self
}
pub fn application_id(mut self, input: impl Into<std::string::String>) -> Self {
self.application_id = Some(input.into());
self
}
pub fn set_application_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.application_id = input;
self
}
pub fn environment_id(mut self, input: impl Into<std::string::String>) -> Self {
self.environment_id = Some(input.into());
self
}
pub fn set_environment_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.environment_id = input;
self
}
pub fn vpc_id(mut self, input: impl Into<std::string::String>) -> Self {
self.vpc_id = Some(input.into());
self
}
pub fn set_vpc_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.vpc_id = input;
self
}
pub fn proxy_type(mut self, input: crate::model::ProxyType) -> Self {
self.proxy_type = Some(input);
self
}
pub fn set_proxy_type(
mut self,
input: std::option::Option<crate::model::ProxyType>,
) -> Self {
self.proxy_type = input;
self
}
pub fn api_gateway_proxy(mut self, input: crate::model::ApiGatewayProxySummary) -> Self {
self.api_gateway_proxy = Some(input);
self
}
pub fn set_api_gateway_proxy(
mut self,
input: std::option::Option<crate::model::ApiGatewayProxySummary>,
) -> Self {
self.api_gateway_proxy = input;
self
}
pub fn state(mut self, input: crate::model::ApplicationState) -> Self {
self.state = Some(input);
self
}
pub fn set_state(
mut self,
input: std::option::Option<crate::model::ApplicationState>,
) -> Self {
self.state = input;
self
}
pub fn tags(
mut self,
k: impl Into<std::string::String>,
v: impl Into<std::string::String>,
) -> Self {
let mut hash_map = self.tags.unwrap_or_default();
hash_map.insert(k.into(), v.into());
self.tags = Some(hash_map);
self
}
pub fn set_tags(
mut self,
input: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
) -> Self {
self.tags = input;
self
}
pub fn error(mut self, input: crate::model::ErrorResponse) -> Self {
self.error = Some(input);
self
}
pub fn set_error(
mut self,
input: std::option::Option<crate::model::ErrorResponse>,
) -> Self {
self.error = input;
self
}
pub fn last_updated_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.last_updated_time = Some(input);
self
}
pub fn set_last_updated_time(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.last_updated_time = input;
self
}
pub fn created_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.created_time = Some(input);
self
}
pub fn set_created_time(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.created_time = input;
self
}
pub fn build(self) -> crate::model::ApplicationSummary {
crate::model::ApplicationSummary {
name: self.name,
arn: self.arn,
owner_account_id: self.owner_account_id,
created_by_account_id: self.created_by_account_id,
application_id: self.application_id,
environment_id: self.environment_id,
vpc_id: self.vpc_id,
proxy_type: self.proxy_type,
api_gateway_proxy: self.api_gateway_proxy,
state: self.state,
tags: self.tags,
error: self.error,
last_updated_time: self.last_updated_time,
created_time: self.created_time,
}
}
}
impl std::fmt::Debug for Builder {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("Builder");
formatter.field("name", &self.name);
formatter.field("arn", &self.arn);
formatter.field("owner_account_id", &self.owner_account_id);
formatter.field("created_by_account_id", &self.created_by_account_id);
formatter.field("application_id", &self.application_id);
formatter.field("environment_id", &self.environment_id);
formatter.field("vpc_id", &self.vpc_id);
formatter.field("proxy_type", &self.proxy_type);
formatter.field("api_gateway_proxy", &self.api_gateway_proxy);
formatter.field("state", &self.state);
formatter.field("tags", &"*** Sensitive Data Redacted ***");
formatter.field("error", &self.error);
formatter.field("last_updated_time", &self.last_updated_time);
formatter.field("created_time", &self.created_time);
formatter.finish()
}
}
}
impl ApplicationSummary {
pub fn builder() -> crate::model::application_summary::Builder {
crate::model::application_summary::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum ApplicationState {
#[allow(missing_docs)] Active,
#[allow(missing_docs)] Creating,
#[allow(missing_docs)] Deleting,
#[allow(missing_docs)] Failed,
#[allow(missing_docs)] Updating,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for ApplicationState {
fn from(s: &str) -> Self {
match s {
"ACTIVE" => ApplicationState::Active,
"CREATING" => ApplicationState::Creating,
"DELETING" => ApplicationState::Deleting,
"FAILED" => ApplicationState::Failed,
"UPDATING" => ApplicationState::Updating,
other => ApplicationState::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for ApplicationState {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(ApplicationState::from(s))
}
}
impl ApplicationState {
pub fn as_str(&self) -> &str {
match self {
ApplicationState::Active => "ACTIVE",
ApplicationState::Creating => "CREATING",
ApplicationState::Deleting => "DELETING",
ApplicationState::Failed => "FAILED",
ApplicationState::Updating => "UPDATING",
ApplicationState::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["ACTIVE", "CREATING", "DELETING", "FAILED", "UPDATING"]
}
}
impl AsRef<str> for ApplicationState {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ApiGatewayProxySummary {
#[doc(hidden)]
pub proxy_url: std::option::Option<std::string::String>,
#[doc(hidden)]
pub api_gateway_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub vpc_link_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub nlb_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub nlb_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub endpoint_type: std::option::Option<crate::model::ApiGatewayEndpointType>,
#[doc(hidden)]
pub stage_name: std::option::Option<std::string::String>,
}
impl ApiGatewayProxySummary {
pub fn proxy_url(&self) -> std::option::Option<&str> {
self.proxy_url.as_deref()
}
pub fn api_gateway_id(&self) -> std::option::Option<&str> {
self.api_gateway_id.as_deref()
}
pub fn vpc_link_id(&self) -> std::option::Option<&str> {
self.vpc_link_id.as_deref()
}
pub fn nlb_arn(&self) -> std::option::Option<&str> {
self.nlb_arn.as_deref()
}
pub fn nlb_name(&self) -> std::option::Option<&str> {
self.nlb_name.as_deref()
}
pub fn endpoint_type(&self) -> std::option::Option<&crate::model::ApiGatewayEndpointType> {
self.endpoint_type.as_ref()
}
pub fn stage_name(&self) -> std::option::Option<&str> {
self.stage_name.as_deref()
}
}
pub mod api_gateway_proxy_summary {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) proxy_url: std::option::Option<std::string::String>,
pub(crate) api_gateway_id: std::option::Option<std::string::String>,
pub(crate) vpc_link_id: std::option::Option<std::string::String>,
pub(crate) nlb_arn: std::option::Option<std::string::String>,
pub(crate) nlb_name: std::option::Option<std::string::String>,
pub(crate) endpoint_type: std::option::Option<crate::model::ApiGatewayEndpointType>,
pub(crate) stage_name: std::option::Option<std::string::String>,
}
impl Builder {
pub fn proxy_url(mut self, input: impl Into<std::string::String>) -> Self {
self.proxy_url = Some(input.into());
self
}
pub fn set_proxy_url(mut self, input: std::option::Option<std::string::String>) -> Self {
self.proxy_url = input;
self
}
pub fn api_gateway_id(mut self, input: impl Into<std::string::String>) -> Self {
self.api_gateway_id = Some(input.into());
self
}
pub fn set_api_gateway_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.api_gateway_id = input;
self
}
pub fn vpc_link_id(mut self, input: impl Into<std::string::String>) -> Self {
self.vpc_link_id = Some(input.into());
self
}
pub fn set_vpc_link_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.vpc_link_id = input;
self
}
pub fn nlb_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.nlb_arn = Some(input.into());
self
}
pub fn set_nlb_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.nlb_arn = input;
self
}
pub fn nlb_name(mut self, input: impl Into<std::string::String>) -> Self {
self.nlb_name = Some(input.into());
self
}
pub fn set_nlb_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.nlb_name = input;
self
}
pub fn endpoint_type(mut self, input: crate::model::ApiGatewayEndpointType) -> Self {
self.endpoint_type = Some(input);
self
}
pub fn set_endpoint_type(
mut self,
input: std::option::Option<crate::model::ApiGatewayEndpointType>,
) -> Self {
self.endpoint_type = input;
self
}
pub fn stage_name(mut self, input: impl Into<std::string::String>) -> Self {
self.stage_name = Some(input.into());
self
}
pub fn set_stage_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.stage_name = input;
self
}
pub fn build(self) -> crate::model::ApiGatewayProxySummary {
crate::model::ApiGatewayProxySummary {
proxy_url: self.proxy_url,
api_gateway_id: self.api_gateway_id,
vpc_link_id: self.vpc_link_id,
nlb_arn: self.nlb_arn,
nlb_name: self.nlb_name,
endpoint_type: self.endpoint_type,
stage_name: self.stage_name,
}
}
}
}
impl ApiGatewayProxySummary {
pub fn builder() -> crate::model::api_gateway_proxy_summary::Builder {
crate::model::api_gateway_proxy_summary::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum ApiGatewayEndpointType {
#[allow(missing_docs)] Private,
#[allow(missing_docs)] Regional,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for ApiGatewayEndpointType {
fn from(s: &str) -> Self {
match s {
"PRIVATE" => ApiGatewayEndpointType::Private,
"REGIONAL" => ApiGatewayEndpointType::Regional,
other => {
ApiGatewayEndpointType::Unknown(crate::types::UnknownVariantValue(other.to_owned()))
}
}
}
}
impl std::str::FromStr for ApiGatewayEndpointType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(ApiGatewayEndpointType::from(s))
}
}
impl ApiGatewayEndpointType {
pub fn as_str(&self) -> &str {
match self {
ApiGatewayEndpointType::Private => "PRIVATE",
ApiGatewayEndpointType::Regional => "REGIONAL",
ApiGatewayEndpointType::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["PRIVATE", "REGIONAL"]
}
}
impl AsRef<str> for ApiGatewayEndpointType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(
std::clone::Clone,
std::cmp::Eq,
std::cmp::Ord,
std::cmp::PartialEq,
std::cmp::PartialOrd,
std::fmt::Debug,
std::hash::Hash,
)]
pub enum ProxyType {
#[allow(missing_docs)] ApiGateway,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for ProxyType {
fn from(s: &str) -> Self {
match s {
"API_GATEWAY" => ProxyType::ApiGateway,
other => ProxyType::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for ProxyType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(ProxyType::from(s))
}
}
impl ProxyType {
pub fn as_str(&self) -> &str {
match self {
ProxyType::ApiGateway => "API_GATEWAY",
ProxyType::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["API_GATEWAY"]
}
}
impl AsRef<str> for ProxyType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct LambdaEndpointConfig {
#[doc(hidden)]
pub arn: std::option::Option<std::string::String>,
}
impl LambdaEndpointConfig {
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
}
pub mod lambda_endpoint_config {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) arn: std::option::Option<std::string::String>,
}
impl Builder {
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
pub fn build(self) -> crate::model::LambdaEndpointConfig {
crate::model::LambdaEndpointConfig { arn: self.arn }
}
}
}
impl LambdaEndpointConfig {
pub fn builder() -> crate::model::lambda_endpoint_config::Builder {
crate::model::lambda_endpoint_config::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UrlEndpointConfig {
#[doc(hidden)]
pub url: std::option::Option<std::string::String>,
#[doc(hidden)]
pub health_url: std::option::Option<std::string::String>,
}
impl UrlEndpointConfig {
pub fn url(&self) -> std::option::Option<&str> {
self.url.as_deref()
}
pub fn health_url(&self) -> std::option::Option<&str> {
self.health_url.as_deref()
}
}
pub mod url_endpoint_config {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) url: std::option::Option<std::string::String>,
pub(crate) health_url: std::option::Option<std::string::String>,
}
impl Builder {
pub fn url(mut self, input: impl Into<std::string::String>) -> Self {
self.url = Some(input.into());
self
}
pub fn set_url(mut self, input: std::option::Option<std::string::String>) -> Self {
self.url = input;
self
}
pub fn health_url(mut self, input: impl Into<std::string::String>) -> Self {
self.health_url = Some(input.into());
self
}
pub fn set_health_url(mut self, input: std::option::Option<std::string::String>) -> Self {
self.health_url = input;
self
}
pub fn build(self) -> crate::model::UrlEndpointConfig {
crate::model::UrlEndpointConfig {
url: self.url,
health_url: self.health_url,
}
}
}
}
impl UrlEndpointConfig {
pub fn builder() -> crate::model::url_endpoint_config::Builder {
crate::model::url_endpoint_config::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ApiGatewayProxyConfig {
#[doc(hidden)]
pub proxy_url: std::option::Option<std::string::String>,
#[doc(hidden)]
pub api_gateway_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub vpc_link_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub nlb_arn: std::option::Option<std::string::String>,
#[doc(hidden)]
pub nlb_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub endpoint_type: std::option::Option<crate::model::ApiGatewayEndpointType>,
#[doc(hidden)]
pub stage_name: std::option::Option<std::string::String>,
}
impl ApiGatewayProxyConfig {
pub fn proxy_url(&self) -> std::option::Option<&str> {
self.proxy_url.as_deref()
}
pub fn api_gateway_id(&self) -> std::option::Option<&str> {
self.api_gateway_id.as_deref()
}
pub fn vpc_link_id(&self) -> std::option::Option<&str> {
self.vpc_link_id.as_deref()
}
pub fn nlb_arn(&self) -> std::option::Option<&str> {
self.nlb_arn.as_deref()
}
pub fn nlb_name(&self) -> std::option::Option<&str> {
self.nlb_name.as_deref()
}
pub fn endpoint_type(&self) -> std::option::Option<&crate::model::ApiGatewayEndpointType> {
self.endpoint_type.as_ref()
}
pub fn stage_name(&self) -> std::option::Option<&str> {
self.stage_name.as_deref()
}
}
pub mod api_gateway_proxy_config {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) proxy_url: std::option::Option<std::string::String>,
pub(crate) api_gateway_id: std::option::Option<std::string::String>,
pub(crate) vpc_link_id: std::option::Option<std::string::String>,
pub(crate) nlb_arn: std::option::Option<std::string::String>,
pub(crate) nlb_name: std::option::Option<std::string::String>,
pub(crate) endpoint_type: std::option::Option<crate::model::ApiGatewayEndpointType>,
pub(crate) stage_name: std::option::Option<std::string::String>,
}
impl Builder {
pub fn proxy_url(mut self, input: impl Into<std::string::String>) -> Self {
self.proxy_url = Some(input.into());
self
}
pub fn set_proxy_url(mut self, input: std::option::Option<std::string::String>) -> Self {
self.proxy_url = input;
self
}
pub fn api_gateway_id(mut self, input: impl Into<std::string::String>) -> Self {
self.api_gateway_id = Some(input.into());
self
}
pub fn set_api_gateway_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.api_gateway_id = input;
self
}
pub fn vpc_link_id(mut self, input: impl Into<std::string::String>) -> Self {
self.vpc_link_id = Some(input.into());
self
}
pub fn set_vpc_link_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.vpc_link_id = input;
self
}
pub fn nlb_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.nlb_arn = Some(input.into());
self
}
pub fn set_nlb_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.nlb_arn = input;
self
}
pub fn nlb_name(mut self, input: impl Into<std::string::String>) -> Self {
self.nlb_name = Some(input.into());
self
}
pub fn set_nlb_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.nlb_name = input;
self
}
pub fn endpoint_type(mut self, input: crate::model::ApiGatewayEndpointType) -> Self {
self.endpoint_type = Some(input);
self
}
pub fn set_endpoint_type(
mut self,
input: std::option::Option<crate::model::ApiGatewayEndpointType>,
) -> Self {
self.endpoint_type = input;
self
}
pub fn stage_name(mut self, input: impl Into<std::string::String>) -> Self {
self.stage_name = Some(input.into());
self
}
pub fn set_stage_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.stage_name = input;
self
}
pub fn build(self) -> crate::model::ApiGatewayProxyConfig {
crate::model::ApiGatewayProxyConfig {
proxy_url: self.proxy_url,
api_gateway_id: self.api_gateway_id,
vpc_link_id: self.vpc_link_id,
nlb_arn: self.nlb_arn,
nlb_name: self.nlb_name,
endpoint_type: self.endpoint_type,
stage_name: self.stage_name,
}
}
}
}
impl ApiGatewayProxyConfig {
pub fn builder() -> crate::model::api_gateway_proxy_config::Builder {
crate::model::api_gateway_proxy_config::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct LambdaEndpointInput {
#[doc(hidden)]
pub arn: std::option::Option<std::string::String>,
}
impl LambdaEndpointInput {
pub fn arn(&self) -> std::option::Option<&str> {
self.arn.as_deref()
}
}
pub mod lambda_endpoint_input {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) arn: std::option::Option<std::string::String>,
}
impl Builder {
pub fn arn(mut self, input: impl Into<std::string::String>) -> Self {
self.arn = Some(input.into());
self
}
pub fn set_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.arn = input;
self
}
pub fn build(self) -> crate::model::LambdaEndpointInput {
crate::model::LambdaEndpointInput { arn: self.arn }
}
}
}
impl LambdaEndpointInput {
pub fn builder() -> crate::model::lambda_endpoint_input::Builder {
crate::model::lambda_endpoint_input::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UrlEndpointInput {
#[doc(hidden)]
pub url: std::option::Option<std::string::String>,
#[doc(hidden)]
pub health_url: std::option::Option<std::string::String>,
}
impl UrlEndpointInput {
pub fn url(&self) -> std::option::Option<&str> {
self.url.as_deref()
}
pub fn health_url(&self) -> std::option::Option<&str> {
self.health_url.as_deref()
}
}
pub mod url_endpoint_input {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) url: std::option::Option<std::string::String>,
pub(crate) health_url: std::option::Option<std::string::String>,
}
impl Builder {
pub fn url(mut self, input: impl Into<std::string::String>) -> Self {
self.url = Some(input.into());
self
}
pub fn set_url(mut self, input: std::option::Option<std::string::String>) -> Self {
self.url = input;
self
}
pub fn health_url(mut self, input: impl Into<std::string::String>) -> Self {
self.health_url = Some(input.into());
self
}
pub fn set_health_url(mut self, input: std::option::Option<std::string::String>) -> Self {
self.health_url = input;
self
}
pub fn build(self) -> crate::model::UrlEndpointInput {
crate::model::UrlEndpointInput {
url: self.url,
health_url: self.health_url,
}
}
}
}
impl UrlEndpointInput {
pub fn builder() -> crate::model::url_endpoint_input::Builder {
crate::model::url_endpoint_input::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UriPathRouteInput {
#[doc(hidden)]
pub source_path: std::option::Option<std::string::String>,
#[doc(hidden)]
pub activation_state: std::option::Option<crate::model::RouteActivationState>,
#[doc(hidden)]
pub methods: std::option::Option<std::vec::Vec<crate::model::HttpMethod>>,
#[doc(hidden)]
pub include_child_paths: std::option::Option<bool>,
}
impl UriPathRouteInput {
pub fn source_path(&self) -> std::option::Option<&str> {
self.source_path.as_deref()
}
pub fn activation_state(&self) -> std::option::Option<&crate::model::RouteActivationState> {
self.activation_state.as_ref()
}
pub fn methods(&self) -> std::option::Option<&[crate::model::HttpMethod]> {
self.methods.as_deref()
}
pub fn include_child_paths(&self) -> std::option::Option<bool> {
self.include_child_paths
}
}
pub mod uri_path_route_input {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) source_path: std::option::Option<std::string::String>,
pub(crate) activation_state: std::option::Option<crate::model::RouteActivationState>,
pub(crate) methods: std::option::Option<std::vec::Vec<crate::model::HttpMethod>>,
pub(crate) include_child_paths: std::option::Option<bool>,
}
impl Builder {
pub fn source_path(mut self, input: impl Into<std::string::String>) -> Self {
self.source_path = Some(input.into());
self
}
pub fn set_source_path(mut self, input: std::option::Option<std::string::String>) -> Self {
self.source_path = input;
self
}
pub fn activation_state(mut self, input: crate::model::RouteActivationState) -> Self {
self.activation_state = Some(input);
self
}
pub fn set_activation_state(
mut self,
input: std::option::Option<crate::model::RouteActivationState>,
) -> Self {
self.activation_state = input;
self
}
pub fn methods(mut self, input: crate::model::HttpMethod) -> Self {
let mut v = self.methods.unwrap_or_default();
v.push(input);
self.methods = Some(v);
self
}
pub fn set_methods(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::HttpMethod>>,
) -> Self {
self.methods = input;
self
}
pub fn include_child_paths(mut self, input: bool) -> Self {
self.include_child_paths = Some(input);
self
}
pub fn set_include_child_paths(mut self, input: std::option::Option<bool>) -> Self {
self.include_child_paths = input;
self
}
pub fn build(self) -> crate::model::UriPathRouteInput {
crate::model::UriPathRouteInput {
source_path: self.source_path,
activation_state: self.activation_state,
methods: self.methods,
include_child_paths: self.include_child_paths,
}
}
}
}
impl UriPathRouteInput {
pub fn builder() -> crate::model::uri_path_route_input::Builder {
crate::model::uri_path_route_input::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DefaultRouteInput {
#[doc(hidden)]
pub activation_state: std::option::Option<crate::model::RouteActivationState>,
}
impl DefaultRouteInput {
pub fn activation_state(&self) -> std::option::Option<&crate::model::RouteActivationState> {
self.activation_state.as_ref()
}
}
pub mod default_route_input {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) activation_state: std::option::Option<crate::model::RouteActivationState>,
}
impl Builder {
pub fn activation_state(mut self, input: crate::model::RouteActivationState) -> Self {
self.activation_state = Some(input);
self
}
pub fn set_activation_state(
mut self,
input: std::option::Option<crate::model::RouteActivationState>,
) -> Self {
self.activation_state = input;
self
}
pub fn build(self) -> crate::model::DefaultRouteInput {
crate::model::DefaultRouteInput {
activation_state: self.activation_state,
}
}
}
}
impl DefaultRouteInput {
pub fn builder() -> crate::model::default_route_input::Builder {
crate::model::default_route_input::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ApiGatewayProxyInput {
#[doc(hidden)]
pub endpoint_type: std::option::Option<crate::model::ApiGatewayEndpointType>,
#[doc(hidden)]
pub stage_name: std::option::Option<std::string::String>,
}
impl ApiGatewayProxyInput {
pub fn endpoint_type(&self) -> std::option::Option<&crate::model::ApiGatewayEndpointType> {
self.endpoint_type.as_ref()
}
pub fn stage_name(&self) -> std::option::Option<&str> {
self.stage_name.as_deref()
}
}
pub mod api_gateway_proxy_input {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) endpoint_type: std::option::Option<crate::model::ApiGatewayEndpointType>,
pub(crate) stage_name: std::option::Option<std::string::String>,
}
impl Builder {
pub fn endpoint_type(mut self, input: crate::model::ApiGatewayEndpointType) -> Self {
self.endpoint_type = Some(input);
self
}
pub fn set_endpoint_type(
mut self,
input: std::option::Option<crate::model::ApiGatewayEndpointType>,
) -> Self {
self.endpoint_type = input;
self
}
pub fn stage_name(mut self, input: impl Into<std::string::String>) -> Self {
self.stage_name = Some(input.into());
self
}
pub fn set_stage_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.stage_name = input;
self
}
pub fn build(self) -> crate::model::ApiGatewayProxyInput {
crate::model::ApiGatewayProxyInput {
endpoint_type: self.endpoint_type,
stage_name: self.stage_name,
}
}
}
}
impl ApiGatewayProxyInput {
pub fn builder() -> crate::model::api_gateway_proxy_input::Builder {
crate::model::api_gateway_proxy_input::Builder::default()
}
}