1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/worklink/WorkLink_EXPORTS.h>
8 #include <aws/worklink/WorkLinkRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <aws/worklink/model/AuthorizationProviderType.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace WorkLink
16 {
17 namespace Model
18 {
19 
20   /**
21    */
22   class AWS_WORKLINK_API AssociateWebsiteAuthorizationProviderRequest : public WorkLinkRequest
23   {
24   public:
25     AssociateWebsiteAuthorizationProviderRequest();
26 
27     // Service request name is the Operation name which will send this request out,
28     // each operation should has unique request name, so that we can get operation's name from this request.
29     // Note: this is not true for response, multiple operations may have the same response name,
30     // so we can not get operation's name from response.
GetServiceRequestName()31     inline virtual const char* GetServiceRequestName() const override { return "AssociateWebsiteAuthorizationProvider"; }
32 
33     Aws::String SerializePayload() const override;
34 
35 
36     /**
37      * <p>The ARN of the fleet.</p>
38      */
GetFleetArn()39     inline const Aws::String& GetFleetArn() const{ return m_fleetArn; }
40 
41     /**
42      * <p>The ARN of the fleet.</p>
43      */
FleetArnHasBeenSet()44     inline bool FleetArnHasBeenSet() const { return m_fleetArnHasBeenSet; }
45 
46     /**
47      * <p>The ARN of the fleet.</p>
48      */
SetFleetArn(const Aws::String & value)49     inline void SetFleetArn(const Aws::String& value) { m_fleetArnHasBeenSet = true; m_fleetArn = value; }
50 
51     /**
52      * <p>The ARN of the fleet.</p>
53      */
SetFleetArn(Aws::String && value)54     inline void SetFleetArn(Aws::String&& value) { m_fleetArnHasBeenSet = true; m_fleetArn = std::move(value); }
55 
56     /**
57      * <p>The ARN of the fleet.</p>
58      */
SetFleetArn(const char * value)59     inline void SetFleetArn(const char* value) { m_fleetArnHasBeenSet = true; m_fleetArn.assign(value); }
60 
61     /**
62      * <p>The ARN of the fleet.</p>
63      */
WithFleetArn(const Aws::String & value)64     inline AssociateWebsiteAuthorizationProviderRequest& WithFleetArn(const Aws::String& value) { SetFleetArn(value); return *this;}
65 
66     /**
67      * <p>The ARN of the fleet.</p>
68      */
WithFleetArn(Aws::String && value)69     inline AssociateWebsiteAuthorizationProviderRequest& WithFleetArn(Aws::String&& value) { SetFleetArn(std::move(value)); return *this;}
70 
71     /**
72      * <p>The ARN of the fleet.</p>
73      */
WithFleetArn(const char * value)74     inline AssociateWebsiteAuthorizationProviderRequest& WithFleetArn(const char* value) { SetFleetArn(value); return *this;}
75 
76 
77     /**
78      * <p>The authorization provider type.</p>
79      */
GetAuthorizationProviderType()80     inline const AuthorizationProviderType& GetAuthorizationProviderType() const{ return m_authorizationProviderType; }
81 
82     /**
83      * <p>The authorization provider type.</p>
84      */
AuthorizationProviderTypeHasBeenSet()85     inline bool AuthorizationProviderTypeHasBeenSet() const { return m_authorizationProviderTypeHasBeenSet; }
86 
87     /**
88      * <p>The authorization provider type.</p>
89      */
SetAuthorizationProviderType(const AuthorizationProviderType & value)90     inline void SetAuthorizationProviderType(const AuthorizationProviderType& value) { m_authorizationProviderTypeHasBeenSet = true; m_authorizationProviderType = value; }
91 
92     /**
93      * <p>The authorization provider type.</p>
94      */
SetAuthorizationProviderType(AuthorizationProviderType && value)95     inline void SetAuthorizationProviderType(AuthorizationProviderType&& value) { m_authorizationProviderTypeHasBeenSet = true; m_authorizationProviderType = std::move(value); }
96 
97     /**
98      * <p>The authorization provider type.</p>
99      */
WithAuthorizationProviderType(const AuthorizationProviderType & value)100     inline AssociateWebsiteAuthorizationProviderRequest& WithAuthorizationProviderType(const AuthorizationProviderType& value) { SetAuthorizationProviderType(value); return *this;}
101 
102     /**
103      * <p>The authorization provider type.</p>
104      */
WithAuthorizationProviderType(AuthorizationProviderType && value)105     inline AssociateWebsiteAuthorizationProviderRequest& WithAuthorizationProviderType(AuthorizationProviderType&& value) { SetAuthorizationProviderType(std::move(value)); return *this;}
106 
107 
108     /**
109      * <p>The domain name of the authorization provider. This applies only to
110      * SAML-based authorization providers.</p>
111      */
GetDomainName()112     inline const Aws::String& GetDomainName() const{ return m_domainName; }
113 
114     /**
115      * <p>The domain name of the authorization provider. This applies only to
116      * SAML-based authorization providers.</p>
117      */
DomainNameHasBeenSet()118     inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
119 
120     /**
121      * <p>The domain name of the authorization provider. This applies only to
122      * SAML-based authorization providers.</p>
123      */
SetDomainName(const Aws::String & value)124     inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; }
125 
126     /**
127      * <p>The domain name of the authorization provider. This applies only to
128      * SAML-based authorization providers.</p>
129      */
SetDomainName(Aws::String && value)130     inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); }
131 
132     /**
133      * <p>The domain name of the authorization provider. This applies only to
134      * SAML-based authorization providers.</p>
135      */
SetDomainName(const char * value)136     inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); }
137 
138     /**
139      * <p>The domain name of the authorization provider. This applies only to
140      * SAML-based authorization providers.</p>
141      */
WithDomainName(const Aws::String & value)142     inline AssociateWebsiteAuthorizationProviderRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;}
143 
144     /**
145      * <p>The domain name of the authorization provider. This applies only to
146      * SAML-based authorization providers.</p>
147      */
WithDomainName(Aws::String && value)148     inline AssociateWebsiteAuthorizationProviderRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;}
149 
150     /**
151      * <p>The domain name of the authorization provider. This applies only to
152      * SAML-based authorization providers.</p>
153      */
WithDomainName(const char * value)154     inline AssociateWebsiteAuthorizationProviderRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;}
155 
156   private:
157 
158     Aws::String m_fleetArn;
159     bool m_fleetArnHasBeenSet;
160 
161     AuthorizationProviderType m_authorizationProviderType;
162     bool m_authorizationProviderTypeHasBeenSet;
163 
164     Aws::String m_domainName;
165     bool m_domainNameHasBeenSet;
166   };
167 
168 } // namespace Model
169 } // namespace WorkLink
170 } // namespace Aws
171