AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateArchiveRequest.h
1
6#pragma once
7#include <aws/mailmanager/MailManager_EXPORTS.h>
8#include <aws/mailmanager/MailManagerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/mailmanager/model/ArchiveRetention.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/mailmanager/model/Tag.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace MailManager
19{
20namespace Model
21{
22
29 {
30 public:
31 AWS_MAILMANAGER_API CreateArchiveRequest();
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateArchive"; }
38
39 AWS_MAILMANAGER_API Aws::String SerializePayload() const override;
40
41 AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
42
43
45
48 inline const Aws::String& GetArchiveName() const{ return m_archiveName; }
49 inline bool ArchiveNameHasBeenSet() const { return m_archiveNameHasBeenSet; }
50 inline void SetArchiveName(const Aws::String& value) { m_archiveNameHasBeenSet = true; m_archiveName = value; }
51 inline void SetArchiveName(Aws::String&& value) { m_archiveNameHasBeenSet = true; m_archiveName = std::move(value); }
52 inline void SetArchiveName(const char* value) { m_archiveNameHasBeenSet = true; m_archiveName.assign(value); }
53 inline CreateArchiveRequest& WithArchiveName(const Aws::String& value) { SetArchiveName(value); return *this;}
54 inline CreateArchiveRequest& WithArchiveName(Aws::String&& value) { SetArchiveName(std::move(value)); return *this;}
55 inline CreateArchiveRequest& WithArchiveName(const char* value) { SetArchiveName(value); return *this;}
57
59
62 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
63 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
64 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
65 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
66 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
67 inline CreateArchiveRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
68 inline CreateArchiveRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
69 inline CreateArchiveRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
71
73
77 inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; }
78 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
79 inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; }
80 inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::move(value); }
81 inline void SetKmsKeyArn(const char* value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn.assign(value); }
82 inline CreateArchiveRequest& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;}
83 inline CreateArchiveRequest& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;}
84 inline CreateArchiveRequest& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;}
86
88
91 inline const ArchiveRetention& GetRetention() const{ return m_retention; }
92 inline bool RetentionHasBeenSet() const { return m_retentionHasBeenSet; }
93 inline void SetRetention(const ArchiveRetention& value) { m_retentionHasBeenSet = true; m_retention = value; }
94 inline void SetRetention(ArchiveRetention&& value) { m_retentionHasBeenSet = true; m_retention = std::move(value); }
95 inline CreateArchiveRequest& WithRetention(const ArchiveRetention& value) { SetRetention(value); return *this;}
96 inline CreateArchiveRequest& WithRetention(ArchiveRetention&& value) { SetRetention(std::move(value)); return *this;}
98
100
104 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
105 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
106 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
107 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
108 inline CreateArchiveRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
109 inline CreateArchiveRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
110 inline CreateArchiveRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
111 inline CreateArchiveRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
113 private:
114
115 Aws::String m_archiveName;
116 bool m_archiveNameHasBeenSet = false;
117
118 Aws::String m_clientToken;
119 bool m_clientTokenHasBeenSet = false;
120
121 Aws::String m_kmsKeyArn;
122 bool m_kmsKeyArnHasBeenSet = false;
123
124 ArchiveRetention m_retention;
125 bool m_retentionHasBeenSet = false;
126
127 Aws::Vector<Tag> m_tags;
128 bool m_tagsHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace MailManager
133} // namespace Aws
CreateArchiveRequest & WithClientToken(const Aws::String &value)
CreateArchiveRequest & WithClientToken(const char *value)
virtual const char * GetServiceRequestName() const override
CreateArchiveRequest & WithKmsKeyArn(const Aws::String &value)
CreateArchiveRequest & WithArchiveName(const Aws::String &value)
void SetRetention(const ArchiveRetention &value)
CreateArchiveRequest & WithKmsKeyArn(Aws::String &&value)
AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateArchiveRequest & WithTags(const Aws::Vector< Tag > &value)
CreateArchiveRequest & AddTags(Tag &&value)
CreateArchiveRequest & WithRetention(ArchiveRetention &&value)
void SetTags(const Aws::Vector< Tag > &value)
CreateArchiveRequest & WithKmsKeyArn(const char *value)
AWS_MAILMANAGER_API Aws::String SerializePayload() const override
CreateArchiveRequest & AddTags(const Tag &value)
CreateArchiveRequest & WithRetention(const ArchiveRetention &value)
CreateArchiveRequest & WithTags(Aws::Vector< Tag > &&value)
CreateArchiveRequest & WithArchiveName(const char *value)
CreateArchiveRequest & WithArchiveName(Aws::String &&value)
CreateArchiveRequest & WithClientToken(Aws::String &&value)
const ArchiveRetention & GetRetention() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector