#[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 IdentityProviderType {
#[allow(missing_docs)] Saml,
Unknown(String),
}
impl std::convert::From<&str> for IdentityProviderType {
fn from(s: &str) -> Self {
match s {
"SAML" => IdentityProviderType::Saml,
other => IdentityProviderType::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for IdentityProviderType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(IdentityProviderType::from(s))
}
}
impl IdentityProviderType {
pub fn as_str(&self) -> &str {
match self {
IdentityProviderType::Saml => "SAML",
IdentityProviderType::Unknown(s) => s.as_ref(),
}
}
pub fn values() -> &'static [&'static str] {
&["SAML"]
}
}
impl AsRef<str> for IdentityProviderType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct WebsiteCaSummary {
pub website_ca_id: std::option::Option<std::string::String>,
pub created_time: std::option::Option<aws_smithy_types::Instant>,
pub display_name: std::option::Option<std::string::String>,
}
impl std::fmt::Debug for WebsiteCaSummary {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("WebsiteCaSummary");
formatter.field("website_ca_id", &self.website_ca_id);
formatter.field("created_time", &self.created_time);
formatter.field("display_name", &self.display_name);
formatter.finish()
}
}
pub mod website_ca_summary {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) website_ca_id: std::option::Option<std::string::String>,
pub(crate) created_time: std::option::Option<aws_smithy_types::Instant>,
pub(crate) display_name: std::option::Option<std::string::String>,
}
impl Builder {
pub fn website_ca_id(mut self, input: impl Into<std::string::String>) -> Self {
self.website_ca_id = Some(input.into());
self
}
pub fn set_website_ca_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.website_ca_id = input;
self
}
pub fn created_time(mut self, input: aws_smithy_types::Instant) -> Self {
self.created_time = Some(input);
self
}
pub fn set_created_time(
mut self,
input: std::option::Option<aws_smithy_types::Instant>,
) -> Self {
self.created_time = input;
self
}
pub fn display_name(mut self, input: impl Into<std::string::String>) -> Self {
self.display_name = Some(input.into());
self
}
pub fn set_display_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.display_name = input;
self
}
pub fn build(self) -> crate::model::WebsiteCaSummary {
crate::model::WebsiteCaSummary {
website_ca_id: self.website_ca_id,
created_time: self.created_time,
display_name: self.display_name,
}
}
}
}
impl WebsiteCaSummary {
pub fn builder() -> crate::model::website_ca_summary::Builder {
crate::model::website_ca_summary::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct WebsiteAuthorizationProviderSummary {
pub authorization_provider_id: std::option::Option<std::string::String>,
pub authorization_provider_type: std::option::Option<crate::model::AuthorizationProviderType>,
pub domain_name: std::option::Option<std::string::String>,
pub created_time: std::option::Option<aws_smithy_types::Instant>,
}
impl std::fmt::Debug for WebsiteAuthorizationProviderSummary {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("WebsiteAuthorizationProviderSummary");
formatter.field("authorization_provider_id", &self.authorization_provider_id);
formatter.field(
"authorization_provider_type",
&self.authorization_provider_type,
);
formatter.field("domain_name", &self.domain_name);
formatter.field("created_time", &self.created_time);
formatter.finish()
}
}
pub mod website_authorization_provider_summary {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) authorization_provider_id: std::option::Option<std::string::String>,
pub(crate) authorization_provider_type:
std::option::Option<crate::model::AuthorizationProviderType>,
pub(crate) domain_name: std::option::Option<std::string::String>,
pub(crate) created_time: std::option::Option<aws_smithy_types::Instant>,
}
impl Builder {
pub fn authorization_provider_id(mut self, input: impl Into<std::string::String>) -> Self {
self.authorization_provider_id = Some(input.into());
self
}
pub fn set_authorization_provider_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.authorization_provider_id = input;
self
}
pub fn authorization_provider_type(
mut self,
input: crate::model::AuthorizationProviderType,
) -> Self {
self.authorization_provider_type = Some(input);
self
}
pub fn set_authorization_provider_type(
mut self,
input: std::option::Option<crate::model::AuthorizationProviderType>,
) -> Self {
self.authorization_provider_type = input;
self
}
pub fn domain_name(mut self, input: impl Into<std::string::String>) -> Self {
self.domain_name = Some(input.into());
self
}
pub fn set_domain_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.domain_name = input;
self
}
pub fn created_time(mut self, input: aws_smithy_types::Instant) -> Self {
self.created_time = Some(input);
self
}
pub fn set_created_time(
mut self,
input: std::option::Option<aws_smithy_types::Instant>,
) -> Self {
self.created_time = input;
self
}
pub fn build(self) -> crate::model::WebsiteAuthorizationProviderSummary {
crate::model::WebsiteAuthorizationProviderSummary {
authorization_provider_id: self.authorization_provider_id,
authorization_provider_type: self.authorization_provider_type,
domain_name: self.domain_name,
created_time: self.created_time,
}
}
}
}
impl WebsiteAuthorizationProviderSummary {
pub fn builder() -> crate::model::website_authorization_provider_summary::Builder {
crate::model::website_authorization_provider_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 AuthorizationProviderType {
#[allow(missing_docs)] Saml,
Unknown(String),
}
impl std::convert::From<&str> for AuthorizationProviderType {
fn from(s: &str) -> Self {
match s {
"SAML" => AuthorizationProviderType::Saml,
other => AuthorizationProviderType::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for AuthorizationProviderType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(AuthorizationProviderType::from(s))
}
}
impl AuthorizationProviderType {
pub fn as_str(&self) -> &str {
match self {
AuthorizationProviderType::Saml => "SAML",
AuthorizationProviderType::Unknown(s) => s.as_ref(),
}
}
pub fn values() -> &'static [&'static str] {
&["SAML"]
}
}
impl AsRef<str> for AuthorizationProviderType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct FleetSummary {
pub fleet_arn: std::option::Option<std::string::String>,
pub created_time: std::option::Option<aws_smithy_types::Instant>,
pub last_updated_time: std::option::Option<aws_smithy_types::Instant>,
pub fleet_name: std::option::Option<std::string::String>,
pub display_name: std::option::Option<std::string::String>,
pub company_code: std::option::Option<std::string::String>,
pub fleet_status: std::option::Option<crate::model::FleetStatus>,
pub tags:
std::option::Option<std::collections::HashMap<std::string::String, std::string::String>>,
}
impl std::fmt::Debug for FleetSummary {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("FleetSummary");
formatter.field("fleet_arn", &self.fleet_arn);
formatter.field("created_time", &self.created_time);
formatter.field("last_updated_time", &self.last_updated_time);
formatter.field("fleet_name", &self.fleet_name);
formatter.field("display_name", &self.display_name);
formatter.field("company_code", &self.company_code);
formatter.field("fleet_status", &self.fleet_status);
formatter.field("tags", &self.tags);
formatter.finish()
}
}
pub mod fleet_summary {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) fleet_arn: std::option::Option<std::string::String>,
pub(crate) created_time: std::option::Option<aws_smithy_types::Instant>,
pub(crate) last_updated_time: std::option::Option<aws_smithy_types::Instant>,
pub(crate) fleet_name: std::option::Option<std::string::String>,
pub(crate) display_name: std::option::Option<std::string::String>,
pub(crate) company_code: std::option::Option<std::string::String>,
pub(crate) fleet_status: std::option::Option<crate::model::FleetStatus>,
pub(crate) tags: std::option::Option<
std::collections::HashMap<std::string::String, std::string::String>,
>,
}
impl Builder {
pub fn fleet_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.fleet_arn = Some(input.into());
self
}
pub fn set_fleet_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.fleet_arn = input;
self
}
pub fn created_time(mut self, input: aws_smithy_types::Instant) -> Self {
self.created_time = Some(input);
self
}
pub fn set_created_time(
mut self,
input: std::option::Option<aws_smithy_types::Instant>,
) -> Self {
self.created_time = input;
self
}
pub fn last_updated_time(mut self, input: aws_smithy_types::Instant) -> Self {
self.last_updated_time = Some(input);
self
}
pub fn set_last_updated_time(
mut self,
input: std::option::Option<aws_smithy_types::Instant>,
) -> Self {
self.last_updated_time = input;
self
}
pub fn fleet_name(mut self, input: impl Into<std::string::String>) -> Self {
self.fleet_name = Some(input.into());
self
}
pub fn set_fleet_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.fleet_name = input;
self
}
pub fn display_name(mut self, input: impl Into<std::string::String>) -> Self {
self.display_name = Some(input.into());
self
}
pub fn set_display_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.display_name = input;
self
}
pub fn company_code(mut self, input: impl Into<std::string::String>) -> Self {
self.company_code = Some(input.into());
self
}
pub fn set_company_code(mut self, input: std::option::Option<std::string::String>) -> Self {
self.company_code = input;
self
}
pub fn fleet_status(mut self, input: crate::model::FleetStatus) -> Self {
self.fleet_status = Some(input);
self
}
pub fn set_fleet_status(
mut self,
input: std::option::Option<crate::model::FleetStatus>,
) -> Self {
self.fleet_status = 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 build(self) -> crate::model::FleetSummary {
crate::model::FleetSummary {
fleet_arn: self.fleet_arn,
created_time: self.created_time,
last_updated_time: self.last_updated_time,
fleet_name: self.fleet_name,
display_name: self.display_name,
company_code: self.company_code,
fleet_status: self.fleet_status,
tags: self.tags,
}
}
}
}
impl FleetSummary {
pub fn builder() -> crate::model::fleet_summary::Builder {
crate::model::fleet_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 FleetStatus {
#[allow(missing_docs)] Active,
#[allow(missing_docs)] Creating,
#[allow(missing_docs)] Deleted,
#[allow(missing_docs)] Deleting,
#[allow(missing_docs)] FailedToCreate,
#[allow(missing_docs)] FailedToDelete,
Unknown(String),
}
impl std::convert::From<&str> for FleetStatus {
fn from(s: &str) -> Self {
match s {
"ACTIVE" => FleetStatus::Active,
"CREATING" => FleetStatus::Creating,
"DELETED" => FleetStatus::Deleted,
"DELETING" => FleetStatus::Deleting,
"FAILED_TO_CREATE" => FleetStatus::FailedToCreate,
"FAILED_TO_DELETE" => FleetStatus::FailedToDelete,
other => FleetStatus::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for FleetStatus {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(FleetStatus::from(s))
}
}
impl FleetStatus {
pub fn as_str(&self) -> &str {
match self {
FleetStatus::Active => "ACTIVE",
FleetStatus::Creating => "CREATING",
FleetStatus::Deleted => "DELETED",
FleetStatus::Deleting => "DELETING",
FleetStatus::FailedToCreate => "FAILED_TO_CREATE",
FleetStatus::FailedToDelete => "FAILED_TO_DELETE",
FleetStatus::Unknown(s) => s.as_ref(),
}
}
pub fn values() -> &'static [&'static str] {
&[
"ACTIVE",
"CREATING",
"DELETED",
"DELETING",
"FAILED_TO_CREATE",
"FAILED_TO_DELETE",
]
}
}
impl AsRef<str> for FleetStatus {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DomainSummary {
pub domain_name: std::option::Option<std::string::String>,
pub display_name: std::option::Option<std::string::String>,
pub created_time: std::option::Option<aws_smithy_types::Instant>,
pub domain_status: std::option::Option<crate::model::DomainStatus>,
}
impl std::fmt::Debug for DomainSummary {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DomainSummary");
formatter.field("domain_name", &self.domain_name);
formatter.field("display_name", &self.display_name);
formatter.field("created_time", &self.created_time);
formatter.field("domain_status", &self.domain_status);
formatter.finish()
}
}
pub mod domain_summary {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) domain_name: std::option::Option<std::string::String>,
pub(crate) display_name: std::option::Option<std::string::String>,
pub(crate) created_time: std::option::Option<aws_smithy_types::Instant>,
pub(crate) domain_status: std::option::Option<crate::model::DomainStatus>,
}
impl Builder {
pub fn domain_name(mut self, input: impl Into<std::string::String>) -> Self {
self.domain_name = Some(input.into());
self
}
pub fn set_domain_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.domain_name = input;
self
}
pub fn display_name(mut self, input: impl Into<std::string::String>) -> Self {
self.display_name = Some(input.into());
self
}
pub fn set_display_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.display_name = input;
self
}
pub fn created_time(mut self, input: aws_smithy_types::Instant) -> Self {
self.created_time = Some(input);
self
}
pub fn set_created_time(
mut self,
input: std::option::Option<aws_smithy_types::Instant>,
) -> Self {
self.created_time = input;
self
}
pub fn domain_status(mut self, input: crate::model::DomainStatus) -> Self {
self.domain_status = Some(input);
self
}
pub fn set_domain_status(
mut self,
input: std::option::Option<crate::model::DomainStatus>,
) -> Self {
self.domain_status = input;
self
}
pub fn build(self) -> crate::model::DomainSummary {
crate::model::DomainSummary {
domain_name: self.domain_name,
display_name: self.display_name,
created_time: self.created_time,
domain_status: self.domain_status,
}
}
}
}
impl DomainSummary {
pub fn builder() -> crate::model::domain_summary::Builder {
crate::model::domain_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 DomainStatus {
#[allow(missing_docs)] Active,
#[allow(missing_docs)] Associating,
#[allow(missing_docs)] Disassociated,
#[allow(missing_docs)] Disassociating,
#[allow(missing_docs)] FailedToAssociate,
#[allow(missing_docs)] FailedToDisassociate,
#[allow(missing_docs)] Inactive,
#[allow(missing_docs)] PendingValidation,
Unknown(String),
}
impl std::convert::From<&str> for DomainStatus {
fn from(s: &str) -> Self {
match s {
"ACTIVE" => DomainStatus::Active,
"ASSOCIATING" => DomainStatus::Associating,
"DISASSOCIATED" => DomainStatus::Disassociated,
"DISASSOCIATING" => DomainStatus::Disassociating,
"FAILED_TO_ASSOCIATE" => DomainStatus::FailedToAssociate,
"FAILED_TO_DISASSOCIATE" => DomainStatus::FailedToDisassociate,
"INACTIVE" => DomainStatus::Inactive,
"PENDING_VALIDATION" => DomainStatus::PendingValidation,
other => DomainStatus::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for DomainStatus {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(DomainStatus::from(s))
}
}
impl DomainStatus {
pub fn as_str(&self) -> &str {
match self {
DomainStatus::Active => "ACTIVE",
DomainStatus::Associating => "ASSOCIATING",
DomainStatus::Disassociated => "DISASSOCIATED",
DomainStatus::Disassociating => "DISASSOCIATING",
DomainStatus::FailedToAssociate => "FAILED_TO_ASSOCIATE",
DomainStatus::FailedToDisassociate => "FAILED_TO_DISASSOCIATE",
DomainStatus::Inactive => "INACTIVE",
DomainStatus::PendingValidation => "PENDING_VALIDATION",
DomainStatus::Unknown(s) => s.as_ref(),
}
}
pub fn values() -> &'static [&'static str] {
&[
"ACTIVE",
"ASSOCIATING",
"DISASSOCIATED",
"DISASSOCIATING",
"FAILED_TO_ASSOCIATE",
"FAILED_TO_DISASSOCIATE",
"INACTIVE",
"PENDING_VALIDATION",
]
}
}
impl AsRef<str> for DomainStatus {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DeviceSummary {
pub device_id: std::option::Option<std::string::String>,
pub device_status: std::option::Option<crate::model::DeviceStatus>,
}
impl std::fmt::Debug for DeviceSummary {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DeviceSummary");
formatter.field("device_id", &self.device_id);
formatter.field("device_status", &self.device_status);
formatter.finish()
}
}
pub mod device_summary {
#[non_exhaustive]
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) device_id: std::option::Option<std::string::String>,
pub(crate) device_status: std::option::Option<crate::model::DeviceStatus>,
}
impl Builder {
pub fn device_id(mut self, input: impl Into<std::string::String>) -> Self {
self.device_id = Some(input.into());
self
}
pub fn set_device_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.device_id = input;
self
}
pub fn device_status(mut self, input: crate::model::DeviceStatus) -> Self {
self.device_status = Some(input);
self
}
pub fn set_device_status(
mut self,
input: std::option::Option<crate::model::DeviceStatus>,
) -> Self {
self.device_status = input;
self
}
pub fn build(self) -> crate::model::DeviceSummary {
crate::model::DeviceSummary {
device_id: self.device_id,
device_status: self.device_status,
}
}
}
}
impl DeviceSummary {
pub fn builder() -> crate::model::device_summary::Builder {
crate::model::device_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 DeviceStatus {
#[allow(missing_docs)] Active,
#[allow(missing_docs)] SignedOut,
Unknown(String),
}
impl std::convert::From<&str> for DeviceStatus {
fn from(s: &str) -> Self {
match s {
"ACTIVE" => DeviceStatus::Active,
"SIGNED_OUT" => DeviceStatus::SignedOut,
other => DeviceStatus::Unknown(other.to_owned()),
}
}
}
impl std::str::FromStr for DeviceStatus {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(DeviceStatus::from(s))
}
}
impl DeviceStatus {
pub fn as_str(&self) -> &str {
match self {
DeviceStatus::Active => "ACTIVE",
DeviceStatus::SignedOut => "SIGNED_OUT",
DeviceStatus::Unknown(s) => s.as_ref(),
}
}
pub fn values() -> &'static [&'static str] {
&["ACTIVE", "SIGNED_OUT"]
}
}
impl AsRef<str> for DeviceStatus {
fn as_ref(&self) -> &str {
self.as_str()
}
}