AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AccessControlAttribute.h
1
6#pragma once
7#include <aws/sso-admin/SSOAdmin_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sso-admin/model/AccessControlAttributeValue.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SSOAdmin
23{
24namespace Model
25{
26
39 {
40 public:
41 AWS_SSOADMIN_API AccessControlAttribute();
44 AWS_SSOADMIN_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
53 inline const Aws::String& GetKey() const{ return m_key; }
54 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
55 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
56 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
57 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
58 inline AccessControlAttribute& WithKey(const Aws::String& value) { SetKey(value); return *this;}
59 inline AccessControlAttribute& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
60 inline AccessControlAttribute& WithKey(const char* value) { SetKey(value); return *this;}
62
64
67 inline const AccessControlAttributeValue& GetValue() const{ return m_value; }
68 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
69 inline void SetValue(const AccessControlAttributeValue& value) { m_valueHasBeenSet = true; m_value = value; }
70 inline void SetValue(AccessControlAttributeValue&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
71 inline AccessControlAttribute& WithValue(const AccessControlAttributeValue& value) { SetValue(value); return *this;}
72 inline AccessControlAttribute& WithValue(AccessControlAttributeValue&& value) { SetValue(std::move(value)); return *this;}
74 private:
75
76 Aws::String m_key;
77 bool m_keyHasBeenSet = false;
78
80 bool m_valueHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace SSOAdmin
85} // namespace Aws
AccessControlAttribute & WithValue(AccessControlAttributeValue &&value)
void SetValue(AccessControlAttributeValue &&value)
const AccessControlAttributeValue & GetValue() const
AccessControlAttribute & WithKey(const char *value)
AWS_SSOADMIN_API AccessControlAttribute & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SSOADMIN_API AccessControlAttribute(Aws::Utils::Json::JsonView jsonValue)
AccessControlAttribute & WithKey(const Aws::String &value)
void SetValue(const AccessControlAttributeValue &value)
AccessControlAttribute & WithKey(Aws::String &&value)
AccessControlAttribute & WithValue(const AccessControlAttributeValue &value)
AWS_SSOADMIN_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue