AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetArchiveId(const Aws::String& value) { m_archiveIdHasBeenSet = true; m_archiveId = value; }
50 inline void SetArchiveId(Aws::String&& value) { m_archiveIdHasBeenSet = true; m_archiveId = std::move(value); }
51 inline void SetArchiveId(const char* value) { m_archiveIdHasBeenSet = true; m_archiveId.assign(value); }
52 inline Archive& WithArchiveId(const Aws::String& value) { SetArchiveId(value); return *this;}
53 inline Archive& WithArchiveId(Aws::String&& value) { SetArchiveId(std::move(value)); return *this;}
54 inline Archive& WithArchiveId(const char* value) { SetArchiveId(value); return *this;}
56
58
61 inline const Aws::String& GetArchiveName() const{ return m_archiveName; }
62 inline bool ArchiveNameHasBeenSet() const { return m_archiveNameHasBeenSet; }
63 inline void SetArchiveName(const Aws::String& value) { m_archiveNameHasBeenSet = true; m_archiveName = value; }
64 inline void SetArchiveName(Aws::String&& value) { m_archiveNameHasBeenSet = true; m_archiveName = std::move(value); }
65 inline void SetArchiveName(const char* value) { m_archiveNameHasBeenSet = true; m_archiveName.assign(value); }
66 inline Archive& WithArchiveName(const Aws::String& value) { SetArchiveName(value); return *this;}
67 inline Archive& WithArchiveName(Aws::String&& value) { SetArchiveName(std::move(value)); return *this;}
68 inline Archive& WithArchiveName(const char* value) { SetArchiveName(value); return *this;}
70
72
79 inline const ArchiveState& GetArchiveState() const{ return m_archiveState; }
80 inline bool ArchiveStateHasBeenSet() const { return m_archiveStateHasBeenSet; }
81 inline void SetArchiveState(const ArchiveState& value) { m_archiveStateHasBeenSet = true; m_archiveState = value; }
82 inline void SetArchiveState(ArchiveState&& value) { m_archiveStateHasBeenSet = true; m_archiveState = std::move(value); }
83 inline Archive& WithArchiveState(const ArchiveState& value) { SetArchiveState(value); return *this;}
84 inline Archive& WithArchiveState(ArchiveState&& value) { SetArchiveState(std::move(value)); return *this;}
86
88
91 inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const{ return m_lastUpdatedTimestamp; }
92 inline bool LastUpdatedTimestampHasBeenSet() const { return m_lastUpdatedTimestampHasBeenSet; }
93 inline void SetLastUpdatedTimestamp(const Aws::Utils::DateTime& value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = value; }
94 inline void SetLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = std::move(value); }
96 inline Archive& WithLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { SetLastUpdatedTimestamp(std::move(value)); return *this;}
98 private:
99
100 Aws::String m_archiveId;
101 bool m_archiveIdHasBeenSet = false;
102
103 Aws::String m_archiveName;
104 bool m_archiveNameHasBeenSet = false;
105
106 ArchiveState m_archiveState;
107 bool m_archiveStateHasBeenSet = false;
108
109 Aws::Utils::DateTime m_lastUpdatedTimestamp;
110 bool m_lastUpdatedTimestampHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace MailManager
115} // namespace Aws
void SetLastUpdatedTimestamp(const Aws::Utils::DateTime &value)
Definition Archive.h:93
void SetArchiveId(Aws::String &&value)
Definition Archive.h:50
void SetLastUpdatedTimestamp(Aws::Utils::DateTime &&value)
Definition Archive.h:94
void SetArchiveName(const char *value)
Definition Archive.h:65
const ArchiveState & GetArchiveState() const
Definition Archive.h:79
const Aws::Utils::DateTime & GetLastUpdatedTimestamp() const
Definition Archive.h:91
Archive & WithLastUpdatedTimestamp(const Aws::Utils::DateTime &value)
Definition Archive.h:95
AWS_MAILMANAGER_API Archive(Aws::Utils::Json::JsonView jsonValue)
void SetArchiveId(const Aws::String &value)
Definition Archive.h:49
AWS_MAILMANAGER_API Archive()
bool ArchiveNameHasBeenSet() const
Definition Archive.h:62
AWS_MAILMANAGER_API Archive & operator=(Aws::Utils::Json::JsonView jsonValue)
Archive & WithArchiveName(const Aws::String &value)
Definition Archive.h:66
const Aws::String & GetArchiveName() const
Definition Archive.h:61
Archive & WithLastUpdatedTimestamp(Aws::Utils::DateTime &&value)
Definition Archive.h:96
void SetArchiveState(ArchiveState &&value)
Definition Archive.h:82
Archive & WithArchiveName(const char *value)
Definition Archive.h:68
bool LastUpdatedTimestampHasBeenSet() const
Definition Archive.h:92
void SetArchiveName(Aws::String &&value)
Definition Archive.h:64
Archive & WithArchiveName(Aws::String &&value)
Definition Archive.h:67
Archive & WithArchiveState(const ArchiveState &value)
Definition Archive.h:83
void SetArchiveName(const Aws::String &value)
Definition Archive.h:63
Archive & WithArchiveState(ArchiveState &&value)
Definition Archive.h:84
const Aws::String & GetArchiveId() const
Definition Archive.h:47
void SetArchiveState(const ArchiveState &value)
Definition Archive.h:81
Archive & WithArchiveId(Aws::String &&value)
Definition Archive.h:53
AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
Archive & WithArchiveId(const char *value)
Definition Archive.h:54
bool ArchiveStateHasBeenSet() const
Definition Archive.h:80
Archive & WithArchiveId(const Aws::String &value)
Definition Archive.h:52
void SetArchiveId(const char *value)
Definition Archive.h:51
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue