AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeAccountPoliciesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/logs/CloudWatchLogsRequest.h>
10#include <aws/logs/CloudWatchLogs_EXPORTS.h>
11#include <aws/logs/model/PolicyType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace CloudWatchLogs {
17namespace Model {
18
22 public:
23 AWS_CLOUDWATCHLOGS_API DescribeAccountPoliciesRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "DescribeAccountPolicies"; }
30
31 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
32
33 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
40 inline PolicyType GetPolicyType() const { return m_policyType; }
41 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
42 inline void SetPolicyType(PolicyType value) {
43 m_policyTypeHasBeenSet = true;
44 m_policyType = value;
45 }
47 SetPolicyType(value);
48 return *this;
49 }
51
53
57 inline const Aws::String& GetPolicyName() const { return m_policyName; }
58 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
59 template <typename PolicyNameT = Aws::String>
60 void SetPolicyName(PolicyNameT&& value) {
61 m_policyNameHasBeenSet = true;
62 m_policyName = std::forward<PolicyNameT>(value);
63 }
64 template <typename PolicyNameT = Aws::String>
66 SetPolicyName(std::forward<PolicyNameT>(value));
67 return *this;
68 }
70
72
80 inline const Aws::Vector<Aws::String>& GetAccountIdentifiers() const { return m_accountIdentifiers; }
81 inline bool AccountIdentifiersHasBeenSet() const { return m_accountIdentifiersHasBeenSet; }
82 template <typename AccountIdentifiersT = Aws::Vector<Aws::String>>
83 void SetAccountIdentifiers(AccountIdentifiersT&& value) {
84 m_accountIdentifiersHasBeenSet = true;
85 m_accountIdentifiers = std::forward<AccountIdentifiersT>(value);
86 }
87 template <typename AccountIdentifiersT = Aws::Vector<Aws::String>>
89 SetAccountIdentifiers(std::forward<AccountIdentifiersT>(value));
90 return *this;
91 }
92 template <typename AccountIdentifiersT = Aws::String>
94 m_accountIdentifiersHasBeenSet = true;
95 m_accountIdentifiers.emplace_back(std::forward<AccountIdentifiersT>(value));
96 return *this;
97 }
99
101
105 inline const Aws::String& GetNextToken() const { return m_nextToken; }
106 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
107 template <typename NextTokenT = Aws::String>
108 void SetNextToken(NextTokenT&& value) {
109 m_nextTokenHasBeenSet = true;
110 m_nextToken = std::forward<NextTokenT>(value);
111 }
112 template <typename NextTokenT = Aws::String>
114 SetNextToken(std::forward<NextTokenT>(value));
115 return *this;
116 }
118 private:
119 PolicyType m_policyType{PolicyType::NOT_SET};
120
121 Aws::String m_policyName;
122
123 Aws::Vector<Aws::String> m_accountIdentifiers;
124
125 Aws::String m_nextToken;
126 bool m_policyTypeHasBeenSet = false;
127 bool m_policyNameHasBeenSet = false;
128 bool m_accountIdentifiersHasBeenSet = false;
129 bool m_nextTokenHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace CloudWatchLogs
134} // namespace Aws
DescribeAccountPoliciesRequest & WithAccountIdentifiers(AccountIdentifiersT &&value)
AWS_CLOUDWATCHLOGS_API DescribeAccountPoliciesRequest()=default
DescribeAccountPoliciesRequest & WithNextToken(NextTokenT &&value)
DescribeAccountPoliciesRequest & WithPolicyType(PolicyType value)
DescribeAccountPoliciesRequest & WithPolicyName(PolicyNameT &&value)
DescribeAccountPoliciesRequest & AddAccountIdentifiers(AccountIdentifiersT &&value)
AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override
AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
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