AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Archive.h
1
6#pragma once
7#include <aws/mailmanager/MailManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/mailmanager/model/ArchiveState.h>
10#include <aws/core/utils/DateTime.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 MailManager
24{
25namespace Model
26{
27
34 class Archive
35 {
36 public:
37 AWS_MAILMANAGER_API Archive() = default;
38 AWS_MAILMANAGER_API Archive(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MAILMANAGER_API Archive& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetArchiveId() const { return m_archiveId; }
48 inline bool ArchiveIdHasBeenSet() const { return m_archiveIdHasBeenSet; }
49 template<typename ArchiveIdT = Aws::String>
50 void SetArchiveId(ArchiveIdT&& value) { m_archiveIdHasBeenSet = true; m_archiveId = std::forward<ArchiveIdT>(value); }
51 template<typename ArchiveIdT = Aws::String>
52 Archive& WithArchiveId(ArchiveIdT&& value) { SetArchiveId(std::forward<ArchiveIdT>(value)); return *this;}
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) { m_archiveNameHasBeenSet = true; m_archiveName = std::forward<ArchiveNameT>(value); }
63 template<typename ArchiveNameT = Aws::String>
64 Archive& WithArchiveName(ArchiveNameT&& value) { SetArchiveName(std::forward<ArchiveNameT>(value)); return *this;}
66
68
75 inline ArchiveState GetArchiveState() const { return m_archiveState; }
76 inline bool ArchiveStateHasBeenSet() const { return m_archiveStateHasBeenSet; }
77 inline void SetArchiveState(ArchiveState value) { m_archiveStateHasBeenSet = true; m_archiveState = value; }
78 inline Archive& WithArchiveState(ArchiveState value) { SetArchiveState(value); return *this;}
80
82
85 inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const { return m_lastUpdatedTimestamp; }
86 inline bool LastUpdatedTimestampHasBeenSet() const { return m_lastUpdatedTimestampHasBeenSet; }
87 template<typename LastUpdatedTimestampT = Aws::Utils::DateTime>
88 void SetLastUpdatedTimestamp(LastUpdatedTimestampT&& value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = std::forward<LastUpdatedTimestampT>(value); }
89 template<typename LastUpdatedTimestampT = Aws::Utils::DateTime>
90 Archive& WithLastUpdatedTimestamp(LastUpdatedTimestampT&& value) { SetLastUpdatedTimestamp(std::forward<LastUpdatedTimestampT>(value)); return *this;}
92 private:
93
94 Aws::String m_archiveId;
95 bool m_archiveIdHasBeenSet = false;
96
97 Aws::String m_archiveName;
98 bool m_archiveNameHasBeenSet = false;
99
100 ArchiveState m_archiveState{ArchiveState::NOT_SET};
101 bool m_archiveStateHasBeenSet = false;
102
103 Aws::Utils::DateTime m_lastUpdatedTimestamp{};
104 bool m_lastUpdatedTimestampHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace MailManager
109} // namespace Aws
Archive & WithLastUpdatedTimestamp(LastUpdatedTimestampT &&value)
Definition Archive.h:90
ArchiveState GetArchiveState() const
Definition Archive.h:75
void SetArchiveName(ArchiveNameT &&value)
Definition Archive.h:62
const Aws::Utils::DateTime & GetLastUpdatedTimestamp() const
Definition Archive.h:85
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:78
const Aws::String & GetArchiveName() const
Definition Archive.h:59
AWS_MAILMANAGER_API Archive()=default
void SetLastUpdatedTimestamp(LastUpdatedTimestampT &&value)
Definition Archive.h:88
void SetArchiveId(ArchiveIdT &&value)
Definition Archive.h:50
void SetArchiveState(ArchiveState value)
Definition Archive.h:77
bool LastUpdatedTimestampHasBeenSet() const
Definition Archive.h:86
const Aws::String & GetArchiveId() const
Definition Archive.h:47
Archive & WithArchiveName(ArchiveNameT &&value)
Definition Archive.h:64
AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
bool ArchiveStateHasBeenSet() const
Definition Archive.h:76
Archive & WithArchiveId(ArchiveIdT &&value)
Definition Archive.h:52
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue