AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
InvitationSummary.h
1
6#pragma once
7#include <aws/assurance/Assurance_EXPORTS.h>
8#include <aws/assurance/model/InvitationStatus.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/crt/cbor/Cbor.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace Assurance {
22namespace Model {
23
32 public:
33 AWS_ASSURANCE_API InvitationSummary() = default;
34 AWS_ASSURANCE_API InvitationSummary(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_ASSURANCE_API InvitationSummary& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
37
39
42 inline const Aws::String& GetInviteeAccountId() const { return m_inviteeAccountId; }
43 inline bool InviteeAccountIdHasBeenSet() const { return m_inviteeAccountIdHasBeenSet; }
44 template <typename InviteeAccountIdT = Aws::String>
45 void SetInviteeAccountId(InviteeAccountIdT&& value) {
46 m_inviteeAccountIdHasBeenSet = true;
47 m_inviteeAccountId = std::forward<InviteeAccountIdT>(value);
48 }
49 template <typename InviteeAccountIdT = Aws::String>
50 InvitationSummary& WithInviteeAccountId(InviteeAccountIdT&& value) {
51 SetInviteeAccountId(std::forward<InviteeAccountIdT>(value));
52 return *this;
53 }
55
57
60 inline InvitationStatus GetStatus() const { return m_status; }
61 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
62 inline void SetStatus(InvitationStatus value) {
63 m_statusHasBeenSet = true;
64 m_status = value;
65 }
67 SetStatus(value);
68 return *this;
69 }
71
73
77 inline const Aws::Utils::DateTime& GetExpiresAt() const { return m_expiresAt; }
78 inline bool ExpiresAtHasBeenSet() const { return m_expiresAtHasBeenSet; }
79 template <typename ExpiresAtT = Aws::Utils::DateTime>
80 void SetExpiresAt(ExpiresAtT&& value) {
81 m_expiresAtHasBeenSet = true;
82 m_expiresAt = std::forward<ExpiresAtT>(value);
83 }
84 template <typename ExpiresAtT = Aws::Utils::DateTime>
85 InvitationSummary& WithExpiresAt(ExpiresAtT&& value) {
86 SetExpiresAt(std::forward<ExpiresAtT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_inviteeAccountId;
92
94
95 Aws::Utils::DateTime m_expiresAt{};
96 bool m_inviteeAccountIdHasBeenSet = false;
97 bool m_statusHasBeenSet = false;
98 bool m_expiresAtHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace Assurance
103} // namespace Aws
void SetInviteeAccountId(InviteeAccountIdT &&value)
const Aws::String & GetInviteeAccountId() const
InvitationSummary & WithInviteeAccountId(InviteeAccountIdT &&value)
const Aws::Utils::DateTime & GetExpiresAt() const
AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
InvitationSummary & WithExpiresAt(ExpiresAtT &&value)
void SetStatus(InvitationStatus value)
AWS_ASSURANCE_API InvitationSummary & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_ASSURANCE_API InvitationSummary(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
InvitationSummary & WithStatus(InvitationStatus value)
AWS_ASSURANCE_API InvitationSummary()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String