AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutRetentionPolicyRequest.h
1
6#pragma once
7#include <aws/workmail/WorkMail_EXPORTS.h>
8#include <aws/workmail/WorkMailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/workmail/model/FolderConfiguration.h>
12#include <utility>
13
14namespace Aws
15{
16namespace WorkMail
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_WORKMAIL_API PutRetentionPolicyRequest();
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_WORKMAIL_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetOrganizationId() const{ return m_organizationId; }
44 inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
45 inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; }
46 inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); }
47 inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); }
48 inline PutRetentionPolicyRequest& WithOrganizationId(const Aws::String& value) { SetOrganizationId(value); return *this;}
49 inline PutRetentionPolicyRequest& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;}
50 inline PutRetentionPolicyRequest& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;}
52
54
57 inline const Aws::String& GetId() const{ return m_id; }
58 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
59 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
60 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
61 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
62 inline PutRetentionPolicyRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
63 inline PutRetentionPolicyRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
64 inline PutRetentionPolicyRequest& WithId(const char* value) { SetId(value); return *this;}
66
68
71 inline const Aws::String& GetName() const{ return m_name; }
72 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
73 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
74 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
75 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
76 inline PutRetentionPolicyRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
77 inline PutRetentionPolicyRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
78 inline PutRetentionPolicyRequest& WithName(const char* value) { SetName(value); return *this;}
80
82
85 inline const Aws::String& GetDescription() const{ return m_description; }
86 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
87 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
88 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
89 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
90 inline PutRetentionPolicyRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
91 inline PutRetentionPolicyRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
92 inline PutRetentionPolicyRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
94
96
99 inline const Aws::Vector<FolderConfiguration>& GetFolderConfigurations() const{ return m_folderConfigurations; }
100 inline bool FolderConfigurationsHasBeenSet() const { return m_folderConfigurationsHasBeenSet; }
101 inline void SetFolderConfigurations(const Aws::Vector<FolderConfiguration>& value) { m_folderConfigurationsHasBeenSet = true; m_folderConfigurations = value; }
102 inline void SetFolderConfigurations(Aws::Vector<FolderConfiguration>&& value) { m_folderConfigurationsHasBeenSet = true; m_folderConfigurations = std::move(value); }
105 inline PutRetentionPolicyRequest& AddFolderConfigurations(const FolderConfiguration& value) { m_folderConfigurationsHasBeenSet = true; m_folderConfigurations.push_back(value); return *this; }
106 inline PutRetentionPolicyRequest& AddFolderConfigurations(FolderConfiguration&& value) { m_folderConfigurationsHasBeenSet = true; m_folderConfigurations.push_back(std::move(value)); return *this; }
108 private:
109
110 Aws::String m_organizationId;
111 bool m_organizationIdHasBeenSet = false;
112
113 Aws::String m_id;
114 bool m_idHasBeenSet = false;
115
116 Aws::String m_name;
117 bool m_nameHasBeenSet = false;
118
119 Aws::String m_description;
120 bool m_descriptionHasBeenSet = false;
121
122 Aws::Vector<FolderConfiguration> m_folderConfigurations;
123 bool m_folderConfigurationsHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace WorkMail
128} // namespace Aws
PutRetentionPolicyRequest & WithName(const Aws::String &value)
PutRetentionPolicyRequest & WithId(Aws::String &&value)
PutRetentionPolicyRequest & WithFolderConfigurations(Aws::Vector< FolderConfiguration > &&value)
AWS_WORKMAIL_API Aws::String SerializePayload() const override
void SetFolderConfigurations(Aws::Vector< FolderConfiguration > &&value)
PutRetentionPolicyRequest & WithOrganizationId(const char *value)
PutRetentionPolicyRequest & WithName(const char *value)
virtual const char * GetServiceRequestName() const override
PutRetentionPolicyRequest & WithDescription(Aws::String &&value)
PutRetentionPolicyRequest & WithDescription(const char *value)
PutRetentionPolicyRequest & WithOrganizationId(const Aws::String &value)
PutRetentionPolicyRequest & WithDescription(const Aws::String &value)
PutRetentionPolicyRequest & WithFolderConfigurations(const Aws::Vector< FolderConfiguration > &value)
void SetFolderConfigurations(const Aws::Vector< FolderConfiguration > &value)
const Aws::Vector< FolderConfiguration > & GetFolderConfigurations() const
PutRetentionPolicyRequest & AddFolderConfigurations(FolderConfiguration &&value)
PutRetentionPolicyRequest & WithId(const char *value)
AWS_WORKMAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutRetentionPolicyRequest & WithName(Aws::String &&value)
PutRetentionPolicyRequest & WithId(const Aws::String &value)
PutRetentionPolicyRequest & WithOrganizationId(Aws::String &&value)
PutRetentionPolicyRequest & AddFolderConfigurations(const FolderConfiguration &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