AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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& GetClientToken() const { return m_clientToken; }
49 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
50 template<typename ClientTokenT = Aws::String>
51 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
52 template<typename ClientTokenT = Aws::String>
53 CreateArchiveRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
55
57
60 inline const Aws::String& GetArchiveName() const { return m_archiveName; }
61 inline bool ArchiveNameHasBeenSet() const { return m_archiveNameHasBeenSet; }
62 template<typename ArchiveNameT = Aws::String>
63 void SetArchiveName(ArchiveNameT&& value) { m_archiveNameHasBeenSet = true; m_archiveName = std::forward<ArchiveNameT>(value); }
64 template<typename ArchiveNameT = Aws::String>
65 CreateArchiveRequest& WithArchiveName(ArchiveNameT&& value) { SetArchiveName(std::forward<ArchiveNameT>(value)); return *this;}
67
69
72 inline const ArchiveRetention& GetRetention() const { return m_retention; }
73 inline bool RetentionHasBeenSet() const { return m_retentionHasBeenSet; }
74 template<typename RetentionT = ArchiveRetention>
75 void SetRetention(RetentionT&& value) { m_retentionHasBeenSet = true; m_retention = std::forward<RetentionT>(value); }
76 template<typename RetentionT = ArchiveRetention>
77 CreateArchiveRequest& WithRetention(RetentionT&& value) { SetRetention(std::forward<RetentionT>(value)); return *this;}
79
81
85 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
86 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
87 template<typename KmsKeyArnT = Aws::String>
88 void SetKmsKeyArn(KmsKeyArnT&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::forward<KmsKeyArnT>(value); }
89 template<typename KmsKeyArnT = Aws::String>
90 CreateArchiveRequest& WithKmsKeyArn(KmsKeyArnT&& value) { SetKmsKeyArn(std::forward<KmsKeyArnT>(value)); return *this;}
92
94
98 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
99 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
100 template<typename TagsT = Aws::Vector<Tag>>
101 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
102 template<typename TagsT = Aws::Vector<Tag>>
103 CreateArchiveRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
104 template<typename TagsT = Tag>
105 CreateArchiveRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
107 private:
108
110 bool m_clientTokenHasBeenSet = true;
111
112 Aws::String m_archiveName;
113 bool m_archiveNameHasBeenSet = false;
114
115 ArchiveRetention m_retention;
116 bool m_retentionHasBeenSet = false;
117
118 Aws::String m_kmsKeyArn;
119 bool m_kmsKeyArnHasBeenSet = false;
120
121 Aws::Vector<Tag> m_tags;
122 bool m_tagsHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace MailManager
127} // namespace Aws
CreateArchiveRequest & WithTags(TagsT &&value)
CreateArchiveRequest & WithRetention(RetentionT &&value)
virtual const char * GetServiceRequestName() const override
CreateArchiveRequest & WithArchiveName(ArchiveNameT &&value)
AWS_MAILMANAGER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateArchiveRequest & AddTags(TagsT &&value)
const Aws::Vector< Tag > & GetTags() const
AWS_MAILMANAGER_API Aws::String SerializePayload() const override
CreateArchiveRequest & WithClientToken(ClientTokenT &&value)
CreateArchiveRequest & WithKmsKeyArn(KmsKeyArnT &&value)
AWS_MAILMANAGER_API CreateArchiveRequest()=default
const ArchiveRetention & GetRetention() const
static Aws::Utils::UUID PseudoRandomUUID()
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