AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssociatedPermission.h
1
6#pragma once
7#include <aws/ram/RAM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ram/model/PermissionFeatureSet.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace RAM
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_RAM_API AssociatedPermission();
41
42
44
49 inline const Aws::String& GetArn() const{ return m_arn; }
50 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
51 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
52 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
53 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
54 inline AssociatedPermission& WithArn(const Aws::String& value) { SetArn(value); return *this;}
55 inline AssociatedPermission& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
56 inline AssociatedPermission& WithArn(const char* value) { SetArn(value); return *this;}
58
60
64 inline const Aws::String& GetPermissionVersion() const{ return m_permissionVersion; }
65 inline bool PermissionVersionHasBeenSet() const { return m_permissionVersionHasBeenSet; }
66 inline void SetPermissionVersion(const Aws::String& value) { m_permissionVersionHasBeenSet = true; m_permissionVersion = value; }
67 inline void SetPermissionVersion(Aws::String&& value) { m_permissionVersionHasBeenSet = true; m_permissionVersion = std::move(value); }
68 inline void SetPermissionVersion(const char* value) { m_permissionVersionHasBeenSet = true; m_permissionVersion.assign(value); }
69 inline AssociatedPermission& WithPermissionVersion(const Aws::String& value) { SetPermissionVersion(value); return *this;}
70 inline AssociatedPermission& WithPermissionVersion(Aws::String&& value) { SetPermissionVersion(std::move(value)); return *this;}
71 inline AssociatedPermission& WithPermissionVersion(const char* value) { SetPermissionVersion(value); return *this;}
73
75
79 inline bool GetDefaultVersion() const{ return m_defaultVersion; }
80 inline bool DefaultVersionHasBeenSet() const { return m_defaultVersionHasBeenSet; }
81 inline void SetDefaultVersion(bool value) { m_defaultVersionHasBeenSet = true; m_defaultVersion = value; }
82 inline AssociatedPermission& WithDefaultVersion(bool value) { SetDefaultVersion(value); return *this;}
84
86
89 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
90 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
91 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
92 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
93 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
94 inline AssociatedPermission& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
95 inline AssociatedPermission& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
96 inline AssociatedPermission& WithResourceType(const char* value) { SetResourceType(value); return *this;}
98
100
110 inline const Aws::String& GetStatus() const{ return m_status; }
111 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
112 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
113 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
114 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
115 inline AssociatedPermission& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
116 inline AssociatedPermission& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
117 inline AssociatedPermission& WithStatus(const char* value) { SetStatus(value); return *this;}
119
121
141 inline const PermissionFeatureSet& GetFeatureSet() const{ return m_featureSet; }
142 inline bool FeatureSetHasBeenSet() const { return m_featureSetHasBeenSet; }
143 inline void SetFeatureSet(const PermissionFeatureSet& value) { m_featureSetHasBeenSet = true; m_featureSet = value; }
144 inline void SetFeatureSet(PermissionFeatureSet&& value) { m_featureSetHasBeenSet = true; m_featureSet = std::move(value); }
145 inline AssociatedPermission& WithFeatureSet(const PermissionFeatureSet& value) { SetFeatureSet(value); return *this;}
146 inline AssociatedPermission& WithFeatureSet(PermissionFeatureSet&& value) { SetFeatureSet(std::move(value)); return *this;}
148
150
154 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; }
155 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
156 inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; }
157 inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); }
159 inline AssociatedPermission& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;}
161
163
168 inline const Aws::String& GetResourceShareArn() const{ return m_resourceShareArn; }
169 inline bool ResourceShareArnHasBeenSet() const { return m_resourceShareArnHasBeenSet; }
170 inline void SetResourceShareArn(const Aws::String& value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn = value; }
171 inline void SetResourceShareArn(Aws::String&& value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn = std::move(value); }
172 inline void SetResourceShareArn(const char* value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn.assign(value); }
173 inline AssociatedPermission& WithResourceShareArn(const Aws::String& value) { SetResourceShareArn(value); return *this;}
174 inline AssociatedPermission& WithResourceShareArn(Aws::String&& value) { SetResourceShareArn(std::move(value)); return *this;}
175 inline AssociatedPermission& WithResourceShareArn(const char* value) { SetResourceShareArn(value); return *this;}
177 private:
178
179 Aws::String m_arn;
180 bool m_arnHasBeenSet = false;
181
182 Aws::String m_permissionVersion;
183 bool m_permissionVersionHasBeenSet = false;
184
185 bool m_defaultVersion;
186 bool m_defaultVersionHasBeenSet = false;
187
188 Aws::String m_resourceType;
189 bool m_resourceTypeHasBeenSet = false;
190
191 Aws::String m_status;
192 bool m_statusHasBeenSet = false;
193
194 PermissionFeatureSet m_featureSet;
195 bool m_featureSetHasBeenSet = false;
196
197 Aws::Utils::DateTime m_lastUpdatedTime;
198 bool m_lastUpdatedTimeHasBeenSet = false;
199
200 Aws::String m_resourceShareArn;
201 bool m_resourceShareArnHasBeenSet = false;
202 };
203
204} // namespace Model
205} // namespace RAM
206} // namespace Aws
const Aws::Utils::DateTime & GetLastUpdatedTime() const
void SetResourceShareArn(Aws::String &&value)
AssociatedPermission & WithLastUpdatedTime(Aws::Utils::DateTime &&value)
AssociatedPermission & WithDefaultVersion(bool value)
AssociatedPermission & WithStatus(const char *value)
void SetFeatureSet(PermissionFeatureSet &&value)
const Aws::String & GetResourceShareArn() const
void SetLastUpdatedTime(const Aws::Utils::DateTime &value)
AssociatedPermission & WithStatus(Aws::String &&value)
void SetLastUpdatedTime(Aws::Utils::DateTime &&value)
void SetStatus(const Aws::String &value)
void SetPermissionVersion(const Aws::String &value)
AWS_RAM_API AssociatedPermission & operator=(Aws::Utils::Json::JsonView jsonValue)
AssociatedPermission & WithResourceShareArn(const char *value)
void SetArn(const Aws::String &value)
AssociatedPermission & WithStatus(const Aws::String &value)
const PermissionFeatureSet & GetFeatureSet() const
AssociatedPermission & WithFeatureSet(const PermissionFeatureSet &value)
AssociatedPermission & WithArn(Aws::String &&value)
AssociatedPermission & WithResourceType(Aws::String &&value)
AssociatedPermission & WithArn(const char *value)
AWS_RAM_API AssociatedPermission(Aws::Utils::Json::JsonView jsonValue)
AWS_RAM_API Aws::Utils::Json::JsonValue Jsonize() const
AssociatedPermission & WithResourceShareArn(Aws::String &&value)
AssociatedPermission & WithPermissionVersion(Aws::String &&value)
AssociatedPermission & WithLastUpdatedTime(const Aws::Utils::DateTime &value)
const Aws::String & GetResourceType() const
AssociatedPermission & WithResourceType(const Aws::String &value)
const Aws::String & GetPermissionVersion() const
AssociatedPermission & WithPermissionVersion(const char *value)
AssociatedPermission & WithPermissionVersion(const Aws::String &value)
AssociatedPermission & WithFeatureSet(PermissionFeatureSet &&value)
AssociatedPermission & WithResourceType(const char *value)
void SetResourceType(const Aws::String &value)
void SetResourceShareArn(const Aws::String &value)
void SetFeatureSet(const PermissionFeatureSet &value)
AssociatedPermission & WithResourceShareArn(const Aws::String &value)
AssociatedPermission & WithArn(const Aws::String &value)
void SetPermissionVersion(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue