AWS SDK for C++  1.9.104
AWS SDK for C++
AccessControlAttribute.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace SSOAdmin
23 {
24 namespace Model
25 {
26 
39  {
40  public:
45 
46 
52  inline const Aws::String& GetKey() const{ return m_key; }
53 
59  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
60 
66  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
67 
73  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
74 
80  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
81 
87  inline AccessControlAttribute& WithKey(const Aws::String& value) { SetKey(value); return *this;}
88 
94  inline AccessControlAttribute& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
95 
101  inline AccessControlAttribute& WithKey(const char* value) { SetKey(value); return *this;}
102 
103 
107  inline const AccessControlAttributeValue& GetValue() const{ return m_value; }
108 
112  inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
113 
117  inline void SetValue(const AccessControlAttributeValue& value) { m_valueHasBeenSet = true; m_value = value; }
118 
122  inline void SetValue(AccessControlAttributeValue&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
123 
127  inline AccessControlAttribute& WithValue(const AccessControlAttributeValue& value) { SetValue(value); return *this;}
128 
132  inline AccessControlAttribute& WithValue(AccessControlAttributeValue&& value) { SetValue(std::move(value)); return *this;}
133 
134  private:
135 
136  Aws::String m_key;
137  bool m_keyHasBeenSet;
138 
140  bool m_valueHasBeenSet;
141  };
142 
143 } // namespace Model
144 } // namespace SSOAdmin
145 } // namespace Aws
Aws::SSOAdmin::Model::AccessControlAttribute::WithValue
AccessControlAttribute & WithValue(const AccessControlAttributeValue &value)
Definition: AccessControlAttribute.h:127
Aws::SSOAdmin::Model::AccessControlAttribute::ValueHasBeenSet
bool ValueHasBeenSet() const
Definition: AccessControlAttribute.h:112
Aws::SSOAdmin::Model::AccessControlAttribute::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SSOAdmin::Model::AccessControlAttributeValue
Definition: AccessControlAttributeValue.h:34
Aws::SSOAdmin::Model::AccessControlAttribute::SetKey
void SetKey(const Aws::String &value)
Definition: AccessControlAttribute.h:66
Aws::SSOAdmin::Model::AccessControlAttribute::GetKey
const Aws::String & GetKey() const
Definition: AccessControlAttribute.h:52
Aws::SSOAdmin::Model::AccessControlAttribute::WithKey
AccessControlAttribute & WithKey(const Aws::String &value)
Definition: AccessControlAttribute.h:87
Aws::SSOAdmin::Model::AccessControlAttribute
Definition: AccessControlAttribute.h:39
Aws::SSOAdmin::Model::AccessControlAttribute::AccessControlAttribute
AccessControlAttribute()
Aws::SSOAdmin::Model::AccessControlAttribute::WithValue
AccessControlAttribute & WithValue(AccessControlAttributeValue &&value)
Definition: AccessControlAttribute.h:132
AWS_SSOADMIN_API
#define AWS_SSOADMIN_API
Definition: SSOAdmin_EXPORTS.h:28
Aws::SSOAdmin::Model::AccessControlAttribute::AccessControlAttribute
AccessControlAttribute(Aws::Utils::Json::JsonView jsonValue)
Aws::SSOAdmin::Model::AccessControlAttribute::WithKey
AccessControlAttribute & WithKey(const char *value)
Definition: AccessControlAttribute.h:101
Aws::SSOAdmin::Model::AccessControlAttribute::GetValue
const AccessControlAttributeValue & GetValue() const
Definition: AccessControlAttribute.h:107
Aws::SSOAdmin::Model::AccessControlAttribute::WithKey
AccessControlAttribute & WithKey(Aws::String &&value)
Definition: AccessControlAttribute.h:94
SSOAdmin_EXPORTS.h
Aws::SSOAdmin::Model::AccessControlAttribute::SetKey
void SetKey(Aws::String &&value)
Definition: AccessControlAttribute.h:73
Aws::SSOAdmin::Model::AccessControlAttribute::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: AccessControlAttribute.h:59
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::SSOAdmin::Model::AccessControlAttribute::SetValue
void SetValue(AccessControlAttributeValue &&value)
Definition: AccessControlAttribute.h:122
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SSOAdmin::Model::AccessControlAttribute::SetKey
void SetKey(const char *value)
Definition: AccessControlAttribute.h:80
Aws::SSOAdmin::Model::AccessControlAttribute::operator=
AccessControlAttribute & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::SSOAdmin::Model::AccessControlAttribute::SetValue
void SetValue(const AccessControlAttributeValue &value)
Definition: AccessControlAttribute.h:117
AccessControlAttributeValue.h
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97