AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename CreationTimeT = Aws::Utils::DateTime>
51 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
52 template<typename CreationTimeT = Aws::Utils::DateTime>
53 ProfileAssociation& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
55
57
60 inline const Aws::String& GetId() const { return m_id; }
61 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
62 template<typename IdT = Aws::String>
63 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
64 template<typename IdT = Aws::String>
65 ProfileAssociation& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
67
69
73 inline const Aws::Utils::DateTime& GetModificationTime() const { return m_modificationTime; }
74 inline bool ModificationTimeHasBeenSet() const { return m_modificationTimeHasBeenSet; }
75 template<typename ModificationTimeT = Aws::Utils::DateTime>
76 void SetModificationTime(ModificationTimeT&& value) { m_modificationTimeHasBeenSet = true; m_modificationTime = std::forward<ModificationTimeT>(value); }
77 template<typename ModificationTimeT = Aws::Utils::DateTime>
78 ProfileAssociation& WithModificationTime(ModificationTimeT&& value) { SetModificationTime(std::forward<ModificationTimeT>(value)); return *this;}
80
82
85 inline const Aws::String& GetName() const { return m_name; }
86 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
87 template<typename NameT = Aws::String>
88 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
89 template<typename NameT = Aws::String>
90 ProfileAssociation& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
92
94
97 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
98 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
99 template<typename OwnerIdT = Aws::String>
100 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
101 template<typename OwnerIdT = Aws::String>
102 ProfileAssociation& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
104
106
109 inline const Aws::String& GetProfileId() const { return m_profileId; }
110 inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; }
111 template<typename ProfileIdT = Aws::String>
112 void SetProfileId(ProfileIdT&& value) { m_profileIdHasBeenSet = true; m_profileId = std::forward<ProfileIdT>(value); }
113 template<typename ProfileIdT = Aws::String>
114 ProfileAssociation& WithProfileId(ProfileIdT&& value) { SetProfileId(std::forward<ProfileIdT>(value)); return *this;}
116
118
121 inline const Aws::String& GetResourceId() const { return m_resourceId; }
122 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
123 template<typename ResourceIdT = Aws::String>
124 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
125 template<typename ResourceIdT = Aws::String>
126 ProfileAssociation& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
128
130
133 inline ProfileStatus GetStatus() const { return m_status; }
134 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
135 inline void SetStatus(ProfileStatus value) { m_statusHasBeenSet = true; m_status = value; }
136 inline ProfileAssociation& WithStatus(ProfileStatus value) { SetStatus(value); return *this;}
138
140
143 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
144 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
145 template<typename StatusMessageT = Aws::String>
146 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::forward<StatusMessageT>(value); }
147 template<typename StatusMessageT = Aws::String>
148 ProfileAssociation& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
150 private:
151
152 Aws::Utils::DateTime m_creationTime{};
153 bool m_creationTimeHasBeenSet = false;
154
155 Aws::String m_id;
156 bool m_idHasBeenSet = false;
157
158 Aws::Utils::DateTime m_modificationTime{};
159 bool m_modificationTimeHasBeenSet = false;
160
161 Aws::String m_name;
162 bool m_nameHasBeenSet = false;
163
164 Aws::String m_ownerId;
165 bool m_ownerIdHasBeenSet = false;
166
167 Aws::String m_profileId;
168 bool m_profileIdHasBeenSet = false;
169
170 Aws::String m_resourceId;
171 bool m_resourceIdHasBeenSet = false;
172
174 bool m_statusHasBeenSet = false;
175
176 Aws::String m_statusMessage;
177 bool m_statusMessageHasBeenSet = false;
178 };
179
180} // namespace Model
181} // namespace Route53Profiles
182} // namespace Aws
AWS_ROUTE53PROFILES_API ProfileAssociation & operator=(Aws::Utils::Json::JsonView jsonValue)
ProfileAssociation & WithOwnerId(OwnerIdT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
ProfileAssociation & WithModificationTime(ModificationTimeT &&value)
ProfileAssociation & WithStatusMessage(StatusMessageT &&value)
ProfileAssociation & WithCreationTime(CreationTimeT &&value)
AWS_ROUTE53PROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ROUTE53PROFILES_API ProfileAssociation(Aws::Utils::Json::JsonView jsonValue)
void SetModificationTime(ModificationTimeT &&value)
ProfileAssociation & WithResourceId(ResourceIdT &&value)
ProfileAssociation & WithProfileId(ProfileIdT &&value)
const Aws::Utils::DateTime & GetModificationTime() const
ProfileAssociation & WithName(NameT &&value)
AWS_ROUTE53PROFILES_API ProfileAssociation()=default
ProfileAssociation & WithStatus(ProfileStatus value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue