AWS SDK for C++

AWS SDK for C++ Version 1.11.773

Loading...
Searching...
No Matches
PolicyStoreAliasItem.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/verifiedpermissions/VerifiedPermissions_EXPORTS.h>
10#include <aws/verifiedpermissions/model/AliasState.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace VerifiedPermissions {
22namespace Model {
23
33 public:
34 AWS_VERIFIEDPERMISSIONS_API PolicyStoreAliasItem() = default;
35 AWS_VERIFIEDPERMISSIONS_API PolicyStoreAliasItem(Aws::Utils::Json::JsonView jsonValue);
36 AWS_VERIFIEDPERMISSIONS_API PolicyStoreAliasItem& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetAliasName() const { return m_aliasName; }
44 inline bool AliasNameHasBeenSet() const { return m_aliasNameHasBeenSet; }
45 template <typename AliasNameT = Aws::String>
46 void SetAliasName(AliasNameT&& value) {
47 m_aliasNameHasBeenSet = true;
48 m_aliasName = std::forward<AliasNameT>(value);
49 }
50 template <typename AliasNameT = Aws::String>
51 PolicyStoreAliasItem& WithAliasName(AliasNameT&& value) {
52 SetAliasName(std::forward<AliasNameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetPolicyStoreId() const { return m_policyStoreId; }
62 inline bool PolicyStoreIdHasBeenSet() const { return m_policyStoreIdHasBeenSet; }
63 template <typename PolicyStoreIdT = Aws::String>
64 void SetPolicyStoreId(PolicyStoreIdT&& value) {
65 m_policyStoreIdHasBeenSet = true;
66 m_policyStoreId = std::forward<PolicyStoreIdT>(value);
67 }
68 template <typename PolicyStoreIdT = Aws::String>
69 PolicyStoreAliasItem& WithPolicyStoreId(PolicyStoreIdT&& value) {
70 SetPolicyStoreId(std::forward<PolicyStoreIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetAliasArn() const { return m_aliasArn; }
80 inline bool AliasArnHasBeenSet() const { return m_aliasArnHasBeenSet; }
81 template <typename AliasArnT = Aws::String>
82 void SetAliasArn(AliasArnT&& value) {
83 m_aliasArnHasBeenSet = true;
84 m_aliasArn = std::forward<AliasArnT>(value);
85 }
86 template <typename AliasArnT = Aws::String>
87 PolicyStoreAliasItem& WithAliasArn(AliasArnT&& value) {
88 SetAliasArn(std::forward<AliasArnT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
98 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
99 template <typename CreatedAtT = Aws::Utils::DateTime>
100 void SetCreatedAt(CreatedAtT&& value) {
101 m_createdAtHasBeenSet = true;
102 m_createdAt = std::forward<CreatedAtT>(value);
103 }
104 template <typename CreatedAtT = Aws::Utils::DateTime>
105 PolicyStoreAliasItem& WithCreatedAt(CreatedAtT&& value) {
106 SetCreatedAt(std::forward<CreatedAtT>(value));
107 return *this;
108 }
110
112
119 inline AliasState GetState() const { return m_state; }
120 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
121 inline void SetState(AliasState value) {
122 m_stateHasBeenSet = true;
123 m_state = value;
124 }
126 SetState(value);
127 return *this;
128 }
130 private:
131 Aws::String m_aliasName;
132
133 Aws::String m_policyStoreId;
134
135 Aws::String m_aliasArn;
136
137 Aws::Utils::DateTime m_createdAt{};
138
140 bool m_aliasNameHasBeenSet = false;
141 bool m_policyStoreIdHasBeenSet = false;
142 bool m_aliasArnHasBeenSet = false;
143 bool m_createdAtHasBeenSet = false;
144 bool m_stateHasBeenSet = false;
145};
146
147} // namespace Model
148} // namespace VerifiedPermissions
149} // namespace Aws
PolicyStoreAliasItem & WithAliasName(AliasNameT &&value)
AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const
PolicyStoreAliasItem & WithPolicyStoreId(PolicyStoreIdT &&value)
PolicyStoreAliasItem & WithCreatedAt(CreatedAtT &&value)
PolicyStoreAliasItem & WithState(AliasState value)
AWS_VERIFIEDPERMISSIONS_API PolicyStoreAliasItem()=default
AWS_VERIFIEDPERMISSIONS_API PolicyStoreAliasItem(Aws::Utils::Json::JsonView jsonValue)
AWS_VERIFIEDPERMISSIONS_API PolicyStoreAliasItem & operator=(Aws::Utils::Json::JsonView jsonValue)
PolicyStoreAliasItem & WithAliasArn(AliasArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue