AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
PutRetentionPolicyRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/workmail/WorkMailRequest.h>
10#include <aws/workmail/WorkMail_EXPORTS.h>
11#include <aws/workmail/model/FolderConfiguration.h>
12
13#include <utility>
14
15namespace Aws {
16namespace WorkMail {
17namespace Model {
18
22 public:
23 AWS_WORKMAIL_API PutRetentionPolicyRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "PutRetentionPolicy"; }
30
31 AWS_WORKMAIL_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetOrganizationId() const { return m_organizationId; }
40 inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
41 template <typename OrganizationIdT = Aws::String>
42 void SetOrganizationId(OrganizationIdT&& value) {
43 m_organizationIdHasBeenSet = true;
44 m_organizationId = std::forward<OrganizationIdT>(value);
45 }
46 template <typename OrganizationIdT = Aws::String>
48 SetOrganizationId(std::forward<OrganizationIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetId() const { return m_id; }
58 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
59 template <typename IdT = Aws::String>
60 void SetId(IdT&& value) {
61 m_idHasBeenSet = true;
62 m_id = std::forward<IdT>(value);
63 }
64 template <typename IdT = Aws::String>
66 SetId(std::forward<IdT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetName() const { return m_name; }
76 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
77 template <typename NameT = Aws::String>
78 void SetName(NameT&& value) {
79 m_nameHasBeenSet = true;
80 m_name = std::forward<NameT>(value);
81 }
82 template <typename NameT = Aws::String>
84 SetName(std::forward<NameT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetDescription() const { return m_description; }
94 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
95 template <typename DescriptionT = Aws::String>
96 void SetDescription(DescriptionT&& value) {
97 m_descriptionHasBeenSet = true;
98 m_description = std::forward<DescriptionT>(value);
99 }
100 template <typename DescriptionT = Aws::String>
102 SetDescription(std::forward<DescriptionT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::Vector<FolderConfiguration>& GetFolderConfigurations() const { return m_folderConfigurations; }
112 inline bool FolderConfigurationsHasBeenSet() const { return m_folderConfigurationsHasBeenSet; }
113 template <typename FolderConfigurationsT = Aws::Vector<FolderConfiguration>>
114 void SetFolderConfigurations(FolderConfigurationsT&& value) {
115 m_folderConfigurationsHasBeenSet = true;
116 m_folderConfigurations = std::forward<FolderConfigurationsT>(value);
117 }
118 template <typename FolderConfigurationsT = Aws::Vector<FolderConfiguration>>
119 PutRetentionPolicyRequest& WithFolderConfigurations(FolderConfigurationsT&& value) {
120 SetFolderConfigurations(std::forward<FolderConfigurationsT>(value));
121 return *this;
122 }
123 template <typename FolderConfigurationsT = FolderConfiguration>
124 PutRetentionPolicyRequest& AddFolderConfigurations(FolderConfigurationsT&& value) {
125 m_folderConfigurationsHasBeenSet = true;
126 m_folderConfigurations.emplace_back(std::forward<FolderConfigurationsT>(value));
127 return *this;
128 }
130 private:
131 Aws::String m_organizationId;
132
133 Aws::String m_id;
134
135 Aws::String m_name;
136
137 Aws::String m_description;
138
139 Aws::Vector<FolderConfiguration> m_folderConfigurations;
140 bool m_organizationIdHasBeenSet = false;
141 bool m_idHasBeenSet = false;
142 bool m_nameHasBeenSet = false;
143 bool m_descriptionHasBeenSet = false;
144 bool m_folderConfigurationsHasBeenSet = false;
145};
146
147} // namespace Model
148} // namespace WorkMail
149} // namespace Aws
AWS_WORKMAIL_API Aws::String SerializePayload() const override
PutRetentionPolicyRequest & AddFolderConfigurations(FolderConfigurationsT &&value)
PutRetentionPolicyRequest & WithName(NameT &&value)
virtual const char * GetServiceRequestName() const override
AWS_WORKMAIL_API PutRetentionPolicyRequest()=default
PutRetentionPolicyRequest & WithOrganizationId(OrganizationIdT &&value)
PutRetentionPolicyRequest & WithId(IdT &&value)
PutRetentionPolicyRequest & WithDescription(DescriptionT &&value)
const Aws::Vector< FolderConfiguration > & GetFolderConfigurations() const
AWS_WORKMAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetFolderConfigurations(FolderConfigurationsT &&value)
PutRetentionPolicyRequest & WithFolderConfigurations(FolderConfigurationsT &&value)
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