AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Archive.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mailmanager/MailManager_EXPORTS.h>
10#include <aws/mailmanager/model/ArchiveState.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace MailManager {
22namespace Model {
23
30class Archive {
31 public:
32 AWS_MAILMANAGER_API Archive() = default;
33 AWS_MAILMANAGER_API Archive(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MAILMANAGER_API Archive& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetArchiveId() const { return m_archiveId; }
42 inline bool ArchiveIdHasBeenSet() const { return m_archiveIdHasBeenSet; }
43 template <typename ArchiveIdT = Aws::String>
44 void SetArchiveId(ArchiveIdT&& value) {
45 m_archiveIdHasBeenSet = true;
46 m_archiveId = std::forward<ArchiveIdT>(value);
47 }
48 template <typename ArchiveIdT = Aws::String>
49 Archive& WithArchiveId(ArchiveIdT&& value) {
50 SetArchiveId(std::forward<ArchiveIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetArchiveName() const { return m_archiveName; }
60 inline bool ArchiveNameHasBeenSet() const { return m_archiveNameHasBeenSet; }
61 template <typename ArchiveNameT = Aws::String>
62 void SetArchiveName(ArchiveNameT&& value) {
63 m_archiveNameHasBeenSet = true;
64 m_archiveName = std::forward<ArchiveNameT>(value);
65 }
66 template <typename ArchiveNameT = Aws::String>
67 Archive& WithArchiveName(ArchiveNameT&& value) {
68 SetArchiveName(std::forward<ArchiveNameT>(value));
69 return *this;
70 }
72
74
81 inline ArchiveState GetArchiveState() const { return m_archiveState; }
82 inline bool ArchiveStateHasBeenSet() const { return m_archiveStateHasBeenSet; }
83 inline void SetArchiveState(ArchiveState value) {
84 m_archiveStateHasBeenSet = true;
85 m_archiveState = value;
86 }
88 SetArchiveState(value);
89 return *this;
90 }
92
94
97 inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const { return m_lastUpdatedTimestamp; }
98 inline bool LastUpdatedTimestampHasBeenSet() const { return m_lastUpdatedTimestampHasBeenSet; }
99 template <typename LastUpdatedTimestampT = Aws::Utils::DateTime>
100 void SetLastUpdatedTimestamp(LastUpdatedTimestampT&& value) {
101 m_lastUpdatedTimestampHasBeenSet = true;
102 m_lastUpdatedTimestamp = std::forward<LastUpdatedTimestampT>(value);
103 }
104 template <typename LastUpdatedTimestampT = Aws::Utils::DateTime>
105 Archive& WithLastUpdatedTimestamp(LastUpdatedTimestampT&& value) {
106 SetLastUpdatedTimestamp(std::forward<LastUpdatedTimestampT>(value));
107 return *this;
108 }
110 private:
111 Aws::String m_archiveId;
112
113 Aws::String m_archiveName;
114
115 ArchiveState m_archiveState{ArchiveState::NOT_SET};
116
117 Aws::Utils::DateTime m_lastUpdatedTimestamp{};
118 bool m_archiveIdHasBeenSet = false;
119 bool m_archiveNameHasBeenSet = false;
120 bool m_archiveStateHasBeenSet = false;
121 bool m_lastUpdatedTimestampHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace MailManager
126} // namespace Aws
Archive & WithLastUpdatedTimestamp(LastUpdatedTimestampT &&value)
Definition Archive.h:105
ArchiveState GetArchiveState() const
Definition Archive.h:81
void SetArchiveName(ArchiveNameT &&value)
Definition Archive.h:62
const Aws::Utils::DateTime & GetLastUpdatedTimestamp() const
Definition Archive.h:97
AWS_MAILMANAGER_API Archive(Aws::Utils::Json::JsonView jsonValue)
bool ArchiveNameHasBeenSet() const
Definition Archive.h:60
AWS_MAILMANAGER_API Archive & operator=(Aws::Utils::Json::JsonView jsonValue)
Archive & WithArchiveState(ArchiveState value)
Definition Archive.h:87
const Aws::String & GetArchiveName() const
Definition Archive.h:59
AWS_MAILMANAGER_API Archive()=default
void SetLastUpdatedTimestamp(LastUpdatedTimestampT &&value)
Definition Archive.h:100
void SetArchiveId(ArchiveIdT &&value)
Definition Archive.h:44
void SetArchiveState(ArchiveState value)
Definition Archive.h:83
bool LastUpdatedTimestampHasBeenSet() const
Definition Archive.h:98
const Aws::String & GetArchiveId() const
Definition Archive.h:41
Archive & WithArchiveName(ArchiveNameT &&value)
Definition Archive.h:67
AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
bool ArchiveStateHasBeenSet() const
Definition Archive.h:82
Archive & WithArchiveId(ArchiveIdT &&value)
Definition Archive.h:49
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue