AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
DescribeAccountPoliciesRequest.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/logs/CloudWatchLogsRequest.h>
9#include <aws/logs/model/PolicyType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CloudWatchLogs
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CLOUDWATCHLOGS_API DescribeAccountPoliciesRequest() = 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 "DescribeAccountPolicies"; }
33
34 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
35
36 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
44 inline PolicyType GetPolicyType() const { return m_policyType; }
45 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
46 inline void SetPolicyType(PolicyType value) { m_policyTypeHasBeenSet = true; m_policyType = value; }
49
51
55 inline const Aws::String& GetPolicyName() const { return m_policyName; }
56 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
57 template<typename PolicyNameT = Aws::String>
58 void SetPolicyName(PolicyNameT&& value) { m_policyNameHasBeenSet = true; m_policyName = std::forward<PolicyNameT>(value); }
59 template<typename PolicyNameT = Aws::String>
60 DescribeAccountPoliciesRequest& WithPolicyName(PolicyNameT&& value) { SetPolicyName(std::forward<PolicyNameT>(value)); return *this;}
62
64
72 inline const Aws::Vector<Aws::String>& GetAccountIdentifiers() const { return m_accountIdentifiers; }
73 inline bool AccountIdentifiersHasBeenSet() const { return m_accountIdentifiersHasBeenSet; }
74 template<typename AccountIdentifiersT = Aws::Vector<Aws::String>>
75 void SetAccountIdentifiers(AccountIdentifiersT&& value) { m_accountIdentifiersHasBeenSet = true; m_accountIdentifiers = std::forward<AccountIdentifiersT>(value); }
76 template<typename AccountIdentifiersT = Aws::Vector<Aws::String>>
77 DescribeAccountPoliciesRequest& WithAccountIdentifiers(AccountIdentifiersT&& value) { SetAccountIdentifiers(std::forward<AccountIdentifiersT>(value)); return *this;}
78 template<typename AccountIdentifiersT = Aws::String>
79 DescribeAccountPoliciesRequest& AddAccountIdentifiers(AccountIdentifiersT&& value) { m_accountIdentifiersHasBeenSet = true; m_accountIdentifiers.emplace_back(std::forward<AccountIdentifiersT>(value)); return *this; }
81
83
87 inline const Aws::String& GetNextToken() const { return m_nextToken; }
88 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
89 template<typename NextTokenT = Aws::String>
90 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
91 template<typename NextTokenT = Aws::String>
92 DescribeAccountPoliciesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
94 private:
95
96 PolicyType m_policyType{PolicyType::NOT_SET};
97 bool m_policyTypeHasBeenSet = false;
98
99 Aws::String m_policyName;
100 bool m_policyNameHasBeenSet = false;
101
102 Aws::Vector<Aws::String> m_accountIdentifiers;
103 bool m_accountIdentifiersHasBeenSet = false;
104
105 Aws::String m_nextToken;
106 bool m_nextTokenHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace CloudWatchLogs
111} // 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