AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetDefaultRetentionPolicyResult.h
1
6#pragma once
7#include <aws/workmail/WorkMail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/workmail/model/FolderConfiguration.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace WorkMail
26{
27namespace Model
28{
30 {
31 public:
35
36
38
41 inline const Aws::String& GetId() const{ return m_id; }
42 inline void SetId(const Aws::String& value) { m_id = value; }
43 inline void SetId(Aws::String&& value) { m_id = std::move(value); }
44 inline void SetId(const char* value) { m_id.assign(value); }
45 inline GetDefaultRetentionPolicyResult& WithId(const Aws::String& value) { SetId(value); return *this;}
46 inline GetDefaultRetentionPolicyResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
47 inline GetDefaultRetentionPolicyResult& WithId(const char* value) { SetId(value); return *this;}
49
51
54 inline const Aws::String& GetName() const{ return m_name; }
55 inline void SetName(const Aws::String& value) { m_name = value; }
56 inline void SetName(Aws::String&& value) { m_name = std::move(value); }
57 inline void SetName(const char* value) { m_name.assign(value); }
58 inline GetDefaultRetentionPolicyResult& WithName(const Aws::String& value) { SetName(value); return *this;}
59 inline GetDefaultRetentionPolicyResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
60 inline GetDefaultRetentionPolicyResult& WithName(const char* value) { SetName(value); return *this;}
62
64
67 inline const Aws::String& GetDescription() const{ return m_description; }
68 inline void SetDescription(const Aws::String& value) { m_description = value; }
69 inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
70 inline void SetDescription(const char* value) { m_description.assign(value); }
71 inline GetDefaultRetentionPolicyResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
72 inline GetDefaultRetentionPolicyResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
73 inline GetDefaultRetentionPolicyResult& WithDescription(const char* value) { SetDescription(value); return *this;}
75
77
80 inline const Aws::Vector<FolderConfiguration>& GetFolderConfigurations() const{ return m_folderConfigurations; }
81 inline void SetFolderConfigurations(const Aws::Vector<FolderConfiguration>& value) { m_folderConfigurations = value; }
82 inline void SetFolderConfigurations(Aws::Vector<FolderConfiguration>&& value) { m_folderConfigurations = std::move(value); }
85 inline GetDefaultRetentionPolicyResult& AddFolderConfigurations(const FolderConfiguration& value) { m_folderConfigurations.push_back(value); return *this; }
86 inline GetDefaultRetentionPolicyResult& AddFolderConfigurations(FolderConfiguration&& value) { m_folderConfigurations.push_back(std::move(value)); return *this; }
88
90
91 inline const Aws::String& GetRequestId() const{ return m_requestId; }
92 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
93 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
94 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
95 inline GetDefaultRetentionPolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
96 inline GetDefaultRetentionPolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
97 inline GetDefaultRetentionPolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
99 private:
100
101 Aws::String m_id;
102
103 Aws::String m_name;
104
105 Aws::String m_description;
106
107 Aws::Vector<FolderConfiguration> m_folderConfigurations;
108
109 Aws::String m_requestId;
110 };
111
112} // namespace Model
113} // namespace WorkMail
114} // namespace Aws
GetDefaultRetentionPolicyResult & WithId(const Aws::String &value)
GetDefaultRetentionPolicyResult & WithId(Aws::String &&value)
GetDefaultRetentionPolicyResult & WithName(Aws::String &&value)
const Aws::Vector< FolderConfiguration > & GetFolderConfigurations() const
GetDefaultRetentionPolicyResult & AddFolderConfigurations(FolderConfiguration &&value)
GetDefaultRetentionPolicyResult & WithRequestId(const Aws::String &value)
AWS_WORKMAIL_API GetDefaultRetentionPolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDefaultRetentionPolicyResult & WithDescription(const char *value)
GetDefaultRetentionPolicyResult & WithName(const char *value)
GetDefaultRetentionPolicyResult & WithFolderConfigurations(Aws::Vector< FolderConfiguration > &&value)
GetDefaultRetentionPolicyResult & WithFolderConfigurations(const Aws::Vector< FolderConfiguration > &value)
void SetFolderConfigurations(const Aws::Vector< FolderConfiguration > &value)
GetDefaultRetentionPolicyResult & WithRequestId(const char *value)
GetDefaultRetentionPolicyResult & WithDescription(const Aws::String &value)
void SetFolderConfigurations(Aws::Vector< FolderConfiguration > &&value)
GetDefaultRetentionPolicyResult & WithRequestId(Aws::String &&value)
GetDefaultRetentionPolicyResult & WithId(const char *value)
GetDefaultRetentionPolicyResult & WithDescription(Aws::String &&value)
AWS_WORKMAIL_API GetDefaultRetentionPolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDefaultRetentionPolicyResult & AddFolderConfigurations(const FolderConfiguration &value)
GetDefaultRetentionPolicyResult & WithName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue