AWS SDK for C++  1.9.97
AWS SDK for C++
CognitoOptions.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace ElasticsearchService
22 {
23 namespace Model
24 {
25 
36  {
37  public:
42 
43 
47  inline bool GetEnabled() const{ return m_enabled; }
48 
52  inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
53 
57  inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
58 
62  inline CognitoOptions& WithEnabled(bool value) { SetEnabled(value); return *this;}
63 
64 
68  inline const Aws::String& GetUserPoolId() const{ return m_userPoolId; }
69 
73  inline bool UserPoolIdHasBeenSet() const { return m_userPoolIdHasBeenSet; }
74 
78  inline void SetUserPoolId(const Aws::String& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = value; }
79 
83  inline void SetUserPoolId(Aws::String&& value) { m_userPoolIdHasBeenSet = true; m_userPoolId = std::move(value); }
84 
88  inline void SetUserPoolId(const char* value) { m_userPoolIdHasBeenSet = true; m_userPoolId.assign(value); }
89 
93  inline CognitoOptions& WithUserPoolId(const Aws::String& value) { SetUserPoolId(value); return *this;}
94 
98  inline CognitoOptions& WithUserPoolId(Aws::String&& value) { SetUserPoolId(std::move(value)); return *this;}
99 
103  inline CognitoOptions& WithUserPoolId(const char* value) { SetUserPoolId(value); return *this;}
104 
105 
109  inline const Aws::String& GetIdentityPoolId() const{ return m_identityPoolId; }
110 
114  inline bool IdentityPoolIdHasBeenSet() const { return m_identityPoolIdHasBeenSet; }
115 
119  inline void SetIdentityPoolId(const Aws::String& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = value; }
120 
124  inline void SetIdentityPoolId(Aws::String&& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = std::move(value); }
125 
129  inline void SetIdentityPoolId(const char* value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId.assign(value); }
130 
134  inline CognitoOptions& WithIdentityPoolId(const Aws::String& value) { SetIdentityPoolId(value); return *this;}
135 
139  inline CognitoOptions& WithIdentityPoolId(Aws::String&& value) { SetIdentityPoolId(std::move(value)); return *this;}
140 
144  inline CognitoOptions& WithIdentityPoolId(const char* value) { SetIdentityPoolId(value); return *this;}
145 
146 
151  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
152 
157  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
158 
163  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
164 
169  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
170 
175  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
176 
181  inline CognitoOptions& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
182 
187  inline CognitoOptions& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
188 
193  inline CognitoOptions& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
194 
195  private:
196 
197  bool m_enabled;
198  bool m_enabledHasBeenSet;
199 
200  Aws::String m_userPoolId;
201  bool m_userPoolIdHasBeenSet;
202 
203  Aws::String m_identityPoolId;
204  bool m_identityPoolIdHasBeenSet;
205 
206  Aws::String m_roleArn;
207  bool m_roleArnHasBeenSet;
208  };
209 
210 } // namespace Model
211 } // namespace ElasticsearchService
212 } // namespace Aws
Aws::ElasticsearchService::Model::CognitoOptions::operator=
CognitoOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ElasticsearchService::Model::CognitoOptions::IdentityPoolIdHasBeenSet
bool IdentityPoolIdHasBeenSet() const
Definition: CognitoOptions.h:114
Aws::ElasticsearchService::Model::CognitoOptions::CognitoOptions
CognitoOptions()
Aws::ElasticsearchService::Model::CognitoOptions::GetUserPoolId
const Aws::String & GetUserPoolId() const
Definition: CognitoOptions.h:68
Aws::ElasticsearchService::Model::CognitoOptions::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: CognitoOptions.h:169
Aws::ElasticsearchService::Model::CognitoOptions::SetUserPoolId
void SetUserPoolId(Aws::String &&value)
Definition: CognitoOptions.h:83
Aws::ElasticsearchService::Model::CognitoOptions::WithUserPoolId
CognitoOptions & WithUserPoolId(const char *value)
Definition: CognitoOptions.h:103
Aws::ElasticsearchService::Model::CognitoOptions::WithRoleArn
CognitoOptions & WithRoleArn(const char *value)
Definition: CognitoOptions.h:193
Aws::ElasticsearchService::Model::CognitoOptions
Definition: CognitoOptions.h:36
Aws::ElasticsearchService::Model::CognitoOptions::RoleArnHasBeenSet
bool RoleArnHasBeenSet() const
Definition: CognitoOptions.h:157
Aws::ElasticsearchService::Model::CognitoOptions::WithUserPoolId
CognitoOptions & WithUserPoolId(const Aws::String &value)
Definition: CognitoOptions.h:93
AWS_ELASTICSEARCHSERVICE_API
#define AWS_ELASTICSEARCHSERVICE_API
Definition: ElasticsearchService_EXPORTS.h:28
Aws::ElasticsearchService::Model::CognitoOptions::SetIdentityPoolId
void SetIdentityPoolId(const Aws::String &value)
Definition: CognitoOptions.h:119
ElasticsearchService_EXPORTS.h
Aws::ElasticsearchService::Model::CognitoOptions::WithIdentityPoolId
CognitoOptions & WithIdentityPoolId(Aws::String &&value)
Definition: CognitoOptions.h:139
Aws::ElasticsearchService::Model::CognitoOptions::GetEnabled
bool GetEnabled() const
Definition: CognitoOptions.h:47
Aws::ElasticsearchService::Model::CognitoOptions::SetEnabled
void SetEnabled(bool value)
Definition: CognitoOptions.h:57
Aws::ElasticsearchService::Model::CognitoOptions::WithIdentityPoolId
CognitoOptions & WithIdentityPoolId(const Aws::String &value)
Definition: CognitoOptions.h:134
Aws::ElasticsearchService::Model::CognitoOptions::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ElasticsearchService::Model::CognitoOptions::SetIdentityPoolId
void SetIdentityPoolId(Aws::String &&value)
Definition: CognitoOptions.h:124
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::ElasticsearchService::Model::CognitoOptions::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: CognitoOptions.h:151
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ElasticsearchService::Model::CognitoOptions::WithIdentityPoolId
CognitoOptions & WithIdentityPoolId(const char *value)
Definition: CognitoOptions.h:144
Aws::ElasticsearchService::Model::CognitoOptions::WithRoleArn
CognitoOptions & WithRoleArn(Aws::String &&value)
Definition: CognitoOptions.h:187
Aws::ElasticsearchService::Model::CognitoOptions::CognitoOptions
CognitoOptions(Aws::Utils::Json::JsonView jsonValue)
Aws::ElasticsearchService::Model::CognitoOptions::SetUserPoolId
void SetUserPoolId(const Aws::String &value)
Definition: CognitoOptions.h:78
Aws::ElasticsearchService::Model::CognitoOptions::UserPoolIdHasBeenSet
bool UserPoolIdHasBeenSet() const
Definition: CognitoOptions.h:73
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticsearchService::Model::CognitoOptions::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: CognitoOptions.h:163
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticsearchService::Model::CognitoOptions::SetIdentityPoolId
void SetIdentityPoolId(const char *value)
Definition: CognitoOptions.h:129
Aws::ElasticsearchService::Model::CognitoOptions::GetIdentityPoolId
const Aws::String & GetIdentityPoolId() const
Definition: CognitoOptions.h:109
Aws::ElasticsearchService::Model::CognitoOptions::SetRoleArn
void SetRoleArn(const char *value)
Definition: CognitoOptions.h:175
Aws::ElasticsearchService::Model::CognitoOptions::SetUserPoolId
void SetUserPoolId(const char *value)
Definition: CognitoOptions.h:88
Aws::ElasticsearchService::Model::CognitoOptions::WithUserPoolId
CognitoOptions & WithUserPoolId(Aws::String &&value)
Definition: CognitoOptions.h:98
Aws::ElasticsearchService::Model::CognitoOptions::WithRoleArn
CognitoOptions & WithRoleArn(const Aws::String &value)
Definition: CognitoOptions.h:181
Aws::ElasticsearchService::Model::CognitoOptions::WithEnabled
CognitoOptions & WithEnabled(bool value)
Definition: CognitoOptions.h:62
Aws::ElasticsearchService::Model::CognitoOptions::EnabledHasBeenSet
bool EnabledHasBeenSet() const
Definition: CognitoOptions.h:52