AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
GetInvitationResult.h
1
6#pragma once
7#include <aws/assurance/Assurance_EXPORTS.h>
8#include <aws/assurance/model/InvitationStatus.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/crt/cbor/Cbor.h>
13
14#include <utility>
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Cbor {
21class CborValue;
22} // namespace Cbor
23} // namespace Utils
24namespace Assurance {
25namespace Model {
27 public:
28 AWS_ASSURANCE_API GetInvitationResult() = default;
31
33
37 inline const Aws::String& GetEnvironmentArn() const { return m_environmentArn; }
38 template <typename EnvironmentArnT = Aws::String>
39 void SetEnvironmentArn(EnvironmentArnT&& value) {
40 m_environmentArnHasBeenSet = true;
41 m_environmentArn = std::forward<EnvironmentArnT>(value);
42 }
43 template <typename EnvironmentArnT = Aws::String>
44 GetInvitationResult& WithEnvironmentArn(EnvironmentArnT&& value) {
45 SetEnvironmentArn(std::forward<EnvironmentArnT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetInviteeAccountId() const { return m_inviteeAccountId; }
55 template <typename InviteeAccountIdT = Aws::String>
56 void SetInviteeAccountId(InviteeAccountIdT&& value) {
57 m_inviteeAccountIdHasBeenSet = true;
58 m_inviteeAccountId = std::forward<InviteeAccountIdT>(value);
59 }
60 template <typename InviteeAccountIdT = Aws::String>
61 GetInvitationResult& WithInviteeAccountId(InviteeAccountIdT&& value) {
62 SetInviteeAccountId(std::forward<InviteeAccountIdT>(value));
63 return *this;
64 }
66
68
71 inline InvitationStatus GetStatus() const { return m_status; }
72 inline void SetStatus(InvitationStatus value) {
73 m_statusHasBeenSet = true;
74 m_status = value;
75 }
77 SetStatus(value);
78 return *this;
79 }
81
83
87 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
88 template <typename RoleArnT = Aws::String>
89 void SetRoleArn(RoleArnT&& value) {
90 m_roleArnHasBeenSet = true;
91 m_roleArn = std::forward<RoleArnT>(value);
92 }
93 template <typename RoleArnT = Aws::String>
94 GetInvitationResult& WithRoleArn(RoleArnT&& value) {
95 SetRoleArn(std::forward<RoleArnT>(value));
96 return *this;
97 }
99
101
106 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
107 template <typename CreatedAtT = Aws::Utils::DateTime>
108 void SetCreatedAt(CreatedAtT&& value) {
109 m_createdAtHasBeenSet = true;
110 m_createdAt = std::forward<CreatedAtT>(value);
111 }
112 template <typename CreatedAtT = Aws::Utils::DateTime>
113 GetInvitationResult& WithCreatedAt(CreatedAtT&& value) {
114 SetCreatedAt(std::forward<CreatedAtT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::Utils::DateTime& GetExpiresAt() const { return m_expiresAt; }
124 template <typename ExpiresAtT = Aws::Utils::DateTime>
125 void SetExpiresAt(ExpiresAtT&& value) {
126 m_expiresAtHasBeenSet = true;
127 m_expiresAt = std::forward<ExpiresAtT>(value);
128 }
129 template <typename ExpiresAtT = Aws::Utils::DateTime>
130 GetInvitationResult& WithExpiresAt(ExpiresAtT&& value) {
131 SetExpiresAt(std::forward<ExpiresAtT>(value));
132 return *this;
133 }
135
137
141 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
142 template <typename UpdatedAtT = Aws::Utils::DateTime>
143 void SetUpdatedAt(UpdatedAtT&& value) {
144 m_updatedAtHasBeenSet = true;
145 m_updatedAt = std::forward<UpdatedAtT>(value);
146 }
147 template <typename UpdatedAtT = Aws::Utils::DateTime>
148 GetInvitationResult& WithUpdatedAt(UpdatedAtT&& value) {
149 SetUpdatedAt(std::forward<UpdatedAtT>(value));
150 return *this;
151 }
153
155
156 inline const Aws::String& GetRequestId() const { return m_requestId; }
157 template <typename RequestIdT = Aws::String>
158 void SetRequestId(RequestIdT&& value) {
159 m_requestIdHasBeenSet = true;
160 m_requestId = std::forward<RequestIdT>(value);
161 }
162 template <typename RequestIdT = Aws::String>
163 GetInvitationResult& WithRequestId(RequestIdT&& value) {
164 SetRequestId(std::forward<RequestIdT>(value));
165 return *this;
166 }
168 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
169
170 private:
171 Aws::String m_environmentArn;
172
173 Aws::String m_inviteeAccountId;
174
176
177 Aws::String m_roleArn;
178
179 Aws::Utils::DateTime m_createdAt{};
180
181 Aws::Utils::DateTime m_expiresAt{};
182
183 Aws::Utils::DateTime m_updatedAt{};
184
185 Aws::String m_requestId;
186 Aws::Http::HttpResponseCode m_HttpResponseCode;
187 bool m_environmentArnHasBeenSet = false;
188 bool m_inviteeAccountIdHasBeenSet = false;
189 bool m_statusHasBeenSet = false;
190 bool m_roleArnHasBeenSet = false;
191 bool m_createdAtHasBeenSet = false;
192 bool m_expiresAtHasBeenSet = false;
193 bool m_updatedAtHasBeenSet = false;
194 bool m_requestIdHasBeenSet = false;
195};
196
197} // namespace Model
198} // namespace Assurance
199} // namespace Aws
const Aws::Utils::DateTime & GetCreatedAt() const
GetInvitationResult & WithRoleArn(RoleArnT &&value)
GetInvitationResult & WithUpdatedAt(UpdatedAtT &&value)
AWS_ASSURANCE_API GetInvitationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
AWS_ASSURANCE_API GetInvitationResult()=default
void SetEnvironmentArn(EnvironmentArnT &&value)
GetInvitationResult & WithEnvironmentArn(EnvironmentArnT &&value)
GetInvitationResult & WithRequestId(RequestIdT &&value)
AWS_ASSURANCE_API GetInvitationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Cbor::CborValue > &result)
const Aws::String & GetInviteeAccountId() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetInvitationResult & WithInviteeAccountId(InviteeAccountIdT &&value)
const Aws::Utils::DateTime & GetExpiresAt() const
void SetInviteeAccountId(InviteeAccountIdT &&value)
GetInvitationResult & WithCreatedAt(CreatedAtT &&value)
GetInvitationResult & WithStatus(InvitationStatus value)
const Aws::Utils::DateTime & GetUpdatedAt() const
GetInvitationResult & WithExpiresAt(ExpiresAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String