AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Principal.h
1
6#pragma once
7#include <aws/ram/RAM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.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 RAM
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_RAM_API Principal();
37 AWS_RAM_API Principal(Aws::Utils::Json::JsonView jsonValue);
40
41
43
46 inline const Aws::String& GetId() const{ return m_id; }
47 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
48 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
49 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
50 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
51 inline Principal& WithId(const Aws::String& value) { SetId(value); return *this;}
52 inline Principal& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
53 inline Principal& WithId(const char* value) { SetId(value); return *this;}
55
57
63 inline const Aws::String& GetResourceShareArn() const{ return m_resourceShareArn; }
64 inline bool ResourceShareArnHasBeenSet() const { return m_resourceShareArnHasBeenSet; }
65 inline void SetResourceShareArn(const Aws::String& value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn = value; }
66 inline void SetResourceShareArn(Aws::String&& value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn = std::move(value); }
67 inline void SetResourceShareArn(const char* value) { m_resourceShareArnHasBeenSet = true; m_resourceShareArn.assign(value); }
68 inline Principal& WithResourceShareArn(const Aws::String& value) { SetResourceShareArn(value); return *this;}
69 inline Principal& WithResourceShareArn(Aws::String&& value) { SetResourceShareArn(std::move(value)); return *this;}
70 inline Principal& WithResourceShareArn(const char* value) { SetResourceShareArn(value); return *this;}
72
74
78 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
79 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
80 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
81 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
82 inline Principal& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
83 inline Principal& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
85
87
91 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; }
92 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
93 inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; }
94 inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); }
95 inline Principal& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;}
96 inline Principal& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;}
98
100
107 inline bool GetExternal() const{ return m_external; }
108 inline bool ExternalHasBeenSet() const { return m_externalHasBeenSet; }
109 inline void SetExternal(bool value) { m_externalHasBeenSet = true; m_external = value; }
110 inline Principal& WithExternal(bool value) { SetExternal(value); return *this;}
112 private:
113
114 Aws::String m_id;
115 bool m_idHasBeenSet = false;
116
117 Aws::String m_resourceShareArn;
118 bool m_resourceShareArnHasBeenSet = false;
119
120 Aws::Utils::DateTime m_creationTime;
121 bool m_creationTimeHasBeenSet = false;
122
123 Aws::Utils::DateTime m_lastUpdatedTime;
124 bool m_lastUpdatedTimeHasBeenSet = false;
125
126 bool m_external;
127 bool m_externalHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace RAM
132} // namespace Aws
bool ExternalHasBeenSet() const
Definition Principal.h:108
void SetExternal(bool value)
Definition Principal.h:109
bool LastUpdatedTimeHasBeenSet() const
Definition Principal.h:92
Principal & WithResourceShareArn(Aws::String &&value)
Definition Principal.h:69
Principal & WithResourceShareArn(const char *value)
Definition Principal.h:70
bool IdHasBeenSet() const
Definition Principal.h:47
void SetCreationTime(const Aws::Utils::DateTime &value)
Definition Principal.h:80
const Aws::String & GetResourceShareArn() const
Definition Principal.h:63
Principal & WithLastUpdatedTime(Aws::Utils::DateTime &&value)
Definition Principal.h:96
Principal & WithId(Aws::String &&value)
Definition Principal.h:52
const Aws::String & GetId() const
Definition Principal.h:46
void SetLastUpdatedTime(Aws::Utils::DateTime &&value)
Definition Principal.h:94
void SetCreationTime(Aws::Utils::DateTime &&value)
Definition Principal.h:81
Principal & WithResourceShareArn(const Aws::String &value)
Definition Principal.h:68
Principal & WithCreationTime(Aws::Utils::DateTime &&value)
Definition Principal.h:83
void SetResourceShareArn(Aws::String &&value)
Definition Principal.h:66
void SetId(const char *value)
Definition Principal.h:50
AWS_RAM_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_RAM_API Principal & operator=(Aws::Utils::Json::JsonView jsonValue)
bool ResourceShareArnHasBeenSet() const
Definition Principal.h:64
const Aws::Utils::DateTime & GetLastUpdatedTime() const
Definition Principal.h:91
Principal & WithCreationTime(const Aws::Utils::DateTime &value)
Definition Principal.h:82
AWS_RAM_API Principal(Aws::Utils::Json::JsonView jsonValue)
bool CreationTimeHasBeenSet() const
Definition Principal.h:79
Principal & WithId(const Aws::String &value)
Definition Principal.h:51
Principal & WithLastUpdatedTime(const Aws::Utils::DateTime &value)
Definition Principal.h:95
Principal & WithExternal(bool value)
Definition Principal.h:110
Principal & WithId(const char *value)
Definition Principal.h:53
void SetResourceShareArn(const char *value)
Definition Principal.h:67
const Aws::Utils::DateTime & GetCreationTime() const
Definition Principal.h:78
void SetResourceShareArn(const Aws::String &value)
Definition Principal.h:65
void SetId(Aws::String &&value)
Definition Principal.h:49
void SetId(const Aws::String &value)
Definition Principal.h:48
void SetLastUpdatedTime(const Aws::Utils::DateTime &value)
Definition Principal.h:93
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue