AWS SDK for C++  1.9.71
AWS SDK for C++
AttributeType.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 CognitoIdentityProvider
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetName() const{ return m_name; }
45 
49  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 
54  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 
59  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
60 
64  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 
69  inline AttributeType& WithName(const Aws::String& value) { SetName(value); return *this;}
70 
74  inline AttributeType& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
75 
79  inline AttributeType& WithName(const char* value) { SetName(value); return *this;}
80 
81 
85  inline const Aws::String& GetValue() const{ return m_value; }
86 
90  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
91 
95  inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
96 
100  inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
101 
105  inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
106 
110  inline AttributeType& WithValue(const Aws::String& value) { SetValue(value); return *this;}
111 
115  inline AttributeType& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
116 
120  inline AttributeType& WithValue(const char* value) { SetValue(value); return *this;}
121 
122  private:
123 
124  Aws::String m_name;
125  bool m_nameHasBeenSet;
126 
127  Aws::String m_value;
128  bool m_valueHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace CognitoIdentityProvider
133 } // namespace Aws
Aws::CognitoIdentityProvider::Model::AttributeType::GetName
const Aws::String & GetName() const
Definition: AttributeType.h:44
CognitoIdentityProvider_EXPORTS.h
Aws::CognitoIdentityProvider::Model::AttributeType::SetName
void SetName(const char *value)
Definition: AttributeType.h:64
Aws::CognitoIdentityProvider::Model::AttributeType
Definition: AttributeType.h:33
Aws::CognitoIdentityProvider::Model::AttributeType::operator=
AttributeType & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::CognitoIdentityProvider::Model::AttributeType::WithName
AttributeType & WithName(const char *value)
Definition: AttributeType.h:79
Aws::CognitoIdentityProvider::Model::AttributeType::SetValue
void SetValue(const Aws::String &value)
Definition: AttributeType.h:95
Aws::CognitoIdentityProvider::Model::AttributeType::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: AttributeType.h:90
Aws::CognitoIdentityProvider::Model::AttributeType::SetValue
void SetValue(const char *value)
Definition: AttributeType.h:105
AWS_COGNITOIDENTITYPROVIDER_API
#define AWS_COGNITOIDENTITYPROVIDER_API
Definition: CognitoIdentityProvider_EXPORTS.h:28
Aws::CognitoIdentityProvider::Model::AttributeType::WithValue
AttributeType & WithValue(const Aws::String &value)
Definition: AttributeType.h:110
Aws::CognitoIdentityProvider::Model::AttributeType::WithValue
AttributeType & WithValue(const char *value)
Definition: AttributeType.h:120
Aws::CognitoIdentityProvider::Model::AttributeType::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::CognitoIdentityProvider::Model::AttributeType::SetName
void SetName(const Aws::String &value)
Definition: AttributeType.h:54
Aws::CognitoIdentityProvider::Model::AttributeType::SetValue
void SetValue(Aws::String &&value)
Definition: AttributeType.h:100
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::CognitoIdentityProvider::Model::AttributeType::WithValue
AttributeType & WithValue(Aws::String &&value)
Definition: AttributeType.h:115
Aws::CognitoIdentityProvider::Model::AttributeType::WithName
AttributeType & WithName(Aws::String &&value)
Definition: AttributeType.h:74
Aws::CognitoIdentityProvider::Model::AttributeType::SetName
void SetName(Aws::String &&value)
Definition: AttributeType.h:59
Aws::CognitoIdentityProvider::Model::AttributeType::AttributeType
AttributeType(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::CognitoIdentityProvider::Model::AttributeType::GetValue
const Aws::String & GetValue() const
Definition: AttributeType.h:85
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CognitoIdentityProvider::Model::AttributeType::NameHasBeenSet
bool NameHasBeenSet() const
Definition: AttributeType.h:49
Aws::CognitoIdentityProvider::Model::AttributeType::AttributeType
AttributeType()
Aws::CognitoIdentityProvider::Model::AttributeType::WithName
AttributeType & WithName(const Aws::String &value)
Definition: AttributeType.h:69