AWS SDK for C++  1.9.40
AWS SDK for C++
PutRetentionPolicyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace WorkMail
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "PutRetentionPolicy"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::String& GetOrganizationId() const{ return m_organizationId; }
43 
47  inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
48 
52  inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; }
53 
57  inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); }
58 
62  inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); }
63 
67  inline PutRetentionPolicyRequest& WithOrganizationId(const Aws::String& value) { SetOrganizationId(value); return *this;}
68 
72  inline PutRetentionPolicyRequest& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;}
73 
77  inline PutRetentionPolicyRequest& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;}
78 
79 
83  inline const Aws::String& GetId() const{ return m_id; }
84 
88  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
89 
93  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
94 
98  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
99 
103  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
104 
108  inline PutRetentionPolicyRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
109 
113  inline PutRetentionPolicyRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
114 
118  inline PutRetentionPolicyRequest& WithId(const char* value) { SetId(value); return *this;}
119 
120 
124  inline const Aws::String& GetName() const{ return m_name; }
125 
129  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
130 
134  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
135 
139  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
140 
144  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
145 
149  inline PutRetentionPolicyRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
150 
154  inline PutRetentionPolicyRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
155 
159  inline PutRetentionPolicyRequest& WithName(const char* value) { SetName(value); return *this;}
160 
161 
165  inline const Aws::String& GetDescription() const{ return m_description; }
166 
170  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
171 
175  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
176 
180  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
181 
185  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
186 
190  inline PutRetentionPolicyRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
191 
195  inline PutRetentionPolicyRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
196 
200  inline PutRetentionPolicyRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
201 
202 
206  inline const Aws::Vector<FolderConfiguration>& GetFolderConfigurations() const{ return m_folderConfigurations; }
207 
211  inline bool FolderConfigurationsHasBeenSet() const { return m_folderConfigurationsHasBeenSet; }
212 
216  inline void SetFolderConfigurations(const Aws::Vector<FolderConfiguration>& value) { m_folderConfigurationsHasBeenSet = true; m_folderConfigurations = value; }
217 
221  inline void SetFolderConfigurations(Aws::Vector<FolderConfiguration>&& value) { m_folderConfigurationsHasBeenSet = true; m_folderConfigurations = std::move(value); }
222 
226  inline PutRetentionPolicyRequest& WithFolderConfigurations(const Aws::Vector<FolderConfiguration>& value) { SetFolderConfigurations(value); return *this;}
227 
231  inline PutRetentionPolicyRequest& WithFolderConfigurations(Aws::Vector<FolderConfiguration>&& value) { SetFolderConfigurations(std::move(value)); return *this;}
232 
236  inline PutRetentionPolicyRequest& AddFolderConfigurations(const FolderConfiguration& value) { m_folderConfigurationsHasBeenSet = true; m_folderConfigurations.push_back(value); return *this; }
237 
241  inline PutRetentionPolicyRequest& AddFolderConfigurations(FolderConfiguration&& value) { m_folderConfigurationsHasBeenSet = true; m_folderConfigurations.push_back(std::move(value)); return *this; }
242 
243  private:
244 
245  Aws::String m_organizationId;
246  bool m_organizationIdHasBeenSet;
247 
248  Aws::String m_id;
249  bool m_idHasBeenSet;
250 
251  Aws::String m_name;
252  bool m_nameHasBeenSet;
253 
254  Aws::String m_description;
255  bool m_descriptionHasBeenSet;
256 
257  Aws::Vector<FolderConfiguration> m_folderConfigurations;
258  bool m_folderConfigurationsHasBeenSet;
259  };
260 
261 } // namespace Model
262 } // namespace WorkMail
263 } // namespace Aws
Aws::WorkMail::Model::PutRetentionPolicyRequest::WithOrganizationId
PutRetentionPolicyRequest & WithOrganizationId(const Aws::String &value)
Definition: PutRetentionPolicyRequest.h:67
Aws::WorkMail::Model::PutRetentionPolicyRequest::OrganizationIdHasBeenSet
bool OrganizationIdHasBeenSet() const
Definition: PutRetentionPolicyRequest.h:47
Aws::WorkMail::Model::PutRetentionPolicyRequest::SetName
void SetName(const Aws::String &value)
Definition: PutRetentionPolicyRequest.h:134
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WorkMail::Model::PutRetentionPolicyRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: PutRetentionPolicyRequest.h:175
Aws::WorkMail::Model::PutRetentionPolicyRequest::PutRetentionPolicyRequest
PutRetentionPolicyRequest()
Aws::WorkMail::Model::PutRetentionPolicyRequest::WithName
PutRetentionPolicyRequest & WithName(const Aws::String &value)
Definition: PutRetentionPolicyRequest.h:149
Aws::WorkMail::WorkMailRequest
Definition: WorkMailRequest.h:17
Aws::WorkMail::Model::PutRetentionPolicyRequest::GetOrganizationId
const Aws::String & GetOrganizationId() const
Definition: PutRetentionPolicyRequest.h:42
Aws::WorkMail::Model::PutRetentionPolicyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WorkMail::Model::FolderConfiguration
Definition: FolderConfiguration.h:34
Aws::WorkMail::Model::PutRetentionPolicyRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: PutRetentionPolicyRequest.h:180
Aws::WorkMail::Model::PutRetentionPolicyRequest::WithDescription
PutRetentionPolicyRequest & WithDescription(const Aws::String &value)
Definition: PutRetentionPolicyRequest.h:190
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::WorkMail::Model::PutRetentionPolicyRequest::GetDescription
const Aws::String & GetDescription() const
Definition: PutRetentionPolicyRequest.h:165
WorkMail_EXPORTS.h
Aws::WorkMail::Model::PutRetentionPolicyRequest::SetFolderConfigurations
void SetFolderConfigurations(Aws::Vector< FolderConfiguration > &&value)
Definition: PutRetentionPolicyRequest.h:221
AWSVector.h
WorkMailRequest.h
Aws::WorkMail::Model::PutRetentionPolicyRequest::WithId
PutRetentionPolicyRequest & WithId(const char *value)
Definition: PutRetentionPolicyRequest.h:118
Aws::WorkMail::Model::PutRetentionPolicyRequest::SetOrganizationId
void SetOrganizationId(const Aws::String &value)
Definition: PutRetentionPolicyRequest.h:52
Aws::WorkMail::Model::PutRetentionPolicyRequest::WithOrganizationId
PutRetentionPolicyRequest & WithOrganizationId(const char *value)
Definition: PutRetentionPolicyRequest.h:77
Aws::WorkMail::Model::PutRetentionPolicyRequest::GetId
const Aws::String & GetId() const
Definition: PutRetentionPolicyRequest.h:83
Aws::WorkMail::Model::PutRetentionPolicyRequest::FolderConfigurationsHasBeenSet
bool FolderConfigurationsHasBeenSet() const
Definition: PutRetentionPolicyRequest.h:211
Aws::WorkMail::Model::PutRetentionPolicyRequest::SetFolderConfigurations
void SetFolderConfigurations(const Aws::Vector< FolderConfiguration > &value)
Definition: PutRetentionPolicyRequest.h:216
Aws::WorkMail::Model::PutRetentionPolicyRequest::WithId
PutRetentionPolicyRequest & WithId(Aws::String &&value)
Definition: PutRetentionPolicyRequest.h:113
Aws::WorkMail::Model::PutRetentionPolicyRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: PutRetentionPolicyRequest.h:129
Aws::WorkMail::Model::PutRetentionPolicyRequest::WithId
PutRetentionPolicyRequest & WithId(const Aws::String &value)
Definition: PutRetentionPolicyRequest.h:108
Aws::WorkMail::Model::PutRetentionPolicyRequest::WithDescription
PutRetentionPolicyRequest & WithDescription(const char *value)
Definition: PutRetentionPolicyRequest.h:200
Aws::WorkMail::Model::PutRetentionPolicyRequest::IdHasBeenSet
bool IdHasBeenSet() const
Definition: PutRetentionPolicyRequest.h:88
Aws::WorkMail::Model::PutRetentionPolicyRequest::SetId
void SetId(Aws::String &&value)
Definition: PutRetentionPolicyRequest.h:98
Aws::WorkMail::Model::PutRetentionPolicyRequest::WithName
PutRetentionPolicyRequest & WithName(Aws::String &&value)
Definition: PutRetentionPolicyRequest.h:154
Aws::WorkMail::Model::PutRetentionPolicyRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::WorkMail::Model::PutRetentionPolicyRequest::SetOrganizationId
void SetOrganizationId(const char *value)
Definition: PutRetentionPolicyRequest.h:62
Aws::WorkMail::Model::PutRetentionPolicyRequest::SetId
void SetId(const Aws::String &value)
Definition: PutRetentionPolicyRequest.h:93
Aws::WorkMail::Model::PutRetentionPolicyRequest::AddFolderConfigurations
PutRetentionPolicyRequest & AddFolderConfigurations(const FolderConfiguration &value)
Definition: PutRetentionPolicyRequest.h:236
AWSString.h
Aws::WorkMail::Model::PutRetentionPolicyRequest::GetFolderConfigurations
const Aws::Vector< FolderConfiguration > & GetFolderConfigurations() const
Definition: PutRetentionPolicyRequest.h:206
Aws::WorkMail::Model::PutRetentionPolicyRequest::SetDescription
void SetDescription(const char *value)
Definition: PutRetentionPolicyRequest.h:185
Aws::WorkMail::Model::PutRetentionPolicyRequest::WithFolderConfigurations
PutRetentionPolicyRequest & WithFolderConfigurations(const Aws::Vector< FolderConfiguration > &value)
Definition: PutRetentionPolicyRequest.h:226
Aws::WorkMail::Model::PutRetentionPolicyRequest::WithDescription
PutRetentionPolicyRequest & WithDescription(Aws::String &&value)
Definition: PutRetentionPolicyRequest.h:195
Aws::WorkMail::Model::PutRetentionPolicyRequest::SetId
void SetId(const char *value)
Definition: PutRetentionPolicyRequest.h:103
Aws::WorkMail::Model::PutRetentionPolicyRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: PutRetentionPolicyRequest.h:170
Aws::WorkMail::Model::PutRetentionPolicyRequest::SetName
void SetName(const char *value)
Definition: PutRetentionPolicyRequest.h:144
Aws
Definition: AccessManagementClient.h:15
Aws::WorkMail::Model::PutRetentionPolicyRequest::WithName
PutRetentionPolicyRequest & WithName(const char *value)
Definition: PutRetentionPolicyRequest.h:159
FolderConfiguration.h
AWS_WORKMAIL_API
#define AWS_WORKMAIL_API
Definition: WorkMail_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WorkMail::Model::PutRetentionPolicyRequest::WithOrganizationId
PutRetentionPolicyRequest & WithOrganizationId(Aws::String &&value)
Definition: PutRetentionPolicyRequest.h:72
Aws::WorkMail::Model::PutRetentionPolicyRequest::AddFolderConfigurations
PutRetentionPolicyRequest & AddFolderConfigurations(FolderConfiguration &&value)
Definition: PutRetentionPolicyRequest.h:241
Aws::WorkMail::Model::PutRetentionPolicyRequest::WithFolderConfigurations
PutRetentionPolicyRequest & WithFolderConfigurations(Aws::Vector< FolderConfiguration > &&value)
Definition: PutRetentionPolicyRequest.h:231
Aws::WorkMail::Model::PutRetentionPolicyRequest::GetName
const Aws::String & GetName() const
Definition: PutRetentionPolicyRequest.h:124
Aws::WorkMail::Model::PutRetentionPolicyRequest
Definition: PutRetentionPolicyRequest.h:24
Aws::WorkMail::Model::PutRetentionPolicyRequest::SetOrganizationId
void SetOrganizationId(Aws::String &&value)
Definition: PutRetentionPolicyRequest.h:57
Aws::WorkMail::Model::PutRetentionPolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutRetentionPolicyRequest.h:32
Aws::WorkMail::Model::PutRetentionPolicyRequest::SetName
void SetName(Aws::String &&value)
Definition: PutRetentionPolicyRequest.h:139