AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename OrganizationIdT = Aws::String>
46 void SetOrganizationId(OrganizationIdT&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::forward<OrganizationIdT>(value); }
47 template<typename OrganizationIdT = Aws::String>
48 PutRetentionPolicyRequest& WithOrganizationId(OrganizationIdT&& value) { SetOrganizationId(std::forward<OrganizationIdT>(value)); return *this;}
50
52
55 inline const Aws::String& GetId() const { return m_id; }
56 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
57 template<typename IdT = Aws::String>
58 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
59 template<typename IdT = Aws::String>
60 PutRetentionPolicyRequest& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
62
64
67 inline const Aws::String& GetName() const { return m_name; }
68 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
69 template<typename NameT = Aws::String>
70 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
71 template<typename NameT = Aws::String>
72 PutRetentionPolicyRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
74
76
79 inline const Aws::String& GetDescription() const { return m_description; }
80 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
81 template<typename DescriptionT = Aws::String>
82 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
83 template<typename DescriptionT = Aws::String>
84 PutRetentionPolicyRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
86
88
91 inline const Aws::Vector<FolderConfiguration>& GetFolderConfigurations() const { return m_folderConfigurations; }
92 inline bool FolderConfigurationsHasBeenSet() const { return m_folderConfigurationsHasBeenSet; }
93 template<typename FolderConfigurationsT = Aws::Vector<FolderConfiguration>>
94 void SetFolderConfigurations(FolderConfigurationsT&& value) { m_folderConfigurationsHasBeenSet = true; m_folderConfigurations = std::forward<FolderConfigurationsT>(value); }
95 template<typename FolderConfigurationsT = Aws::Vector<FolderConfiguration>>
96 PutRetentionPolicyRequest& WithFolderConfigurations(FolderConfigurationsT&& value) { SetFolderConfigurations(std::forward<FolderConfigurationsT>(value)); return *this;}
97 template<typename FolderConfigurationsT = FolderConfiguration>
98 PutRetentionPolicyRequest& AddFolderConfigurations(FolderConfigurationsT&& value) { m_folderConfigurationsHasBeenSet = true; m_folderConfigurations.emplace_back(std::forward<FolderConfigurationsT>(value)); return *this; }
100 private:
101
102 Aws::String m_organizationId;
103 bool m_organizationIdHasBeenSet = false;
104
105 Aws::String m_id;
106 bool m_idHasBeenSet = false;
107
108 Aws::String m_name;
109 bool m_nameHasBeenSet = false;
110
111 Aws::String m_description;
112 bool m_descriptionHasBeenSet = false;
113
114 Aws::Vector<FolderConfiguration> m_folderConfigurations;
115 bool m_folderConfigurationsHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace WorkMail
120} // 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