1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct RegisterIdentityProviderInput {
/// <p>An object that specifies details for the identity provider to register.</p>
pub identity_provider: ::std::option::Option<crate::types::IdentityProvider>,
/// <p>The name of the user-based subscription product.</p>
/// <p>Valid values: <code>VISUAL_STUDIO_ENTERPRISE</code> | <code>VISUAL_STUDIO_PROFESSIONAL</code> | <code>OFFICE_PROFESSIONAL_PLUS</code> | <code>OFFICE_STANDARD</code> | <code>REMOTE_DESKTOP_SERVICES</code></p>
pub product: ::std::option::Option<::std::string::String>,
/// <p>The registered identity provider’s product related configuration settings such as the subnets to provision VPC endpoints.</p>
pub settings: ::std::option::Option<crate::types::Settings>,
/// <p>The tags that apply to the identity provider's registration.</p>
pub tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
}
impl RegisterIdentityProviderInput {
/// <p>An object that specifies details for the identity provider to register.</p>
pub fn identity_provider(&self) -> ::std::option::Option<&crate::types::IdentityProvider> {
self.identity_provider.as_ref()
}
/// <p>The name of the user-based subscription product.</p>
/// <p>Valid values: <code>VISUAL_STUDIO_ENTERPRISE</code> | <code>VISUAL_STUDIO_PROFESSIONAL</code> | <code>OFFICE_PROFESSIONAL_PLUS</code> | <code>OFFICE_STANDARD</code> | <code>REMOTE_DESKTOP_SERVICES</code></p>
pub fn product(&self) -> ::std::option::Option<&str> {
self.product.as_deref()
}
/// <p>The registered identity provider’s product related configuration settings such as the subnets to provision VPC endpoints.</p>
pub fn settings(&self) -> ::std::option::Option<&crate::types::Settings> {
self.settings.as_ref()
}
/// <p>The tags that apply to the identity provider's registration.</p>
pub fn tags(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
self.tags.as_ref()
}
}
impl ::std::fmt::Debug for RegisterIdentityProviderInput {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("RegisterIdentityProviderInput");
formatter.field("identity_provider", &self.identity_provider);
formatter.field("product", &self.product);
formatter.field("settings", &self.settings);
formatter.field("tags", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}
impl RegisterIdentityProviderInput {
/// Creates a new builder-style object to manufacture [`RegisterIdentityProviderInput`](crate::operation::register_identity_provider::RegisterIdentityProviderInput).
pub fn builder() -> crate::operation::register_identity_provider::builders::RegisterIdentityProviderInputBuilder {
crate::operation::register_identity_provider::builders::RegisterIdentityProviderInputBuilder::default()
}
}
/// A builder for [`RegisterIdentityProviderInput`](crate::operation::register_identity_provider::RegisterIdentityProviderInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct RegisterIdentityProviderInputBuilder {
pub(crate) identity_provider: ::std::option::Option<crate::types::IdentityProvider>,
pub(crate) product: ::std::option::Option<::std::string::String>,
pub(crate) settings: ::std::option::Option<crate::types::Settings>,
pub(crate) tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
}
impl RegisterIdentityProviderInputBuilder {
/// <p>An object that specifies details for the identity provider to register.</p>
/// This field is required.
pub fn identity_provider(mut self, input: crate::types::IdentityProvider) -> Self {
self.identity_provider = ::std::option::Option::Some(input);
self
}
/// <p>An object that specifies details for the identity provider to register.</p>
pub fn set_identity_provider(mut self, input: ::std::option::Option<crate::types::IdentityProvider>) -> Self {
self.identity_provider = input;
self
}
/// <p>An object that specifies details for the identity provider to register.</p>
pub fn get_identity_provider(&self) -> &::std::option::Option<crate::types::IdentityProvider> {
&self.identity_provider
}
/// <p>The name of the user-based subscription product.</p>
/// <p>Valid values: <code>VISUAL_STUDIO_ENTERPRISE</code> | <code>VISUAL_STUDIO_PROFESSIONAL</code> | <code>OFFICE_PROFESSIONAL_PLUS</code> | <code>OFFICE_STANDARD</code> | <code>REMOTE_DESKTOP_SERVICES</code></p>
/// This field is required.
pub fn product(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.product = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the user-based subscription product.</p>
/// <p>Valid values: <code>VISUAL_STUDIO_ENTERPRISE</code> | <code>VISUAL_STUDIO_PROFESSIONAL</code> | <code>OFFICE_PROFESSIONAL_PLUS</code> | <code>OFFICE_STANDARD</code> | <code>REMOTE_DESKTOP_SERVICES</code></p>
pub fn set_product(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.product = input;
self
}
/// <p>The name of the user-based subscription product.</p>
/// <p>Valid values: <code>VISUAL_STUDIO_ENTERPRISE</code> | <code>VISUAL_STUDIO_PROFESSIONAL</code> | <code>OFFICE_PROFESSIONAL_PLUS</code> | <code>OFFICE_STANDARD</code> | <code>REMOTE_DESKTOP_SERVICES</code></p>
pub fn get_product(&self) -> &::std::option::Option<::std::string::String> {
&self.product
}
/// <p>The registered identity provider’s product related configuration settings such as the subnets to provision VPC endpoints.</p>
pub fn settings(mut self, input: crate::types::Settings) -> Self {
self.settings = ::std::option::Option::Some(input);
self
}
/// <p>The registered identity provider’s product related configuration settings such as the subnets to provision VPC endpoints.</p>
pub fn set_settings(mut self, input: ::std::option::Option<crate::types::Settings>) -> Self {
self.settings = input;
self
}
/// <p>The registered identity provider’s product related configuration settings such as the subnets to provision VPC endpoints.</p>
pub fn get_settings(&self) -> &::std::option::Option<crate::types::Settings> {
&self.settings
}
/// Adds a key-value pair to `tags`.
///
/// To override the contents of this collection use [`set_tags`](Self::set_tags).
///
/// <p>The tags that apply to the identity provider's registration.</p>
pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut hash_map = self.tags.unwrap_or_default();
hash_map.insert(k.into(), v.into());
self.tags = ::std::option::Option::Some(hash_map);
self
}
/// <p>The tags that apply to the identity provider's registration.</p>
pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
self.tags = input;
self
}
/// <p>The tags that apply to the identity provider's registration.</p>
pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
&self.tags
}
/// Consumes the builder and constructs a [`RegisterIdentityProviderInput`](crate::operation::register_identity_provider::RegisterIdentityProviderInput).
pub fn build(
self,
) -> ::std::result::Result<
crate::operation::register_identity_provider::RegisterIdentityProviderInput,
::aws_smithy_types::error::operation::BuildError,
> {
::std::result::Result::Ok(crate::operation::register_identity_provider::RegisterIdentityProviderInput {
identity_provider: self.identity_provider,
product: self.product,
settings: self.settings,
tags: self.tags,
})
}
}
impl ::std::fmt::Debug for RegisterIdentityProviderInputBuilder {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("RegisterIdentityProviderInputBuilder");
formatter.field("identity_provider", &self.identity_provider);
formatter.field("product", &self.product);
formatter.field("settings", &self.settings);
formatter.field("tags", &"*** Sensitive Data Redacted ***");
formatter.finish()
}
}