AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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:
32 AWS_WORKMAIL_API GetDefaultRetentionPolicyResult() = default;
35
36
38
41 inline const Aws::String& GetId() const { return m_id; }
42 template<typename IdT = Aws::String>
43 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
44 template<typename IdT = Aws::String>
45 GetDefaultRetentionPolicyResult& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
47
49
52 inline const Aws::String& GetName() const { return m_name; }
53 template<typename NameT = Aws::String>
54 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
55 template<typename NameT = Aws::String>
56 GetDefaultRetentionPolicyResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
58
60
63 inline const Aws::String& GetDescription() const { return m_description; }
64 template<typename DescriptionT = Aws::String>
65 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
66 template<typename DescriptionT = Aws::String>
67 GetDefaultRetentionPolicyResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
69
71
74 inline const Aws::Vector<FolderConfiguration>& GetFolderConfigurations() const { return m_folderConfigurations; }
75 template<typename FolderConfigurationsT = Aws::Vector<FolderConfiguration>>
76 void SetFolderConfigurations(FolderConfigurationsT&& value) { m_folderConfigurationsHasBeenSet = true; m_folderConfigurations = std::forward<FolderConfigurationsT>(value); }
77 template<typename FolderConfigurationsT = Aws::Vector<FolderConfiguration>>
78 GetDefaultRetentionPolicyResult& WithFolderConfigurations(FolderConfigurationsT&& value) { SetFolderConfigurations(std::forward<FolderConfigurationsT>(value)); return *this;}
79 template<typename FolderConfigurationsT = FolderConfiguration>
80 GetDefaultRetentionPolicyResult& AddFolderConfigurations(FolderConfigurationsT&& value) { m_folderConfigurationsHasBeenSet = true; m_folderConfigurations.emplace_back(std::forward<FolderConfigurationsT>(value)); return *this; }
82
84
85 inline const Aws::String& GetRequestId() const { return m_requestId; }
86 template<typename RequestIdT = Aws::String>
87 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
88 template<typename RequestIdT = Aws::String>
89 GetDefaultRetentionPolicyResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
91 private:
92
93 Aws::String m_id;
94 bool m_idHasBeenSet = false;
95
96 Aws::String m_name;
97 bool m_nameHasBeenSet = false;
98
99 Aws::String m_description;
100 bool m_descriptionHasBeenSet = false;
101
102 Aws::Vector<FolderConfiguration> m_folderConfigurations;
103 bool m_folderConfigurationsHasBeenSet = false;
104
105 Aws::String m_requestId;
106 bool m_requestIdHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace WorkMail
111} // namespace Aws
GetDefaultRetentionPolicyResult & WithDescription(DescriptionT &&value)
GetDefaultRetentionPolicyResult & WithName(NameT &&value)
const Aws::Vector< FolderConfiguration > & GetFolderConfigurations() const
AWS_WORKMAIL_API GetDefaultRetentionPolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetDefaultRetentionPolicyResult & AddFolderConfigurations(FolderConfigurationsT &&value)
AWS_WORKMAIL_API GetDefaultRetentionPolicyResult()=default
GetDefaultRetentionPolicyResult & WithRequestId(RequestIdT &&value)
GetDefaultRetentionPolicyResult & WithFolderConfigurations(FolderConfigurationsT &&value)
AWS_WORKMAIL_API GetDefaultRetentionPolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue