AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ProfileAssociation.h
1
6#pragma once
7#include <aws/route53profiles/Route53Profiles_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/route53profiles/model/ProfileStatus.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 Route53Profiles
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_ROUTE53PROFILES_API ProfileAssociation();
38 AWS_ROUTE53PROFILES_API ProfileAssociation(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ROUTE53PROFILES_API ProfileAssociation& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ROUTE53PROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
49 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
50 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
51 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
52 inline ProfileAssociation& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
53 inline ProfileAssociation& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
55
57
60 inline const Aws::String& GetId() const{ return m_id; }
61 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
62 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
63 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
64 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
65 inline ProfileAssociation& WithId(const Aws::String& value) { SetId(value); return *this;}
66 inline ProfileAssociation& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
67 inline ProfileAssociation& WithId(const char* value) { SetId(value); return *this;}
69
71
75 inline const Aws::Utils::DateTime& GetModificationTime() const{ return m_modificationTime; }
76 inline bool ModificationTimeHasBeenSet() const { return m_modificationTimeHasBeenSet; }
77 inline void SetModificationTime(const Aws::Utils::DateTime& value) { m_modificationTimeHasBeenSet = true; m_modificationTime = value; }
78 inline void SetModificationTime(Aws::Utils::DateTime&& value) { m_modificationTimeHasBeenSet = true; m_modificationTime = std::move(value); }
80 inline ProfileAssociation& WithModificationTime(Aws::Utils::DateTime&& value) { SetModificationTime(std::move(value)); return *this;}
82
84
87 inline const Aws::String& GetName() const{ return m_name; }
88 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
89 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
90 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
91 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
92 inline ProfileAssociation& WithName(const Aws::String& value) { SetName(value); return *this;}
93 inline ProfileAssociation& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
94 inline ProfileAssociation& WithName(const char* value) { SetName(value); return *this;}
96
98
101 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
102 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
103 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
104 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
105 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
106 inline ProfileAssociation& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
107 inline ProfileAssociation& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
108 inline ProfileAssociation& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
110
112
115 inline const Aws::String& GetProfileId() const{ return m_profileId; }
116 inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; }
117 inline void SetProfileId(const Aws::String& value) { m_profileIdHasBeenSet = true; m_profileId = value; }
118 inline void SetProfileId(Aws::String&& value) { m_profileIdHasBeenSet = true; m_profileId = std::move(value); }
119 inline void SetProfileId(const char* value) { m_profileIdHasBeenSet = true; m_profileId.assign(value); }
120 inline ProfileAssociation& WithProfileId(const Aws::String& value) { SetProfileId(value); return *this;}
121 inline ProfileAssociation& WithProfileId(Aws::String&& value) { SetProfileId(std::move(value)); return *this;}
122 inline ProfileAssociation& WithProfileId(const char* value) { SetProfileId(value); return *this;}
124
126
129 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
130 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
131 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
132 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
133 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
134 inline ProfileAssociation& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
135 inline ProfileAssociation& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
136 inline ProfileAssociation& WithResourceId(const char* value) { SetResourceId(value); return *this;}
138
140
143 inline const ProfileStatus& GetStatus() const{ return m_status; }
144 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
145 inline void SetStatus(const ProfileStatus& value) { m_statusHasBeenSet = true; m_status = value; }
146 inline void SetStatus(ProfileStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
147 inline ProfileAssociation& WithStatus(const ProfileStatus& value) { SetStatus(value); return *this;}
148 inline ProfileAssociation& WithStatus(ProfileStatus&& value) { SetStatus(std::move(value)); return *this;}
150
152
155 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
156 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
157 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
158 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
159 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
160 inline ProfileAssociation& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
161 inline ProfileAssociation& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
162 inline ProfileAssociation& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
164 private:
165
166 Aws::Utils::DateTime m_creationTime;
167 bool m_creationTimeHasBeenSet = false;
168
169 Aws::String m_id;
170 bool m_idHasBeenSet = false;
171
172 Aws::Utils::DateTime m_modificationTime;
173 bool m_modificationTimeHasBeenSet = false;
174
175 Aws::String m_name;
176 bool m_nameHasBeenSet = false;
177
178 Aws::String m_ownerId;
179 bool m_ownerIdHasBeenSet = false;
180
181 Aws::String m_profileId;
182 bool m_profileIdHasBeenSet = false;
183
184 Aws::String m_resourceId;
185 bool m_resourceIdHasBeenSet = false;
186
187 ProfileStatus m_status;
188 bool m_statusHasBeenSet = false;
189
190 Aws::String m_statusMessage;
191 bool m_statusMessageHasBeenSet = false;
192 };
193
194} // namespace Model
195} // namespace Route53Profiles
196} // namespace Aws
ProfileAssociation & WithStatusMessage(Aws::String &&value)
ProfileAssociation & WithProfileId(const char *value)
AWS_ROUTE53PROFILES_API ProfileAssociation & operator=(Aws::Utils::Json::JsonView jsonValue)
ProfileAssociation & WithName(const Aws::String &value)
ProfileAssociation & WithStatus(const ProfileStatus &value)
const Aws::Utils::DateTime & GetCreationTime() const
ProfileAssociation & WithId(Aws::String &&value)
ProfileAssociation & WithStatus(ProfileStatus &&value)
ProfileAssociation & WithProfileId(Aws::String &&value)
ProfileAssociation & WithId(const char *value)
ProfileAssociation & WithId(const Aws::String &value)
ProfileAssociation & WithCreationTime(const Aws::Utils::DateTime &value)
ProfileAssociation & WithOwnerId(Aws::String &&value)
AWS_ROUTE53PROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ROUTE53PROFILES_API ProfileAssociation(Aws::Utils::Json::JsonView jsonValue)
ProfileAssociation & WithModificationTime(Aws::Utils::DateTime &&value)
ProfileAssociation & WithCreationTime(Aws::Utils::DateTime &&value)
ProfileAssociation & WithResourceId(const Aws::String &value)
ProfileAssociation & WithName(Aws::String &&value)
ProfileAssociation & WithResourceId(const char *value)
ProfileAssociation & WithName(const char *value)
ProfileAssociation & WithOwnerId(const char *value)
void SetCreationTime(const Aws::Utils::DateTime &value)
void SetModificationTime(Aws::Utils::DateTime &&value)
void SetCreationTime(Aws::Utils::DateTime &&value)
ProfileAssociation & WithResourceId(Aws::String &&value)
const Aws::Utils::DateTime & GetModificationTime() const
ProfileAssociation & WithProfileId(const Aws::String &value)
ProfileAssociation & WithModificationTime(const Aws::Utils::DateTime &value)
ProfileAssociation & WithStatusMessage(const Aws::String &value)
void SetModificationTime(const Aws::Utils::DateTime &value)
ProfileAssociation & WithStatusMessage(const char *value)
ProfileAssociation & WithOwnerId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue