AWS SDK for C++

AWS SDK for C++ Version 1.11.848

Loading...
Searching...
No Matches
AuthScope.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/AuthCodeEntityType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Connect {
22namespace Model {
23
30class AuthScope {
31 public:
32 AWS_CONNECT_API AuthScope() = default;
33 AWS_CONNECT_API AuthScope(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CONNECT_API AuthScope& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::Vector<Aws::String>& GetSecurityProfileIds() const { return m_securityProfileIds; }
43 inline bool SecurityProfileIdsHasBeenSet() const { return m_securityProfileIdsHasBeenSet; }
44 template <typename SecurityProfileIdsT = Aws::Vector<Aws::String>>
45 void SetSecurityProfileIds(SecurityProfileIdsT&& value) {
46 m_securityProfileIdsHasBeenSet = true;
47 m_securityProfileIds = std::forward<SecurityProfileIdsT>(value);
48 }
49 template <typename SecurityProfileIdsT = Aws::Vector<Aws::String>>
50 AuthScope& WithSecurityProfileIds(SecurityProfileIdsT&& value) {
51 SetSecurityProfileIds(std::forward<SecurityProfileIdsT>(value));
52 return *this;
53 }
54 template <typename SecurityProfileIdsT = Aws::String>
55 AuthScope& AddSecurityProfileIds(SecurityProfileIdsT&& value) {
56 m_securityProfileIdsHasBeenSet = true;
57 m_securityProfileIds.emplace_back(std::forward<SecurityProfileIdsT>(value));
58 return *this;
59 }
61
63
66 inline AuthCodeEntityType GetEntityType() const { return m_entityType; }
67 inline bool EntityTypeHasBeenSet() const { return m_entityTypeHasBeenSet; }
68 inline void SetEntityType(AuthCodeEntityType value) {
69 m_entityTypeHasBeenSet = true;
70 m_entityType = value;
71 }
73 SetEntityType(value);
74 return *this;
75 }
77
79
82 inline const Aws::String& GetEntityId() const { return m_entityId; }
83 inline bool EntityIdHasBeenSet() const { return m_entityIdHasBeenSet; }
84 template <typename EntityIdT = Aws::String>
85 void SetEntityId(EntityIdT&& value) {
86 m_entityIdHasBeenSet = true;
87 m_entityId = std::forward<EntityIdT>(value);
88 }
89 template <typename EntityIdT = Aws::String>
90 AuthScope& WithEntityId(EntityIdT&& value) {
91 SetEntityId(std::forward<EntityIdT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetDomainName() const { return m_domainName; }
101 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
102 template <typename DomainNameT = Aws::String>
103 void SetDomainName(DomainNameT&& value) {
104 m_domainNameHasBeenSet = true;
105 m_domainName = std::forward<DomainNameT>(value);
106 }
107 template <typename DomainNameT = Aws::String>
108 AuthScope& WithDomainName(DomainNameT&& value) {
109 SetDomainName(std::forward<DomainNameT>(value));
110 return *this;
111 }
113 private:
114 Aws::Vector<Aws::String> m_securityProfileIds;
115
117
118 Aws::String m_entityId;
119
120 Aws::String m_domainName;
121 bool m_securityProfileIdsHasBeenSet = false;
122 bool m_entityTypeHasBeenSet = false;
123 bool m_entityIdHasBeenSet = false;
124 bool m_domainNameHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace Connect
129} // namespace Aws
bool SecurityProfileIdsHasBeenSet() const
Definition AuthScope.h:43
AuthCodeEntityType GetEntityType() const
Definition AuthScope.h:66
bool EntityTypeHasBeenSet() const
Definition AuthScope.h:67
AuthScope & WithSecurityProfileIds(SecurityProfileIdsT &&value)
Definition AuthScope.h:50
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEntityType(AuthCodeEntityType value)
Definition AuthScope.h:68
AuthScope & WithEntityId(EntityIdT &&value)
Definition AuthScope.h:90
const Aws::Vector< Aws::String > & GetSecurityProfileIds() const
Definition AuthScope.h:42
void SetDomainName(DomainNameT &&value)
Definition AuthScope.h:103
const Aws::String & GetDomainName() const
Definition AuthScope.h:100
void SetEntityId(EntityIdT &&value)
Definition AuthScope.h:85
const Aws::String & GetEntityId() const
Definition AuthScope.h:82
AWS_CONNECT_API AuthScope(Aws::Utils::Json::JsonView jsonValue)
AuthScope & WithEntityType(AuthCodeEntityType value)
Definition AuthScope.h:72
AuthScope & AddSecurityProfileIds(SecurityProfileIdsT &&value)
Definition AuthScope.h:55
void SetSecurityProfileIds(SecurityProfileIdsT &&value)
Definition AuthScope.h:45
AuthScope & WithDomainName(DomainNameT &&value)
Definition AuthScope.h:108
AWS_CONNECT_API AuthScope & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API AuthScope()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue