#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct BookingOptions {
#[doc(hidden)]
pub auto_accept_requests: bool,
#[doc(hidden)]
pub auto_decline_recurring_requests: bool,
#[doc(hidden)]
pub auto_decline_conflicting_requests: bool,
}
impl BookingOptions {
pub fn auto_accept_requests(&self) -> bool {
self.auto_accept_requests
}
pub fn auto_decline_recurring_requests(&self) -> bool {
self.auto_decline_recurring_requests
}
pub fn auto_decline_conflicting_requests(&self) -> bool {
self.auto_decline_conflicting_requests
}
}
pub mod booking_options {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) auto_accept_requests: std::option::Option<bool>,
pub(crate) auto_decline_recurring_requests: std::option::Option<bool>,
pub(crate) auto_decline_conflicting_requests: std::option::Option<bool>,
}
impl Builder {
pub fn auto_accept_requests(mut self, input: bool) -> Self {
self.auto_accept_requests = Some(input);
self
}
pub fn set_auto_accept_requests(mut self, input: std::option::Option<bool>) -> Self {
self.auto_accept_requests = input;
self
}
pub fn auto_decline_recurring_requests(mut self, input: bool) -> Self {
self.auto_decline_recurring_requests = Some(input);
self
}
pub fn set_auto_decline_recurring_requests(
mut self,
input: std::option::Option<bool>,
) -> Self {
self.auto_decline_recurring_requests = input;
self
}
pub fn auto_decline_conflicting_requests(mut self, input: bool) -> Self {
self.auto_decline_conflicting_requests = Some(input);
self
}
pub fn set_auto_decline_conflicting_requests(
mut self,
input: std::option::Option<bool>,
) -> Self {
self.auto_decline_conflicting_requests = input;
self
}
pub fn build(self) -> crate::model::BookingOptions {
crate::model::BookingOptions {
auto_accept_requests: self.auto_accept_requests.unwrap_or_default(),
auto_decline_recurring_requests: self
.auto_decline_recurring_requests
.unwrap_or_default(),
auto_decline_conflicting_requests: self
.auto_decline_conflicting_requests
.unwrap_or_default(),
}
}
}
}
impl BookingOptions {
pub fn builder() -> crate::model::booking_options::Builder {
crate::model::booking_options::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 MobileDeviceAccessRuleEffect {
#[allow(missing_docs)] Allow,
#[allow(missing_docs)] Deny,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for MobileDeviceAccessRuleEffect {
fn from(s: &str) -> Self {
match s {
"ALLOW" => MobileDeviceAccessRuleEffect::Allow,
"DENY" => MobileDeviceAccessRuleEffect::Deny,
other => MobileDeviceAccessRuleEffect::Unknown(crate::types::UnknownVariantValue(
other.to_owned(),
)),
}
}
}
impl std::str::FromStr for MobileDeviceAccessRuleEffect {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(MobileDeviceAccessRuleEffect::from(s))
}
}
impl MobileDeviceAccessRuleEffect {
pub fn as_str(&self) -> &str {
match self {
MobileDeviceAccessRuleEffect::Allow => "ALLOW",
MobileDeviceAccessRuleEffect::Deny => "DENY",
MobileDeviceAccessRuleEffect::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["ALLOW", "DENY"]
}
}
impl AsRef<str> for MobileDeviceAccessRuleEffect {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ImpersonationRule {
#[doc(hidden)]
pub impersonation_rule_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub description: std::option::Option<std::string::String>,
#[doc(hidden)]
pub effect: std::option::Option<crate::model::AccessEffect>,
#[doc(hidden)]
pub target_users: std::option::Option<std::vec::Vec<std::string::String>>,
#[doc(hidden)]
pub not_target_users: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl ImpersonationRule {
pub fn impersonation_rule_id(&self) -> std::option::Option<&str> {
self.impersonation_rule_id.as_deref()
}
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
pub fn description(&self) -> std::option::Option<&str> {
self.description.as_deref()
}
pub fn effect(&self) -> std::option::Option<&crate::model::AccessEffect> {
self.effect.as_ref()
}
pub fn target_users(&self) -> std::option::Option<&[std::string::String]> {
self.target_users.as_deref()
}
pub fn not_target_users(&self) -> std::option::Option<&[std::string::String]> {
self.not_target_users.as_deref()
}
}
pub mod impersonation_rule {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) impersonation_rule_id: std::option::Option<std::string::String>,
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) description: std::option::Option<std::string::String>,
pub(crate) effect: std::option::Option<crate::model::AccessEffect>,
pub(crate) target_users: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) not_target_users: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl Builder {
pub fn impersonation_rule_id(mut self, input: impl Into<std::string::String>) -> Self {
self.impersonation_rule_id = Some(input.into());
self
}
pub fn set_impersonation_rule_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.impersonation_rule_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 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 effect(mut self, input: crate::model::AccessEffect) -> Self {
self.effect = Some(input);
self
}
pub fn set_effect(
mut self,
input: std::option::Option<crate::model::AccessEffect>,
) -> Self {
self.effect = input;
self
}
pub fn target_users(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.target_users.unwrap_or_default();
v.push(input.into());
self.target_users = Some(v);
self
}
pub fn set_target_users(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.target_users = input;
self
}
pub fn not_target_users(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.not_target_users.unwrap_or_default();
v.push(input.into());
self.not_target_users = Some(v);
self
}
pub fn set_not_target_users(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.not_target_users = input;
self
}
pub fn build(self) -> crate::model::ImpersonationRule {
crate::model::ImpersonationRule {
impersonation_rule_id: self.impersonation_rule_id,
name: self.name,
description: self.description,
effect: self.effect,
target_users: self.target_users,
not_target_users: self.not_target_users,
}
}
}
}
impl ImpersonationRule {
pub fn builder() -> crate::model::impersonation_rule::Builder {
crate::model::impersonation_rule::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 AccessEffect {
#[allow(missing_docs)] Allow,
#[allow(missing_docs)] Deny,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for AccessEffect {
fn from(s: &str) -> Self {
match s {
"ALLOW" => AccessEffect::Allow,
"DENY" => AccessEffect::Deny,
other => AccessEffect::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for AccessEffect {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(AccessEffect::from(s))
}
}
impl AccessEffect {
pub fn as_str(&self) -> &str {
match self {
AccessEffect::Allow => "ALLOW",
AccessEffect::Deny => "DENY",
AccessEffect::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["ALLOW", "DENY"]
}
}
impl AsRef<str> for AccessEffect {
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 ImpersonationRoleType {
#[allow(missing_docs)] FullAccess,
#[allow(missing_docs)] ReadOnly,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for ImpersonationRoleType {
fn from(s: &str) -> Self {
match s {
"FULL_ACCESS" => ImpersonationRoleType::FullAccess,
"READ_ONLY" => ImpersonationRoleType::ReadOnly,
other => {
ImpersonationRoleType::Unknown(crate::types::UnknownVariantValue(other.to_owned()))
}
}
}
}
impl std::str::FromStr for ImpersonationRoleType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(ImpersonationRoleType::from(s))
}
}
impl ImpersonationRoleType {
pub fn as_str(&self) -> &str {
match self {
ImpersonationRoleType::FullAccess => "FULL_ACCESS",
ImpersonationRoleType::ReadOnly => "READ_ONLY",
ImpersonationRoleType::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["FULL_ACCESS", "READ_ONLY"]
}
}
impl AsRef<str> for ImpersonationRoleType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct LambdaAvailabilityProvider {
#[doc(hidden)]
pub lambda_arn: std::option::Option<std::string::String>,
}
impl LambdaAvailabilityProvider {
pub fn lambda_arn(&self) -> std::option::Option<&str> {
self.lambda_arn.as_deref()
}
}
pub mod lambda_availability_provider {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) lambda_arn: std::option::Option<std::string::String>,
}
impl Builder {
pub fn lambda_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.lambda_arn = Some(input.into());
self
}
pub fn set_lambda_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.lambda_arn = input;
self
}
pub fn build(self) -> crate::model::LambdaAvailabilityProvider {
crate::model::LambdaAvailabilityProvider {
lambda_arn: self.lambda_arn,
}
}
}
}
impl LambdaAvailabilityProvider {
pub fn builder() -> crate::model::lambda_availability_provider::Builder {
crate::model::lambda_availability_provider::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct EwsAvailabilityProvider {
#[doc(hidden)]
pub ews_endpoint: std::option::Option<std::string::String>,
#[doc(hidden)]
pub ews_username: std::option::Option<std::string::String>,
#[doc(hidden)]
pub ews_password: std::option::Option<std::string::String>,
}
impl EwsAvailabilityProvider {
pub fn ews_endpoint(&self) -> std::option::Option<&str> {
self.ews_endpoint.as_deref()
}
pub fn ews_username(&self) -> std::option::Option<&str> {
self.ews_username.as_deref()
}
pub fn ews_password(&self) -> std::option::Option<&str> {
self.ews_password.as_deref()
}
}
impl std::fmt::Debug for EwsAvailabilityProvider {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("EwsAvailabilityProvider");
formatter.field("ews_endpoint", &self.ews_endpoint);
formatter.field("ews_username", &self.ews_username);
formatter.field("ews_password", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
pub mod ews_availability_provider {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default)]
pub struct Builder {
pub(crate) ews_endpoint: std::option::Option<std::string::String>,
pub(crate) ews_username: std::option::Option<std::string::String>,
pub(crate) ews_password: std::option::Option<std::string::String>,
}
impl Builder {
pub fn ews_endpoint(mut self, input: impl Into<std::string::String>) -> Self {
self.ews_endpoint = Some(input.into());
self
}
pub fn set_ews_endpoint(mut self, input: std::option::Option<std::string::String>) -> Self {
self.ews_endpoint = input;
self
}
pub fn ews_username(mut self, input: impl Into<std::string::String>) -> Self {
self.ews_username = Some(input.into());
self
}
pub fn set_ews_username(mut self, input: std::option::Option<std::string::String>) -> Self {
self.ews_username = input;
self
}
pub fn ews_password(mut self, input: impl Into<std::string::String>) -> Self {
self.ews_password = Some(input.into());
self
}
pub fn set_ews_password(mut self, input: std::option::Option<std::string::String>) -> Self {
self.ews_password = input;
self
}
pub fn build(self) -> crate::model::EwsAvailabilityProvider {
crate::model::EwsAvailabilityProvider {
ews_endpoint: self.ews_endpoint,
ews_username: self.ews_username,
ews_password: self.ews_password,
}
}
}
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("ews_endpoint", &self.ews_endpoint);
formatter.field("ews_username", &self.ews_username);
formatter.field("ews_password", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
}
impl EwsAvailabilityProvider {
pub fn builder() -> crate::model::ews_availability_provider::Builder {
crate::model::ews_availability_provider::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Tag {
#[doc(hidden)]
pub key: std::option::Option<std::string::String>,
#[doc(hidden)]
pub value: std::option::Option<std::string::String>,
}
impl Tag {
pub fn key(&self) -> std::option::Option<&str> {
self.key.as_deref()
}
pub fn value(&self) -> std::option::Option<&str> {
self.value.as_deref()
}
}
pub mod tag {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) key: std::option::Option<std::string::String>,
pub(crate) value: std::option::Option<std::string::String>,
}
impl Builder {
pub fn key(mut self, input: impl Into<std::string::String>) -> Self {
self.key = Some(input.into());
self
}
pub fn set_key(mut self, input: std::option::Option<std::string::String>) -> Self {
self.key = input;
self
}
pub fn value(mut self, input: impl Into<std::string::String>) -> Self {
self.value = Some(input.into());
self
}
pub fn set_value(mut self, input: std::option::Option<std::string::String>) -> Self {
self.value = input;
self
}
pub fn build(self) -> crate::model::Tag {
crate::model::Tag {
key: self.key,
value: self.value,
}
}
}
}
impl Tag {
pub fn builder() -> crate::model::tag::Builder {
crate::model::tag::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct FolderConfiguration {
#[doc(hidden)]
pub name: std::option::Option<crate::model::FolderName>,
#[doc(hidden)]
pub action: std::option::Option<crate::model::RetentionAction>,
#[doc(hidden)]
pub period: std::option::Option<i32>,
}
impl FolderConfiguration {
pub fn name(&self) -> std::option::Option<&crate::model::FolderName> {
self.name.as_ref()
}
pub fn action(&self) -> std::option::Option<&crate::model::RetentionAction> {
self.action.as_ref()
}
pub fn period(&self) -> std::option::Option<i32> {
self.period
}
}
pub mod folder_configuration {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) name: std::option::Option<crate::model::FolderName>,
pub(crate) action: std::option::Option<crate::model::RetentionAction>,
pub(crate) period: std::option::Option<i32>,
}
impl Builder {
pub fn name(mut self, input: crate::model::FolderName) -> Self {
self.name = Some(input);
self
}
pub fn set_name(mut self, input: std::option::Option<crate::model::FolderName>) -> Self {
self.name = input;
self
}
pub fn action(mut self, input: crate::model::RetentionAction) -> Self {
self.action = Some(input);
self
}
pub fn set_action(
mut self,
input: std::option::Option<crate::model::RetentionAction>,
) -> Self {
self.action = input;
self
}
pub fn period(mut self, input: i32) -> Self {
self.period = Some(input);
self
}
pub fn set_period(mut self, input: std::option::Option<i32>) -> Self {
self.period = input;
self
}
pub fn build(self) -> crate::model::FolderConfiguration {
crate::model::FolderConfiguration {
name: self.name,
action: self.action,
period: self.period,
}
}
}
}
impl FolderConfiguration {
pub fn builder() -> crate::model::folder_configuration::Builder {
crate::model::folder_configuration::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 RetentionAction {
#[allow(missing_docs)] Delete,
#[allow(missing_docs)] None,
#[allow(missing_docs)] PermanentlyDelete,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for RetentionAction {
fn from(s: &str) -> Self {
match s {
"DELETE" => RetentionAction::Delete,
"NONE" => RetentionAction::None,
"PERMANENTLY_DELETE" => RetentionAction::PermanentlyDelete,
other => RetentionAction::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for RetentionAction {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(RetentionAction::from(s))
}
}
impl RetentionAction {
pub fn as_str(&self) -> &str {
match self {
RetentionAction::Delete => "DELETE",
RetentionAction::None => "NONE",
RetentionAction::PermanentlyDelete => "PERMANENTLY_DELETE",
RetentionAction::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["DELETE", "NONE", "PERMANENTLY_DELETE"]
}
}
impl AsRef<str> for RetentionAction {
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 FolderName {
#[allow(missing_docs)] DeletedItems,
#[allow(missing_docs)] Drafts,
#[allow(missing_docs)] Inbox,
#[allow(missing_docs)] JunkEmail,
#[allow(missing_docs)] SentItems,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for FolderName {
fn from(s: &str) -> Self {
match s {
"DELETED_ITEMS" => FolderName::DeletedItems,
"DRAFTS" => FolderName::Drafts,
"INBOX" => FolderName::Inbox,
"JUNK_EMAIL" => FolderName::JunkEmail,
"SENT_ITEMS" => FolderName::SentItems,
other => FolderName::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for FolderName {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(FolderName::from(s))
}
}
impl FolderName {
pub fn as_str(&self) -> &str {
match self {
FolderName::DeletedItems => "DELETED_ITEMS",
FolderName::Drafts => "DRAFTS",
FolderName::Inbox => "INBOX",
FolderName::JunkEmail => "JUNK_EMAIL",
FolderName::SentItems => "SENT_ITEMS",
FolderName::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&[
"DELETED_ITEMS",
"DRAFTS",
"INBOX",
"JUNK_EMAIL",
"SENT_ITEMS",
]
}
}
impl AsRef<str> for FolderName {
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 PermissionType {
#[allow(missing_docs)] FullAccess,
#[allow(missing_docs)] SendAs,
#[allow(missing_docs)] SendOnBehalf,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for PermissionType {
fn from(s: &str) -> Self {
match s {
"FULL_ACCESS" => PermissionType::FullAccess,
"SEND_AS" => PermissionType::SendAs,
"SEND_ON_BEHALF" => PermissionType::SendOnBehalf,
other => PermissionType::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for PermissionType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(PermissionType::from(s))
}
}
impl PermissionType {
pub fn as_str(&self) -> &str {
match self {
PermissionType::FullAccess => "FULL_ACCESS",
PermissionType::SendAs => "SEND_AS",
PermissionType::SendOnBehalf => "SEND_ON_BEHALF",
PermissionType::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["FULL_ACCESS", "SEND_AS", "SEND_ON_BEHALF"]
}
}
impl AsRef<str> for PermissionType {
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 AccessControlRuleEffect {
#[allow(missing_docs)] Allow,
#[allow(missing_docs)] Deny,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for AccessControlRuleEffect {
fn from(s: &str) -> Self {
match s {
"ALLOW" => AccessControlRuleEffect::Allow,
"DENY" => AccessControlRuleEffect::Deny,
other => AccessControlRuleEffect::Unknown(crate::types::UnknownVariantValue(
other.to_owned(),
)),
}
}
}
impl std::str::FromStr for AccessControlRuleEffect {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(AccessControlRuleEffect::from(s))
}
}
impl AccessControlRuleEffect {
pub fn as_str(&self) -> &str {
match self {
AccessControlRuleEffect::Allow => "ALLOW",
AccessControlRuleEffect::Deny => "DENY",
AccessControlRuleEffect::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["ALLOW", "DENY"]
}
}
impl AsRef<str> for AccessControlRuleEffect {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct User {
#[doc(hidden)]
pub id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub email: std::option::Option<std::string::String>,
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub display_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub state: std::option::Option<crate::model::EntityState>,
#[doc(hidden)]
pub user_role: std::option::Option<crate::model::UserRole>,
#[doc(hidden)]
pub enabled_date: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub disabled_date: std::option::Option<aws_smithy_types::DateTime>,
}
impl User {
pub fn id(&self) -> std::option::Option<&str> {
self.id.as_deref()
}
pub fn email(&self) -> std::option::Option<&str> {
self.email.as_deref()
}
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
pub fn display_name(&self) -> std::option::Option<&str> {
self.display_name.as_deref()
}
pub fn state(&self) -> std::option::Option<&crate::model::EntityState> {
self.state.as_ref()
}
pub fn user_role(&self) -> std::option::Option<&crate::model::UserRole> {
self.user_role.as_ref()
}
pub fn enabled_date(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.enabled_date.as_ref()
}
pub fn disabled_date(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.disabled_date.as_ref()
}
}
pub mod user {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) id: std::option::Option<std::string::String>,
pub(crate) email: std::option::Option<std::string::String>,
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) display_name: std::option::Option<std::string::String>,
pub(crate) state: std::option::Option<crate::model::EntityState>,
pub(crate) user_role: std::option::Option<crate::model::UserRole>,
pub(crate) enabled_date: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) disabled_date: std::option::Option<aws_smithy_types::DateTime>,
}
impl Builder {
pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
self.id = Some(input.into());
self
}
pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.id = input;
self
}
pub fn email(mut self, input: impl Into<std::string::String>) -> Self {
self.email = Some(input.into());
self
}
pub fn set_email(mut self, input: std::option::Option<std::string::String>) -> Self {
self.email = 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 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 state(mut self, input: crate::model::EntityState) -> Self {
self.state = Some(input);
self
}
pub fn set_state(mut self, input: std::option::Option<crate::model::EntityState>) -> Self {
self.state = input;
self
}
pub fn user_role(mut self, input: crate::model::UserRole) -> Self {
self.user_role = Some(input);
self
}
pub fn set_user_role(mut self, input: std::option::Option<crate::model::UserRole>) -> Self {
self.user_role = input;
self
}
pub fn enabled_date(mut self, input: aws_smithy_types::DateTime) -> Self {
self.enabled_date = Some(input);
self
}
pub fn set_enabled_date(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.enabled_date = input;
self
}
pub fn disabled_date(mut self, input: aws_smithy_types::DateTime) -> Self {
self.disabled_date = Some(input);
self
}
pub fn set_disabled_date(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.disabled_date = input;
self
}
pub fn build(self) -> crate::model::User {
crate::model::User {
id: self.id,
email: self.email,
name: self.name,
display_name: self.display_name,
state: self.state,
user_role: self.user_role,
enabled_date: self.enabled_date,
disabled_date: self.disabled_date,
}
}
}
}
impl User {
pub fn builder() -> crate::model::user::Builder {
crate::model::user::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 UserRole {
#[allow(missing_docs)] Resource,
#[allow(missing_docs)] SystemUser,
#[allow(missing_docs)] User,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for UserRole {
fn from(s: &str) -> Self {
match s {
"RESOURCE" => UserRole::Resource,
"SYSTEM_USER" => UserRole::SystemUser,
"USER" => UserRole::User,
other => UserRole::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for UserRole {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(UserRole::from(s))
}
}
impl UserRole {
pub fn as_str(&self) -> &str {
match self {
UserRole::Resource => "RESOURCE",
UserRole::SystemUser => "SYSTEM_USER",
UserRole::User => "USER",
UserRole::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["RESOURCE", "SYSTEM_USER", "USER"]
}
}
impl AsRef<str> for UserRole {
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 EntityState {
#[allow(missing_docs)] Deleted,
#[allow(missing_docs)] Disabled,
#[allow(missing_docs)] Enabled,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for EntityState {
fn from(s: &str) -> Self {
match s {
"DELETED" => EntityState::Deleted,
"DISABLED" => EntityState::Disabled,
"ENABLED" => EntityState::Enabled,
other => EntityState::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for EntityState {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(EntityState::from(s))
}
}
impl EntityState {
pub fn as_str(&self) -> &str {
match self {
EntityState::Deleted => "DELETED",
EntityState::Disabled => "DISABLED",
EntityState::Enabled => "ENABLED",
EntityState::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["DELETED", "DISABLED", "ENABLED"]
}
}
impl AsRef<str> for EntityState {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Resource {
#[doc(hidden)]
pub id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub email: std::option::Option<std::string::String>,
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub r#type: std::option::Option<crate::model::ResourceType>,
#[doc(hidden)]
pub state: std::option::Option<crate::model::EntityState>,
#[doc(hidden)]
pub enabled_date: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub disabled_date: std::option::Option<aws_smithy_types::DateTime>,
}
impl Resource {
pub fn id(&self) -> std::option::Option<&str> {
self.id.as_deref()
}
pub fn email(&self) -> std::option::Option<&str> {
self.email.as_deref()
}
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
pub fn r#type(&self) -> std::option::Option<&crate::model::ResourceType> {
self.r#type.as_ref()
}
pub fn state(&self) -> std::option::Option<&crate::model::EntityState> {
self.state.as_ref()
}
pub fn enabled_date(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.enabled_date.as_ref()
}
pub fn disabled_date(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.disabled_date.as_ref()
}
}
pub mod resource {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) id: std::option::Option<std::string::String>,
pub(crate) email: std::option::Option<std::string::String>,
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) r#type: std::option::Option<crate::model::ResourceType>,
pub(crate) state: std::option::Option<crate::model::EntityState>,
pub(crate) enabled_date: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) disabled_date: std::option::Option<aws_smithy_types::DateTime>,
}
impl Builder {
pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
self.id = Some(input.into());
self
}
pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.id = input;
self
}
pub fn email(mut self, input: impl Into<std::string::String>) -> Self {
self.email = Some(input.into());
self
}
pub fn set_email(mut self, input: std::option::Option<std::string::String>) -> Self {
self.email = 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 r#type(mut self, input: crate::model::ResourceType) -> Self {
self.r#type = Some(input);
self
}
pub fn set_type(mut self, input: std::option::Option<crate::model::ResourceType>) -> Self {
self.r#type = input;
self
}
pub fn state(mut self, input: crate::model::EntityState) -> Self {
self.state = Some(input);
self
}
pub fn set_state(mut self, input: std::option::Option<crate::model::EntityState>) -> Self {
self.state = input;
self
}
pub fn enabled_date(mut self, input: aws_smithy_types::DateTime) -> Self {
self.enabled_date = Some(input);
self
}
pub fn set_enabled_date(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.enabled_date = input;
self
}
pub fn disabled_date(mut self, input: aws_smithy_types::DateTime) -> Self {
self.disabled_date = Some(input);
self
}
pub fn set_disabled_date(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.disabled_date = input;
self
}
pub fn build(self) -> crate::model::Resource {
crate::model::Resource {
id: self.id,
email: self.email,
name: self.name,
r#type: self.r#type,
state: self.state,
enabled_date: self.enabled_date,
disabled_date: self.disabled_date,
}
}
}
}
impl Resource {
pub fn builder() -> crate::model::resource::Builder {
crate::model::resource::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 ResourceType {
#[allow(missing_docs)] Equipment,
#[allow(missing_docs)] Room,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for ResourceType {
fn from(s: &str) -> Self {
match s {
"EQUIPMENT" => ResourceType::Equipment,
"ROOM" => ResourceType::Room,
other => ResourceType::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for ResourceType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(ResourceType::from(s))
}
}
impl ResourceType {
pub fn as_str(&self) -> &str {
match self {
ResourceType::Equipment => "EQUIPMENT",
ResourceType::Room => "ROOM",
ResourceType::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["EQUIPMENT", "ROOM"]
}
}
impl AsRef<str> for ResourceType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Delegate {
#[doc(hidden)]
pub id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub r#type: std::option::Option<crate::model::MemberType>,
}
impl Delegate {
pub fn id(&self) -> std::option::Option<&str> {
self.id.as_deref()
}
pub fn r#type(&self) -> std::option::Option<&crate::model::MemberType> {
self.r#type.as_ref()
}
}
pub mod delegate {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) id: std::option::Option<std::string::String>,
pub(crate) r#type: std::option::Option<crate::model::MemberType>,
}
impl Builder {
pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
self.id = Some(input.into());
self
}
pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.id = input;
self
}
pub fn r#type(mut self, input: crate::model::MemberType) -> Self {
self.r#type = Some(input);
self
}
pub fn set_type(mut self, input: std::option::Option<crate::model::MemberType>) -> Self {
self.r#type = input;
self
}
pub fn build(self) -> crate::model::Delegate {
crate::model::Delegate {
id: self.id,
r#type: self.r#type,
}
}
}
}
impl Delegate {
pub fn builder() -> crate::model::delegate::Builder {
crate::model::delegate::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 MemberType {
#[allow(missing_docs)] Group,
#[allow(missing_docs)] User,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for MemberType {
fn from(s: &str) -> Self {
match s {
"GROUP" => MemberType::Group,
"USER" => MemberType::User,
other => MemberType::Unknown(crate::types::UnknownVariantValue(other.to_owned())),
}
}
}
impl std::str::FromStr for MemberType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(MemberType::from(s))
}
}
impl MemberType {
pub fn as_str(&self) -> &str {
match self {
MemberType::Group => "GROUP",
MemberType::User => "USER",
MemberType::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["GROUP", "USER"]
}
}
impl AsRef<str> for MemberType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct OrganizationSummary {
#[doc(hidden)]
pub organization_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub alias: std::option::Option<std::string::String>,
#[doc(hidden)]
pub default_mail_domain: std::option::Option<std::string::String>,
#[doc(hidden)]
pub error_message: std::option::Option<std::string::String>,
#[doc(hidden)]
pub state: std::option::Option<std::string::String>,
}
impl OrganizationSummary {
pub fn organization_id(&self) -> std::option::Option<&str> {
self.organization_id.as_deref()
}
pub fn alias(&self) -> std::option::Option<&str> {
self.alias.as_deref()
}
pub fn default_mail_domain(&self) -> std::option::Option<&str> {
self.default_mail_domain.as_deref()
}
pub fn error_message(&self) -> std::option::Option<&str> {
self.error_message.as_deref()
}
pub fn state(&self) -> std::option::Option<&str> {
self.state.as_deref()
}
}
pub mod organization_summary {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) organization_id: std::option::Option<std::string::String>,
pub(crate) alias: std::option::Option<std::string::String>,
pub(crate) default_mail_domain: std::option::Option<std::string::String>,
pub(crate) error_message: std::option::Option<std::string::String>,
pub(crate) state: std::option::Option<std::string::String>,
}
impl Builder {
pub fn organization_id(mut self, input: impl Into<std::string::String>) -> Self {
self.organization_id = Some(input.into());
self
}
pub fn set_organization_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.organization_id = input;
self
}
pub fn alias(mut self, input: impl Into<std::string::String>) -> Self {
self.alias = Some(input.into());
self
}
pub fn set_alias(mut self, input: std::option::Option<std::string::String>) -> Self {
self.alias = input;
self
}
pub fn default_mail_domain(mut self, input: impl Into<std::string::String>) -> Self {
self.default_mail_domain = Some(input.into());
self
}
pub fn set_default_mail_domain(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.default_mail_domain = input;
self
}
pub fn error_message(mut self, input: impl Into<std::string::String>) -> Self {
self.error_message = Some(input.into());
self
}
pub fn set_error_message(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.error_message = input;
self
}
pub fn state(mut self, input: impl Into<std::string::String>) -> Self {
self.state = Some(input.into());
self
}
pub fn set_state(mut self, input: std::option::Option<std::string::String>) -> Self {
self.state = input;
self
}
pub fn build(self) -> crate::model::OrganizationSummary {
crate::model::OrganizationSummary {
organization_id: self.organization_id,
alias: self.alias,
default_mail_domain: self.default_mail_domain,
error_message: self.error_message,
state: self.state,
}
}
}
}
impl OrganizationSummary {
pub fn builder() -> crate::model::organization_summary::Builder {
crate::model::organization_summary::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct MobileDeviceAccessRule {
#[doc(hidden)]
pub mobile_device_access_rule_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub description: std::option::Option<std::string::String>,
#[doc(hidden)]
pub effect: std::option::Option<crate::model::MobileDeviceAccessRuleEffect>,
#[doc(hidden)]
pub device_types: std::option::Option<std::vec::Vec<std::string::String>>,
#[doc(hidden)]
pub not_device_types: std::option::Option<std::vec::Vec<std::string::String>>,
#[doc(hidden)]
pub device_models: std::option::Option<std::vec::Vec<std::string::String>>,
#[doc(hidden)]
pub not_device_models: std::option::Option<std::vec::Vec<std::string::String>>,
#[doc(hidden)]
pub device_operating_systems: std::option::Option<std::vec::Vec<std::string::String>>,
#[doc(hidden)]
pub not_device_operating_systems: std::option::Option<std::vec::Vec<std::string::String>>,
#[doc(hidden)]
pub device_user_agents: std::option::Option<std::vec::Vec<std::string::String>>,
#[doc(hidden)]
pub not_device_user_agents: std::option::Option<std::vec::Vec<std::string::String>>,
#[doc(hidden)]
pub date_created: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub date_modified: std::option::Option<aws_smithy_types::DateTime>,
}
impl MobileDeviceAccessRule {
pub fn mobile_device_access_rule_id(&self) -> std::option::Option<&str> {
self.mobile_device_access_rule_id.as_deref()
}
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
pub fn description(&self) -> std::option::Option<&str> {
self.description.as_deref()
}
pub fn effect(&self) -> std::option::Option<&crate::model::MobileDeviceAccessRuleEffect> {
self.effect.as_ref()
}
pub fn device_types(&self) -> std::option::Option<&[std::string::String]> {
self.device_types.as_deref()
}
pub fn not_device_types(&self) -> std::option::Option<&[std::string::String]> {
self.not_device_types.as_deref()
}
pub fn device_models(&self) -> std::option::Option<&[std::string::String]> {
self.device_models.as_deref()
}
pub fn not_device_models(&self) -> std::option::Option<&[std::string::String]> {
self.not_device_models.as_deref()
}
pub fn device_operating_systems(&self) -> std::option::Option<&[std::string::String]> {
self.device_operating_systems.as_deref()
}
pub fn not_device_operating_systems(&self) -> std::option::Option<&[std::string::String]> {
self.not_device_operating_systems.as_deref()
}
pub fn device_user_agents(&self) -> std::option::Option<&[std::string::String]> {
self.device_user_agents.as_deref()
}
pub fn not_device_user_agents(&self) -> std::option::Option<&[std::string::String]> {
self.not_device_user_agents.as_deref()
}
pub fn date_created(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.date_created.as_ref()
}
pub fn date_modified(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.date_modified.as_ref()
}
}
pub mod mobile_device_access_rule {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) mobile_device_access_rule_id: std::option::Option<std::string::String>,
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) description: std::option::Option<std::string::String>,
pub(crate) effect: std::option::Option<crate::model::MobileDeviceAccessRuleEffect>,
pub(crate) device_types: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) not_device_types: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) device_models: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) not_device_models: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) device_operating_systems:
std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) not_device_operating_systems:
std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) device_user_agents: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) not_device_user_agents: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) date_created: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) date_modified: std::option::Option<aws_smithy_types::DateTime>,
}
impl Builder {
pub fn mobile_device_access_rule_id(
mut self,
input: impl Into<std::string::String>,
) -> Self {
self.mobile_device_access_rule_id = Some(input.into());
self
}
pub fn set_mobile_device_access_rule_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.mobile_device_access_rule_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 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 effect(mut self, input: crate::model::MobileDeviceAccessRuleEffect) -> Self {
self.effect = Some(input);
self
}
pub fn set_effect(
mut self,
input: std::option::Option<crate::model::MobileDeviceAccessRuleEffect>,
) -> Self {
self.effect = input;
self
}
pub fn device_types(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.device_types.unwrap_or_default();
v.push(input.into());
self.device_types = Some(v);
self
}
pub fn set_device_types(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.device_types = input;
self
}
pub fn not_device_types(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.not_device_types.unwrap_or_default();
v.push(input.into());
self.not_device_types = Some(v);
self
}
pub fn set_not_device_types(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.not_device_types = input;
self
}
pub fn device_models(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.device_models.unwrap_or_default();
v.push(input.into());
self.device_models = Some(v);
self
}
pub fn set_device_models(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.device_models = input;
self
}
pub fn not_device_models(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.not_device_models.unwrap_or_default();
v.push(input.into());
self.not_device_models = Some(v);
self
}
pub fn set_not_device_models(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.not_device_models = input;
self
}
pub fn device_operating_systems(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.device_operating_systems.unwrap_or_default();
v.push(input.into());
self.device_operating_systems = Some(v);
self
}
pub fn set_device_operating_systems(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.device_operating_systems = input;
self
}
pub fn not_device_operating_systems(
mut self,
input: impl Into<std::string::String>,
) -> Self {
let mut v = self.not_device_operating_systems.unwrap_or_default();
v.push(input.into());
self.not_device_operating_systems = Some(v);
self
}
pub fn set_not_device_operating_systems(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.not_device_operating_systems = input;
self
}
pub fn device_user_agents(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.device_user_agents.unwrap_or_default();
v.push(input.into());
self.device_user_agents = Some(v);
self
}
pub fn set_device_user_agents(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.device_user_agents = input;
self
}
pub fn not_device_user_agents(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.not_device_user_agents.unwrap_or_default();
v.push(input.into());
self.not_device_user_agents = Some(v);
self
}
pub fn set_not_device_user_agents(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.not_device_user_agents = input;
self
}
pub fn date_created(mut self, input: aws_smithy_types::DateTime) -> Self {
self.date_created = Some(input);
self
}
pub fn set_date_created(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.date_created = input;
self
}
pub fn date_modified(mut self, input: aws_smithy_types::DateTime) -> Self {
self.date_modified = Some(input);
self
}
pub fn set_date_modified(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.date_modified = input;
self
}
pub fn build(self) -> crate::model::MobileDeviceAccessRule {
crate::model::MobileDeviceAccessRule {
mobile_device_access_rule_id: self.mobile_device_access_rule_id,
name: self.name,
description: self.description,
effect: self.effect,
device_types: self.device_types,
not_device_types: self.not_device_types,
device_models: self.device_models,
not_device_models: self.not_device_models,
device_operating_systems: self.device_operating_systems,
not_device_operating_systems: self.not_device_operating_systems,
device_user_agents: self.device_user_agents,
not_device_user_agents: self.not_device_user_agents,
date_created: self.date_created,
date_modified: self.date_modified,
}
}
}
}
impl MobileDeviceAccessRule {
pub fn builder() -> crate::model::mobile_device_access_rule::Builder {
crate::model::mobile_device_access_rule::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct MobileDeviceAccessOverride {
#[doc(hidden)]
pub user_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub device_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub effect: std::option::Option<crate::model::MobileDeviceAccessRuleEffect>,
#[doc(hidden)]
pub description: std::option::Option<std::string::String>,
#[doc(hidden)]
pub date_created: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub date_modified: std::option::Option<aws_smithy_types::DateTime>,
}
impl MobileDeviceAccessOverride {
pub fn user_id(&self) -> std::option::Option<&str> {
self.user_id.as_deref()
}
pub fn device_id(&self) -> std::option::Option<&str> {
self.device_id.as_deref()
}
pub fn effect(&self) -> std::option::Option<&crate::model::MobileDeviceAccessRuleEffect> {
self.effect.as_ref()
}
pub fn description(&self) -> std::option::Option<&str> {
self.description.as_deref()
}
pub fn date_created(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.date_created.as_ref()
}
pub fn date_modified(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.date_modified.as_ref()
}
}
pub mod mobile_device_access_override {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) user_id: std::option::Option<std::string::String>,
pub(crate) device_id: std::option::Option<std::string::String>,
pub(crate) effect: std::option::Option<crate::model::MobileDeviceAccessRuleEffect>,
pub(crate) description: std::option::Option<std::string::String>,
pub(crate) date_created: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) date_modified: std::option::Option<aws_smithy_types::DateTime>,
}
impl Builder {
pub fn user_id(mut self, input: impl Into<std::string::String>) -> Self {
self.user_id = Some(input.into());
self
}
pub fn set_user_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.user_id = input;
self
}
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 effect(mut self, input: crate::model::MobileDeviceAccessRuleEffect) -> Self {
self.effect = Some(input);
self
}
pub fn set_effect(
mut self,
input: std::option::Option<crate::model::MobileDeviceAccessRuleEffect>,
) -> Self {
self.effect = 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 date_created(mut self, input: aws_smithy_types::DateTime) -> Self {
self.date_created = Some(input);
self
}
pub fn set_date_created(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.date_created = input;
self
}
pub fn date_modified(mut self, input: aws_smithy_types::DateTime) -> Self {
self.date_modified = Some(input);
self
}
pub fn set_date_modified(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.date_modified = input;
self
}
pub fn build(self) -> crate::model::MobileDeviceAccessOverride {
crate::model::MobileDeviceAccessOverride {
user_id: self.user_id,
device_id: self.device_id,
effect: self.effect,
description: self.description,
date_created: self.date_created,
date_modified: self.date_modified,
}
}
}
}
impl MobileDeviceAccessOverride {
pub fn builder() -> crate::model::mobile_device_access_override::Builder {
crate::model::mobile_device_access_override::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct MailDomainSummary {
#[doc(hidden)]
pub domain_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub default_domain: bool,
}
impl MailDomainSummary {
pub fn domain_name(&self) -> std::option::Option<&str> {
self.domain_name.as_deref()
}
pub fn default_domain(&self) -> bool {
self.default_domain
}
}
pub mod mail_domain_summary {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) domain_name: std::option::Option<std::string::String>,
pub(crate) default_domain: std::option::Option<bool>,
}
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 default_domain(mut self, input: bool) -> Self {
self.default_domain = Some(input);
self
}
pub fn set_default_domain(mut self, input: std::option::Option<bool>) -> Self {
self.default_domain = input;
self
}
pub fn build(self) -> crate::model::MailDomainSummary {
crate::model::MailDomainSummary {
domain_name: self.domain_name,
default_domain: self.default_domain.unwrap_or_default(),
}
}
}
}
impl MailDomainSummary {
pub fn builder() -> crate::model::mail_domain_summary::Builder {
crate::model::mail_domain_summary::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Permission {
#[doc(hidden)]
pub grantee_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub grantee_type: std::option::Option<crate::model::MemberType>,
#[doc(hidden)]
pub permission_values: std::option::Option<std::vec::Vec<crate::model::PermissionType>>,
}
impl Permission {
pub fn grantee_id(&self) -> std::option::Option<&str> {
self.grantee_id.as_deref()
}
pub fn grantee_type(&self) -> std::option::Option<&crate::model::MemberType> {
self.grantee_type.as_ref()
}
pub fn permission_values(&self) -> std::option::Option<&[crate::model::PermissionType]> {
self.permission_values.as_deref()
}
}
pub mod permission {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) grantee_id: std::option::Option<std::string::String>,
pub(crate) grantee_type: std::option::Option<crate::model::MemberType>,
pub(crate) permission_values:
std::option::Option<std::vec::Vec<crate::model::PermissionType>>,
}
impl Builder {
pub fn grantee_id(mut self, input: impl Into<std::string::String>) -> Self {
self.grantee_id = Some(input.into());
self
}
pub fn set_grantee_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.grantee_id = input;
self
}
pub fn grantee_type(mut self, input: crate::model::MemberType) -> Self {
self.grantee_type = Some(input);
self
}
pub fn set_grantee_type(
mut self,
input: std::option::Option<crate::model::MemberType>,
) -> Self {
self.grantee_type = input;
self
}
pub fn permission_values(mut self, input: crate::model::PermissionType) -> Self {
let mut v = self.permission_values.unwrap_or_default();
v.push(input);
self.permission_values = Some(v);
self
}
pub fn set_permission_values(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::PermissionType>>,
) -> Self {
self.permission_values = input;
self
}
pub fn build(self) -> crate::model::Permission {
crate::model::Permission {
grantee_id: self.grantee_id,
grantee_type: self.grantee_type,
permission_values: self.permission_values,
}
}
}
}
impl Permission {
pub fn builder() -> crate::model::permission::Builder {
crate::model::permission::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct MailboxExportJob {
#[doc(hidden)]
pub job_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub entity_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub description: std::option::Option<std::string::String>,
#[doc(hidden)]
pub s3_bucket_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub s3_path: std::option::Option<std::string::String>,
#[doc(hidden)]
pub estimated_progress: i32,
#[doc(hidden)]
pub state: std::option::Option<crate::model::MailboxExportJobState>,
#[doc(hidden)]
pub start_time: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub end_time: std::option::Option<aws_smithy_types::DateTime>,
}
impl MailboxExportJob {
pub fn job_id(&self) -> std::option::Option<&str> {
self.job_id.as_deref()
}
pub fn entity_id(&self) -> std::option::Option<&str> {
self.entity_id.as_deref()
}
pub fn description(&self) -> std::option::Option<&str> {
self.description.as_deref()
}
pub fn s3_bucket_name(&self) -> std::option::Option<&str> {
self.s3_bucket_name.as_deref()
}
pub fn s3_path(&self) -> std::option::Option<&str> {
self.s3_path.as_deref()
}
pub fn estimated_progress(&self) -> i32 {
self.estimated_progress
}
pub fn state(&self) -> std::option::Option<&crate::model::MailboxExportJobState> {
self.state.as_ref()
}
pub fn start_time(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.start_time.as_ref()
}
pub fn end_time(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.end_time.as_ref()
}
}
pub mod mailbox_export_job {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) job_id: std::option::Option<std::string::String>,
pub(crate) entity_id: std::option::Option<std::string::String>,
pub(crate) description: std::option::Option<std::string::String>,
pub(crate) s3_bucket_name: std::option::Option<std::string::String>,
pub(crate) s3_path: std::option::Option<std::string::String>,
pub(crate) estimated_progress: std::option::Option<i32>,
pub(crate) state: std::option::Option<crate::model::MailboxExportJobState>,
pub(crate) start_time: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) end_time: std::option::Option<aws_smithy_types::DateTime>,
}
impl Builder {
pub fn job_id(mut self, input: impl Into<std::string::String>) -> Self {
self.job_id = Some(input.into());
self
}
pub fn set_job_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.job_id = input;
self
}
pub fn entity_id(mut self, input: impl Into<std::string::String>) -> Self {
self.entity_id = Some(input.into());
self
}
pub fn set_entity_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.entity_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 s3_bucket_name(mut self, input: impl Into<std::string::String>) -> Self {
self.s3_bucket_name = Some(input.into());
self
}
pub fn set_s3_bucket_name(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.s3_bucket_name = input;
self
}
pub fn s3_path(mut self, input: impl Into<std::string::String>) -> Self {
self.s3_path = Some(input.into());
self
}
pub fn set_s3_path(mut self, input: std::option::Option<std::string::String>) -> Self {
self.s3_path = input;
self
}
pub fn estimated_progress(mut self, input: i32) -> Self {
self.estimated_progress = Some(input);
self
}
pub fn set_estimated_progress(mut self, input: std::option::Option<i32>) -> Self {
self.estimated_progress = input;
self
}
pub fn state(mut self, input: crate::model::MailboxExportJobState) -> Self {
self.state = Some(input);
self
}
pub fn set_state(
mut self,
input: std::option::Option<crate::model::MailboxExportJobState>,
) -> Self {
self.state = input;
self
}
pub fn start_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.start_time = Some(input);
self
}
pub fn set_start_time(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.start_time = input;
self
}
pub fn end_time(mut self, input: aws_smithy_types::DateTime) -> Self {
self.end_time = Some(input);
self
}
pub fn set_end_time(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.end_time = input;
self
}
pub fn build(self) -> crate::model::MailboxExportJob {
crate::model::MailboxExportJob {
job_id: self.job_id,
entity_id: self.entity_id,
description: self.description,
s3_bucket_name: self.s3_bucket_name,
s3_path: self.s3_path,
estimated_progress: self.estimated_progress.unwrap_or_default(),
state: self.state,
start_time: self.start_time,
end_time: self.end_time,
}
}
}
}
impl MailboxExportJob {
pub fn builder() -> crate::model::mailbox_export_job::Builder {
crate::model::mailbox_export_job::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 MailboxExportJobState {
#[allow(missing_docs)] Cancelled,
#[allow(missing_docs)] Completed,
#[allow(missing_docs)] Failed,
#[allow(missing_docs)] Running,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for MailboxExportJobState {
fn from(s: &str) -> Self {
match s {
"CANCELLED" => MailboxExportJobState::Cancelled,
"COMPLETED" => MailboxExportJobState::Completed,
"FAILED" => MailboxExportJobState::Failed,
"RUNNING" => MailboxExportJobState::Running,
other => {
MailboxExportJobState::Unknown(crate::types::UnknownVariantValue(other.to_owned()))
}
}
}
}
impl std::str::FromStr for MailboxExportJobState {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(MailboxExportJobState::from(s))
}
}
impl MailboxExportJobState {
pub fn as_str(&self) -> &str {
match self {
MailboxExportJobState::Cancelled => "CANCELLED",
MailboxExportJobState::Completed => "COMPLETED",
MailboxExportJobState::Failed => "FAILED",
MailboxExportJobState::Running => "RUNNING",
MailboxExportJobState::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["CANCELLED", "COMPLETED", "FAILED", "RUNNING"]
}
}
impl AsRef<str> for MailboxExportJobState {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ImpersonationRole {
#[doc(hidden)]
pub impersonation_role_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub r#type: std::option::Option<crate::model::ImpersonationRoleType>,
#[doc(hidden)]
pub date_created: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub date_modified: std::option::Option<aws_smithy_types::DateTime>,
}
impl ImpersonationRole {
pub fn impersonation_role_id(&self) -> std::option::Option<&str> {
self.impersonation_role_id.as_deref()
}
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
pub fn r#type(&self) -> std::option::Option<&crate::model::ImpersonationRoleType> {
self.r#type.as_ref()
}
pub fn date_created(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.date_created.as_ref()
}
pub fn date_modified(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.date_modified.as_ref()
}
}
pub mod impersonation_role {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) impersonation_role_id: std::option::Option<std::string::String>,
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) r#type: std::option::Option<crate::model::ImpersonationRoleType>,
pub(crate) date_created: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) date_modified: std::option::Option<aws_smithy_types::DateTime>,
}
impl Builder {
pub fn impersonation_role_id(mut self, input: impl Into<std::string::String>) -> Self {
self.impersonation_role_id = Some(input.into());
self
}
pub fn set_impersonation_role_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.impersonation_role_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 r#type(mut self, input: crate::model::ImpersonationRoleType) -> Self {
self.r#type = Some(input);
self
}
pub fn set_type(
mut self,
input: std::option::Option<crate::model::ImpersonationRoleType>,
) -> Self {
self.r#type = input;
self
}
pub fn date_created(mut self, input: aws_smithy_types::DateTime) -> Self {
self.date_created = Some(input);
self
}
pub fn set_date_created(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.date_created = input;
self
}
pub fn date_modified(mut self, input: aws_smithy_types::DateTime) -> Self {
self.date_modified = Some(input);
self
}
pub fn set_date_modified(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.date_modified = input;
self
}
pub fn build(self) -> crate::model::ImpersonationRole {
crate::model::ImpersonationRole {
impersonation_role_id: self.impersonation_role_id,
name: self.name,
r#type: self.r#type,
date_created: self.date_created,
date_modified: self.date_modified,
}
}
}
}
impl ImpersonationRole {
pub fn builder() -> crate::model::impersonation_role::Builder {
crate::model::impersonation_role::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Group {
#[doc(hidden)]
pub id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub email: std::option::Option<std::string::String>,
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub state: std::option::Option<crate::model::EntityState>,
#[doc(hidden)]
pub enabled_date: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub disabled_date: std::option::Option<aws_smithy_types::DateTime>,
}
impl Group {
pub fn id(&self) -> std::option::Option<&str> {
self.id.as_deref()
}
pub fn email(&self) -> std::option::Option<&str> {
self.email.as_deref()
}
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
pub fn state(&self) -> std::option::Option<&crate::model::EntityState> {
self.state.as_ref()
}
pub fn enabled_date(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.enabled_date.as_ref()
}
pub fn disabled_date(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.disabled_date.as_ref()
}
}
pub mod group {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) id: std::option::Option<std::string::String>,
pub(crate) email: std::option::Option<std::string::String>,
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) state: std::option::Option<crate::model::EntityState>,
pub(crate) enabled_date: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) disabled_date: std::option::Option<aws_smithy_types::DateTime>,
}
impl Builder {
pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
self.id = Some(input.into());
self
}
pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.id = input;
self
}
pub fn email(mut self, input: impl Into<std::string::String>) -> Self {
self.email = Some(input.into());
self
}
pub fn set_email(mut self, input: std::option::Option<std::string::String>) -> Self {
self.email = 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 state(mut self, input: crate::model::EntityState) -> Self {
self.state = Some(input);
self
}
pub fn set_state(mut self, input: std::option::Option<crate::model::EntityState>) -> Self {
self.state = input;
self
}
pub fn enabled_date(mut self, input: aws_smithy_types::DateTime) -> Self {
self.enabled_date = Some(input);
self
}
pub fn set_enabled_date(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.enabled_date = input;
self
}
pub fn disabled_date(mut self, input: aws_smithy_types::DateTime) -> Self {
self.disabled_date = Some(input);
self
}
pub fn set_disabled_date(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.disabled_date = input;
self
}
pub fn build(self) -> crate::model::Group {
crate::model::Group {
id: self.id,
email: self.email,
name: self.name,
state: self.state,
enabled_date: self.enabled_date,
disabled_date: self.disabled_date,
}
}
}
}
impl Group {
pub fn builder() -> crate::model::group::Builder {
crate::model::group::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Member {
#[doc(hidden)]
pub id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub r#type: std::option::Option<crate::model::MemberType>,
#[doc(hidden)]
pub state: std::option::Option<crate::model::EntityState>,
#[doc(hidden)]
pub enabled_date: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub disabled_date: std::option::Option<aws_smithy_types::DateTime>,
}
impl Member {
pub fn id(&self) -> std::option::Option<&str> {
self.id.as_deref()
}
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
pub fn r#type(&self) -> std::option::Option<&crate::model::MemberType> {
self.r#type.as_ref()
}
pub fn state(&self) -> std::option::Option<&crate::model::EntityState> {
self.state.as_ref()
}
pub fn enabled_date(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.enabled_date.as_ref()
}
pub fn disabled_date(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.disabled_date.as_ref()
}
}
pub mod member {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) id: std::option::Option<std::string::String>,
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) r#type: std::option::Option<crate::model::MemberType>,
pub(crate) state: std::option::Option<crate::model::EntityState>,
pub(crate) enabled_date: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) disabled_date: std::option::Option<aws_smithy_types::DateTime>,
}
impl Builder {
pub fn id(mut self, input: impl Into<std::string::String>) -> Self {
self.id = Some(input.into());
self
}
pub fn set_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.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 r#type(mut self, input: crate::model::MemberType) -> Self {
self.r#type = Some(input);
self
}
pub fn set_type(mut self, input: std::option::Option<crate::model::MemberType>) -> Self {
self.r#type = input;
self
}
pub fn state(mut self, input: crate::model::EntityState) -> Self {
self.state = Some(input);
self
}
pub fn set_state(mut self, input: std::option::Option<crate::model::EntityState>) -> Self {
self.state = input;
self
}
pub fn enabled_date(mut self, input: aws_smithy_types::DateTime) -> Self {
self.enabled_date = Some(input);
self
}
pub fn set_enabled_date(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.enabled_date = input;
self
}
pub fn disabled_date(mut self, input: aws_smithy_types::DateTime) -> Self {
self.disabled_date = Some(input);
self
}
pub fn set_disabled_date(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.disabled_date = input;
self
}
pub fn build(self) -> crate::model::Member {
crate::model::Member {
id: self.id,
name: self.name,
r#type: self.r#type,
state: self.state,
enabled_date: self.enabled_date,
disabled_date: self.disabled_date,
}
}
}
}
impl Member {
pub fn builder() -> crate::model::member::Builder {
crate::model::member::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct AvailabilityConfiguration {
#[doc(hidden)]
pub domain_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub provider_type: std::option::Option<crate::model::AvailabilityProviderType>,
#[doc(hidden)]
pub ews_provider: std::option::Option<crate::model::RedactedEwsAvailabilityProvider>,
#[doc(hidden)]
pub lambda_provider: std::option::Option<crate::model::LambdaAvailabilityProvider>,
#[doc(hidden)]
pub date_created: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub date_modified: std::option::Option<aws_smithy_types::DateTime>,
}
impl AvailabilityConfiguration {
pub fn domain_name(&self) -> std::option::Option<&str> {
self.domain_name.as_deref()
}
pub fn provider_type(&self) -> std::option::Option<&crate::model::AvailabilityProviderType> {
self.provider_type.as_ref()
}
pub fn ews_provider(
&self,
) -> std::option::Option<&crate::model::RedactedEwsAvailabilityProvider> {
self.ews_provider.as_ref()
}
pub fn lambda_provider(
&self,
) -> std::option::Option<&crate::model::LambdaAvailabilityProvider> {
self.lambda_provider.as_ref()
}
pub fn date_created(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.date_created.as_ref()
}
pub fn date_modified(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.date_modified.as_ref()
}
}
pub mod availability_configuration {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) domain_name: std::option::Option<std::string::String>,
pub(crate) provider_type: std::option::Option<crate::model::AvailabilityProviderType>,
pub(crate) ews_provider: std::option::Option<crate::model::RedactedEwsAvailabilityProvider>,
pub(crate) lambda_provider: std::option::Option<crate::model::LambdaAvailabilityProvider>,
pub(crate) date_created: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) date_modified: std::option::Option<aws_smithy_types::DateTime>,
}
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 provider_type(mut self, input: crate::model::AvailabilityProviderType) -> Self {
self.provider_type = Some(input);
self
}
pub fn set_provider_type(
mut self,
input: std::option::Option<crate::model::AvailabilityProviderType>,
) -> Self {
self.provider_type = input;
self
}
pub fn ews_provider(
mut self,
input: crate::model::RedactedEwsAvailabilityProvider,
) -> Self {
self.ews_provider = Some(input);
self
}
pub fn set_ews_provider(
mut self,
input: std::option::Option<crate::model::RedactedEwsAvailabilityProvider>,
) -> Self {
self.ews_provider = input;
self
}
pub fn lambda_provider(mut self, input: crate::model::LambdaAvailabilityProvider) -> Self {
self.lambda_provider = Some(input);
self
}
pub fn set_lambda_provider(
mut self,
input: std::option::Option<crate::model::LambdaAvailabilityProvider>,
) -> Self {
self.lambda_provider = input;
self
}
pub fn date_created(mut self, input: aws_smithy_types::DateTime) -> Self {
self.date_created = Some(input);
self
}
pub fn set_date_created(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.date_created = input;
self
}
pub fn date_modified(mut self, input: aws_smithy_types::DateTime) -> Self {
self.date_modified = Some(input);
self
}
pub fn set_date_modified(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.date_modified = input;
self
}
pub fn build(self) -> crate::model::AvailabilityConfiguration {
crate::model::AvailabilityConfiguration {
domain_name: self.domain_name,
provider_type: self.provider_type,
ews_provider: self.ews_provider,
lambda_provider: self.lambda_provider,
date_created: self.date_created,
date_modified: self.date_modified,
}
}
}
}
impl AvailabilityConfiguration {
pub fn builder() -> crate::model::availability_configuration::Builder {
crate::model::availability_configuration::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct RedactedEwsAvailabilityProvider {
#[doc(hidden)]
pub ews_endpoint: std::option::Option<std::string::String>,
#[doc(hidden)]
pub ews_username: std::option::Option<std::string::String>,
}
impl RedactedEwsAvailabilityProvider {
pub fn ews_endpoint(&self) -> std::option::Option<&str> {
self.ews_endpoint.as_deref()
}
pub fn ews_username(&self) -> std::option::Option<&str> {
self.ews_username.as_deref()
}
}
pub mod redacted_ews_availability_provider {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) ews_endpoint: std::option::Option<std::string::String>,
pub(crate) ews_username: std::option::Option<std::string::String>,
}
impl Builder {
pub fn ews_endpoint(mut self, input: impl Into<std::string::String>) -> Self {
self.ews_endpoint = Some(input.into());
self
}
pub fn set_ews_endpoint(mut self, input: std::option::Option<std::string::String>) -> Self {
self.ews_endpoint = input;
self
}
pub fn ews_username(mut self, input: impl Into<std::string::String>) -> Self {
self.ews_username = Some(input.into());
self
}
pub fn set_ews_username(mut self, input: std::option::Option<std::string::String>) -> Self {
self.ews_username = input;
self
}
pub fn build(self) -> crate::model::RedactedEwsAvailabilityProvider {
crate::model::RedactedEwsAvailabilityProvider {
ews_endpoint: self.ews_endpoint,
ews_username: self.ews_username,
}
}
}
}
impl RedactedEwsAvailabilityProvider {
pub fn builder() -> crate::model::redacted_ews_availability_provider::Builder {
crate::model::redacted_ews_availability_provider::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 AvailabilityProviderType {
#[allow(missing_docs)] Ews,
#[allow(missing_docs)] Lambda,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for AvailabilityProviderType {
fn from(s: &str) -> Self {
match s {
"EWS" => AvailabilityProviderType::Ews,
"LAMBDA" => AvailabilityProviderType::Lambda,
other => AvailabilityProviderType::Unknown(crate::types::UnknownVariantValue(
other.to_owned(),
)),
}
}
}
impl std::str::FromStr for AvailabilityProviderType {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(AvailabilityProviderType::from(s))
}
}
impl AvailabilityProviderType {
pub fn as_str(&self) -> &str {
match self {
AvailabilityProviderType::Ews => "EWS",
AvailabilityProviderType::Lambda => "LAMBDA",
AvailabilityProviderType::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["EWS", "LAMBDA"]
}
}
impl AsRef<str> for AvailabilityProviderType {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct AccessControlRule {
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub effect: std::option::Option<crate::model::AccessControlRuleEffect>,
#[doc(hidden)]
pub description: std::option::Option<std::string::String>,
#[doc(hidden)]
pub ip_ranges: std::option::Option<std::vec::Vec<std::string::String>>,
#[doc(hidden)]
pub not_ip_ranges: std::option::Option<std::vec::Vec<std::string::String>>,
#[doc(hidden)]
pub actions: std::option::Option<std::vec::Vec<std::string::String>>,
#[doc(hidden)]
pub not_actions: std::option::Option<std::vec::Vec<std::string::String>>,
#[doc(hidden)]
pub user_ids: std::option::Option<std::vec::Vec<std::string::String>>,
#[doc(hidden)]
pub not_user_ids: std::option::Option<std::vec::Vec<std::string::String>>,
#[doc(hidden)]
pub date_created: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub date_modified: std::option::Option<aws_smithy_types::DateTime>,
#[doc(hidden)]
pub impersonation_role_ids: std::option::Option<std::vec::Vec<std::string::String>>,
#[doc(hidden)]
pub not_impersonation_role_ids: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl AccessControlRule {
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
pub fn effect(&self) -> std::option::Option<&crate::model::AccessControlRuleEffect> {
self.effect.as_ref()
}
pub fn description(&self) -> std::option::Option<&str> {
self.description.as_deref()
}
pub fn ip_ranges(&self) -> std::option::Option<&[std::string::String]> {
self.ip_ranges.as_deref()
}
pub fn not_ip_ranges(&self) -> std::option::Option<&[std::string::String]> {
self.not_ip_ranges.as_deref()
}
pub fn actions(&self) -> std::option::Option<&[std::string::String]> {
self.actions.as_deref()
}
pub fn not_actions(&self) -> std::option::Option<&[std::string::String]> {
self.not_actions.as_deref()
}
pub fn user_ids(&self) -> std::option::Option<&[std::string::String]> {
self.user_ids.as_deref()
}
pub fn not_user_ids(&self) -> std::option::Option<&[std::string::String]> {
self.not_user_ids.as_deref()
}
pub fn date_created(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.date_created.as_ref()
}
pub fn date_modified(&self) -> std::option::Option<&aws_smithy_types::DateTime> {
self.date_modified.as_ref()
}
pub fn impersonation_role_ids(&self) -> std::option::Option<&[std::string::String]> {
self.impersonation_role_ids.as_deref()
}
pub fn not_impersonation_role_ids(&self) -> std::option::Option<&[std::string::String]> {
self.not_impersonation_role_ids.as_deref()
}
}
pub mod access_control_rule {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) name: std::option::Option<std::string::String>,
pub(crate) effect: std::option::Option<crate::model::AccessControlRuleEffect>,
pub(crate) description: std::option::Option<std::string::String>,
pub(crate) ip_ranges: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) not_ip_ranges: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) actions: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) not_actions: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) user_ids: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) not_user_ids: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) date_created: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) date_modified: std::option::Option<aws_smithy_types::DateTime>,
pub(crate) impersonation_role_ids: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) not_impersonation_role_ids:
std::option::Option<std::vec::Vec<std::string::String>>,
}
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 effect(mut self, input: crate::model::AccessControlRuleEffect) -> Self {
self.effect = Some(input);
self
}
pub fn set_effect(
mut self,
input: std::option::Option<crate::model::AccessControlRuleEffect>,
) -> Self {
self.effect = 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 ip_ranges(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.ip_ranges.unwrap_or_default();
v.push(input.into());
self.ip_ranges = Some(v);
self
}
pub fn set_ip_ranges(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.ip_ranges = input;
self
}
pub fn not_ip_ranges(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.not_ip_ranges.unwrap_or_default();
v.push(input.into());
self.not_ip_ranges = Some(v);
self
}
pub fn set_not_ip_ranges(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.not_ip_ranges = input;
self
}
pub fn actions(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.actions.unwrap_or_default();
v.push(input.into());
self.actions = Some(v);
self
}
pub fn set_actions(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.actions = input;
self
}
pub fn not_actions(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.not_actions.unwrap_or_default();
v.push(input.into());
self.not_actions = Some(v);
self
}
pub fn set_not_actions(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.not_actions = input;
self
}
pub fn user_ids(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.user_ids.unwrap_or_default();
v.push(input.into());
self.user_ids = Some(v);
self
}
pub fn set_user_ids(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.user_ids = input;
self
}
pub fn not_user_ids(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.not_user_ids.unwrap_or_default();
v.push(input.into());
self.not_user_ids = Some(v);
self
}
pub fn set_not_user_ids(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.not_user_ids = input;
self
}
pub fn date_created(mut self, input: aws_smithy_types::DateTime) -> Self {
self.date_created = Some(input);
self
}
pub fn set_date_created(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.date_created = input;
self
}
pub fn date_modified(mut self, input: aws_smithy_types::DateTime) -> Self {
self.date_modified = Some(input);
self
}
pub fn set_date_modified(
mut self,
input: std::option::Option<aws_smithy_types::DateTime>,
) -> Self {
self.date_modified = input;
self
}
pub fn impersonation_role_ids(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.impersonation_role_ids.unwrap_or_default();
v.push(input.into());
self.impersonation_role_ids = Some(v);
self
}
pub fn set_impersonation_role_ids(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.impersonation_role_ids = input;
self
}
pub fn not_impersonation_role_ids(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.not_impersonation_role_ids.unwrap_or_default();
v.push(input.into());
self.not_impersonation_role_ids = Some(v);
self
}
pub fn set_not_impersonation_role_ids(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.not_impersonation_role_ids = input;
self
}
pub fn build(self) -> crate::model::AccessControlRule {
crate::model::AccessControlRule {
name: self.name,
effect: self.effect,
description: self.description,
ip_ranges: self.ip_ranges,
not_ip_ranges: self.not_ip_ranges,
actions: self.actions,
not_actions: self.not_actions,
user_ids: self.user_ids,
not_user_ids: self.not_user_ids,
date_created: self.date_created,
date_modified: self.date_modified,
impersonation_role_ids: self.impersonation_role_ids,
not_impersonation_role_ids: self.not_impersonation_role_ids,
}
}
}
}
impl AccessControlRule {
pub fn builder() -> crate::model::access_control_rule::Builder {
crate::model::access_control_rule::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct MobileDeviceAccessMatchedRule {
#[doc(hidden)]
pub mobile_device_access_rule_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
}
impl MobileDeviceAccessMatchedRule {
pub fn mobile_device_access_rule_id(&self) -> std::option::Option<&str> {
self.mobile_device_access_rule_id.as_deref()
}
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
}
pub mod mobile_device_access_matched_rule {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) mobile_device_access_rule_id: std::option::Option<std::string::String>,
pub(crate) name: std::option::Option<std::string::String>,
}
impl Builder {
pub fn mobile_device_access_rule_id(
mut self,
input: impl Into<std::string::String>,
) -> Self {
self.mobile_device_access_rule_id = Some(input.into());
self
}
pub fn set_mobile_device_access_rule_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.mobile_device_access_rule_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 build(self) -> crate::model::MobileDeviceAccessMatchedRule {
crate::model::MobileDeviceAccessMatchedRule {
mobile_device_access_rule_id: self.mobile_device_access_rule_id,
name: self.name,
}
}
}
}
impl MobileDeviceAccessMatchedRule {
pub fn builder() -> crate::model::mobile_device_access_matched_rule::Builder {
crate::model::mobile_device_access_matched_rule::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 DnsRecordVerificationStatus {
#[allow(missing_docs)] Failed,
#[allow(missing_docs)] Pending,
#[allow(missing_docs)] Verified,
Unknown(crate::types::UnknownVariantValue),
}
impl std::convert::From<&str> for DnsRecordVerificationStatus {
fn from(s: &str) -> Self {
match s {
"FAILED" => DnsRecordVerificationStatus::Failed,
"PENDING" => DnsRecordVerificationStatus::Pending,
"VERIFIED" => DnsRecordVerificationStatus::Verified,
other => DnsRecordVerificationStatus::Unknown(crate::types::UnknownVariantValue(
other.to_owned(),
)),
}
}
}
impl std::str::FromStr for DnsRecordVerificationStatus {
type Err = std::convert::Infallible;
fn from_str(s: &str) -> std::result::Result<Self, Self::Err> {
Ok(DnsRecordVerificationStatus::from(s))
}
}
impl DnsRecordVerificationStatus {
pub fn as_str(&self) -> &str {
match self {
DnsRecordVerificationStatus::Failed => "FAILED",
DnsRecordVerificationStatus::Pending => "PENDING",
DnsRecordVerificationStatus::Verified => "VERIFIED",
DnsRecordVerificationStatus::Unknown(value) => value.as_str(),
}
}
pub const fn values() -> &'static [&'static str] {
&["FAILED", "PENDING", "VERIFIED"]
}
}
impl AsRef<str> for DnsRecordVerificationStatus {
fn as_ref(&self) -> &str {
self.as_str()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DnsRecord {
#[doc(hidden)]
pub r#type: std::option::Option<std::string::String>,
#[doc(hidden)]
pub hostname: std::option::Option<std::string::String>,
#[doc(hidden)]
pub value: std::option::Option<std::string::String>,
}
impl DnsRecord {
pub fn r#type(&self) -> std::option::Option<&str> {
self.r#type.as_deref()
}
pub fn hostname(&self) -> std::option::Option<&str> {
self.hostname.as_deref()
}
pub fn value(&self) -> std::option::Option<&str> {
self.value.as_deref()
}
}
pub mod dns_record {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) r#type: std::option::Option<std::string::String>,
pub(crate) hostname: std::option::Option<std::string::String>,
pub(crate) value: std::option::Option<std::string::String>,
}
impl Builder {
pub fn r#type(mut self, input: impl Into<std::string::String>) -> Self {
self.r#type = Some(input.into());
self
}
pub fn set_type(mut self, input: std::option::Option<std::string::String>) -> Self {
self.r#type = input;
self
}
pub fn hostname(mut self, input: impl Into<std::string::String>) -> Self {
self.hostname = Some(input.into());
self
}
pub fn set_hostname(mut self, input: std::option::Option<std::string::String>) -> Self {
self.hostname = input;
self
}
pub fn value(mut self, input: impl Into<std::string::String>) -> Self {
self.value = Some(input.into());
self
}
pub fn set_value(mut self, input: std::option::Option<std::string::String>) -> Self {
self.value = input;
self
}
pub fn build(self) -> crate::model::DnsRecord {
crate::model::DnsRecord {
r#type: self.r#type,
hostname: self.hostname,
value: self.value,
}
}
}
}
impl DnsRecord {
pub fn builder() -> crate::model::dns_record::Builder {
crate::model::dns_record::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ImpersonationMatchedRule {
#[doc(hidden)]
pub impersonation_rule_id: std::option::Option<std::string::String>,
#[doc(hidden)]
pub name: std::option::Option<std::string::String>,
}
impl ImpersonationMatchedRule {
pub fn impersonation_rule_id(&self) -> std::option::Option<&str> {
self.impersonation_rule_id.as_deref()
}
pub fn name(&self) -> std::option::Option<&str> {
self.name.as_deref()
}
}
pub mod impersonation_matched_rule {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) impersonation_rule_id: std::option::Option<std::string::String>,
pub(crate) name: std::option::Option<std::string::String>,
}
impl Builder {
pub fn impersonation_rule_id(mut self, input: impl Into<std::string::String>) -> Self {
self.impersonation_rule_id = Some(input.into());
self
}
pub fn set_impersonation_rule_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.impersonation_rule_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 build(self) -> crate::model::ImpersonationMatchedRule {
crate::model::ImpersonationMatchedRule {
impersonation_rule_id: self.impersonation_rule_id,
name: self.name,
}
}
}
}
impl ImpersonationMatchedRule {
pub fn builder() -> crate::model::impersonation_matched_rule::Builder {
crate::model::impersonation_matched_rule::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Domain {
#[doc(hidden)]
pub domain_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub hosted_zone_id: std::option::Option<std::string::String>,
}
impl Domain {
pub fn domain_name(&self) -> std::option::Option<&str> {
self.domain_name.as_deref()
}
pub fn hosted_zone_id(&self) -> std::option::Option<&str> {
self.hosted_zone_id.as_deref()
}
}
pub mod domain {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) domain_name: std::option::Option<std::string::String>,
pub(crate) hosted_zone_id: std::option::Option<std::string::String>,
}
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 hosted_zone_id(mut self, input: impl Into<std::string::String>) -> Self {
self.hosted_zone_id = Some(input.into());
self
}
pub fn set_hosted_zone_id(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.hosted_zone_id = input;
self
}
pub fn build(self) -> crate::model::Domain {
crate::model::Domain {
domain_name: self.domain_name,
hosted_zone_id: self.hosted_zone_id,
}
}
}
}
impl Domain {
pub fn builder() -> crate::model::domain::Builder {
crate::model::domain::Builder::default()
}
}