AWS SDK for C++  1.9.108
AWS SDK for C++
GetDefaultRetentionPolicyResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace WorkMail
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const Aws::String& GetId() const{ return m_id; }
41 
45  inline void SetId(const Aws::String& value) { m_id = value; }
46 
50  inline void SetId(Aws::String&& value) { m_id = std::move(value); }
51 
55  inline void SetId(const char* value) { m_id.assign(value); }
56 
60  inline GetDefaultRetentionPolicyResult& WithId(const Aws::String& value) { SetId(value); return *this;}
61 
65  inline GetDefaultRetentionPolicyResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
66 
70  inline GetDefaultRetentionPolicyResult& WithId(const char* value) { SetId(value); return *this;}
71 
72 
76  inline const Aws::String& GetName() const{ return m_name; }
77 
81  inline void SetName(const Aws::String& value) { m_name = value; }
82 
86  inline void SetName(Aws::String&& value) { m_name = std::move(value); }
87 
91  inline void SetName(const char* value) { m_name.assign(value); }
92 
96  inline GetDefaultRetentionPolicyResult& WithName(const Aws::String& value) { SetName(value); return *this;}
97 
101  inline GetDefaultRetentionPolicyResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
102 
106  inline GetDefaultRetentionPolicyResult& WithName(const char* value) { SetName(value); return *this;}
107 
108 
112  inline const Aws::String& GetDescription() const{ return m_description; }
113 
117  inline void SetDescription(const Aws::String& value) { m_description = value; }
118 
122  inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
123 
127  inline void SetDescription(const char* value) { m_description.assign(value); }
128 
132  inline GetDefaultRetentionPolicyResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
133 
137  inline GetDefaultRetentionPolicyResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
138 
142  inline GetDefaultRetentionPolicyResult& WithDescription(const char* value) { SetDescription(value); return *this;}
143 
144 
148  inline const Aws::Vector<FolderConfiguration>& GetFolderConfigurations() const{ return m_folderConfigurations; }
149 
153  inline void SetFolderConfigurations(const Aws::Vector<FolderConfiguration>& value) { m_folderConfigurations = value; }
154 
158  inline void SetFolderConfigurations(Aws::Vector<FolderConfiguration>&& value) { m_folderConfigurations = std::move(value); }
159 
163  inline GetDefaultRetentionPolicyResult& WithFolderConfigurations(const Aws::Vector<FolderConfiguration>& value) { SetFolderConfigurations(value); return *this;}
164 
168  inline GetDefaultRetentionPolicyResult& WithFolderConfigurations(Aws::Vector<FolderConfiguration>&& value) { SetFolderConfigurations(std::move(value)); return *this;}
169 
173  inline GetDefaultRetentionPolicyResult& AddFolderConfigurations(const FolderConfiguration& value) { m_folderConfigurations.push_back(value); return *this; }
174 
178  inline GetDefaultRetentionPolicyResult& AddFolderConfigurations(FolderConfiguration&& value) { m_folderConfigurations.push_back(std::move(value)); return *this; }
179 
180  private:
181 
182  Aws::String m_id;
183 
184  Aws::String m_name;
185 
186  Aws::String m_description;
187 
188  Aws::Vector<FolderConfiguration> m_folderConfigurations;
189  };
190 
191 } // namespace Model
192 } // namespace WorkMail
193 } // namespace Aws
Aws::WorkMail::Model::GetDefaultRetentionPolicyResult::SetId
void SetId(const Aws::String &value)
Definition: GetDefaultRetentionPolicyResult.h:45
Aws::WorkMail::Model::GetDefaultRetentionPolicyResult::WithFolderConfigurations
GetDefaultRetentionPolicyResult & WithFolderConfigurations(const Aws::Vector< FolderConfiguration > &value)
Definition: GetDefaultRetentionPolicyResult.h:163
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::WorkMail::Model::GetDefaultRetentionPolicyResult::WithId
GetDefaultRetentionPolicyResult & WithId(const char *value)
Definition: GetDefaultRetentionPolicyResult.h:70
Aws::WorkMail::Model::GetDefaultRetentionPolicyResult::SetDescription
void SetDescription(const char *value)
Definition: GetDefaultRetentionPolicyResult.h:127
Aws::WorkMail::Model::GetDefaultRetentionPolicyResult::WithId
GetDefaultRetentionPolicyResult & WithId(Aws::String &&value)
Definition: GetDefaultRetentionPolicyResult.h:65
Aws::WorkMail::Model::GetDefaultRetentionPolicyResult::AddFolderConfigurations
GetDefaultRetentionPolicyResult & AddFolderConfigurations(const FolderConfiguration &value)
Definition: GetDefaultRetentionPolicyResult.h:173
Aws::WorkMail::Model::GetDefaultRetentionPolicyResult::AddFolderConfigurations
GetDefaultRetentionPolicyResult & AddFolderConfigurations(FolderConfiguration &&value)
Definition: GetDefaultRetentionPolicyResult.h:178
Aws::WorkMail::Model::GetDefaultRetentionPolicyResult::WithDescription
GetDefaultRetentionPolicyResult & WithDescription(Aws::String &&value)
Definition: GetDefaultRetentionPolicyResult.h:137
Aws::WorkMail::Model::FolderConfiguration
Definition: FolderConfiguration.h:34
Aws::WorkMail::Model::GetDefaultRetentionPolicyResult::WithName
GetDefaultRetentionPolicyResult & WithName(const char *value)
Definition: GetDefaultRetentionPolicyResult.h:106
Aws::WorkMail::Model::GetDefaultRetentionPolicyResult::SetName
void SetName(Aws::String &&value)
Definition: GetDefaultRetentionPolicyResult.h:86
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::WorkMail::Model::GetDefaultRetentionPolicyResult::GetFolderConfigurations
const Aws::Vector< FolderConfiguration > & GetFolderConfigurations() const
Definition: GetDefaultRetentionPolicyResult.h:148
WorkMail_EXPORTS.h
Aws::WorkMail::Model::GetDefaultRetentionPolicyResult::SetName
void SetName(const char *value)
Definition: GetDefaultRetentionPolicyResult.h:91
AWSVector.h
Aws::WorkMail::Model::GetDefaultRetentionPolicyResult::SetId
void SetId(Aws::String &&value)
Definition: GetDefaultRetentionPolicyResult.h:50
Aws::WorkMail::Model::GetDefaultRetentionPolicyResult::WithFolderConfigurations
GetDefaultRetentionPolicyResult & WithFolderConfigurations(Aws::Vector< FolderConfiguration > &&value)
Definition: GetDefaultRetentionPolicyResult.h:168
Aws::WorkMail::Model::GetDefaultRetentionPolicyResult::GetDescription
const Aws::String & GetDescription() const
Definition: GetDefaultRetentionPolicyResult.h:112
Aws::WorkMail::Model::GetDefaultRetentionPolicyResult::WithId
GetDefaultRetentionPolicyResult & WithId(const Aws::String &value)
Definition: GetDefaultRetentionPolicyResult.h:60
Aws::WorkMail::Model::GetDefaultRetentionPolicyResult::SetDescription
void SetDescription(Aws::String &&value)
Definition: GetDefaultRetentionPolicyResult.h:122
Aws::WorkMail::Model::GetDefaultRetentionPolicyResult::SetId
void SetId(const char *value)
Definition: GetDefaultRetentionPolicyResult.h:55
Aws::WorkMail::Model::GetDefaultRetentionPolicyResult::SetName
void SetName(const Aws::String &value)
Definition: GetDefaultRetentionPolicyResult.h:81
Aws::WorkMail::Model::GetDefaultRetentionPolicyResult::SetDescription
void SetDescription(const Aws::String &value)
Definition: GetDefaultRetentionPolicyResult.h:117
Aws::WorkMail::Model::GetDefaultRetentionPolicyResult::GetId
const Aws::String & GetId() const
Definition: GetDefaultRetentionPolicyResult.h:40
AWSString.h
Aws::WorkMail::Model::GetDefaultRetentionPolicyResult::WithName
GetDefaultRetentionPolicyResult & WithName(Aws::String &&value)
Definition: GetDefaultRetentionPolicyResult.h:101
Aws::WorkMail::Model::GetDefaultRetentionPolicyResult
Definition: GetDefaultRetentionPolicyResult.h:30
Aws::WorkMail::Model::GetDefaultRetentionPolicyResult::WithDescription
GetDefaultRetentionPolicyResult & WithDescription(const char *value)
Definition: GetDefaultRetentionPolicyResult.h:142
Aws::WorkMail::Model::GetDefaultRetentionPolicyResult::GetDefaultRetentionPolicyResult
GetDefaultRetentionPolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::WorkMail::Model::GetDefaultRetentionPolicyResult::GetDefaultRetentionPolicyResult
GetDefaultRetentionPolicyResult()
Aws::WorkMail::Model::GetDefaultRetentionPolicyResult::SetFolderConfigurations
void SetFolderConfigurations(const Aws::Vector< FolderConfiguration > &value)
Definition: GetDefaultRetentionPolicyResult.h:153
Aws
Definition: AccessManagementClient.h:15
FolderConfiguration.h
AWS_WORKMAIL_API
#define AWS_WORKMAIL_API
Definition: WorkMail_EXPORTS.h:28
Aws::WorkMail::Model::GetDefaultRetentionPolicyResult::operator=
GetDefaultRetentionPolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WorkMail::Model::GetDefaultRetentionPolicyResult::WithName
GetDefaultRetentionPolicyResult & WithName(const Aws::String &value)
Definition: GetDefaultRetentionPolicyResult.h:96
Aws::WorkMail::Model::GetDefaultRetentionPolicyResult::SetFolderConfigurations
void SetFolderConfigurations(Aws::Vector< FolderConfiguration > &&value)
Definition: GetDefaultRetentionPolicyResult.h:158
Aws::WorkMail::Model::GetDefaultRetentionPolicyResult::WithDescription
GetDefaultRetentionPolicyResult & WithDescription(const Aws::String &value)
Definition: GetDefaultRetentionPolicyResult.h:132
Aws::WorkMail::Model::GetDefaultRetentionPolicyResult::GetName
const Aws::String & GetName() const
Definition: GetDefaultRetentionPolicyResult.h:76