AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeResourcePoliciesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/logs/CloudWatchLogsRequest.h>
9#include <aws/logs/CloudWatchLogs_EXPORTS.h>
10#include <aws/logs/model/PolicyScope.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CloudWatchLogs {
16namespace Model {
17
21 public:
22 AWS_CLOUDWATCHLOGS_API DescribeResourcePoliciesRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "DescribeResourcePolicies"; }
29
30 AWS_CLOUDWATCHLOGS_API Aws::String SerializePayload() const override;
31
32 AWS_CLOUDWATCHLOGS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
36 inline const Aws::String& GetNextToken() const { return m_nextToken; }
37 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
38 template <typename NextTokenT = Aws::String>
39 void SetNextToken(NextTokenT&& value) {
40 m_nextTokenHasBeenSet = true;
41 m_nextToken = std::forward<NextTokenT>(value);
42 }
43 template <typename NextTokenT = Aws::String>
45 SetNextToken(std::forward<NextTokenT>(value));
46 return *this;
47 }
49
51
55 inline int GetLimit() const { return m_limit; }
56 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
57 inline void SetLimit(int value) {
58 m_limitHasBeenSet = true;
59 m_limit = value;
60 }
62 SetLimit(value);
63 return *this;
64 }
66
68
72 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
73 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
74 template <typename ResourceArnT = Aws::String>
75 void SetResourceArn(ResourceArnT&& value) {
76 m_resourceArnHasBeenSet = true;
77 m_resourceArn = std::forward<ResourceArnT>(value);
78 }
79 template <typename ResourceArnT = Aws::String>
81 SetResourceArn(std::forward<ResourceArnT>(value));
82 return *this;
83 }
85
87
92 inline PolicyScope GetPolicyScope() const { return m_policyScope; }
93 inline bool PolicyScopeHasBeenSet() const { return m_policyScopeHasBeenSet; }
94 inline void SetPolicyScope(PolicyScope value) {
95 m_policyScopeHasBeenSet = true;
96 m_policyScope = value;
97 }
99 SetPolicyScope(value);
100 return *this;
101 }
103 private:
104 Aws::String m_nextToken;
105
106 int m_limit{0};
107
108 Aws::String m_resourceArn;
109
110 PolicyScope m_policyScope{PolicyScope::NOT_SET};
111 bool m_nextTokenHasBeenSet = false;
112 bool m_limitHasBeenSet = false;
113 bool m_resourceArnHasBeenSet = false;
114 bool m_policyScopeHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace CloudWatchLogs
119} // namespace Aws
DescribeResourcePoliciesRequest & WithResourceArn(ResourceArnT &&value)
DescribeResourcePoliciesRequest & WithPolicyScope(PolicyScope value)
DescribeResourcePoliciesRequest & WithNextToken(NextTokenT &&value)
AWS_CLOUDWATCHLOGS_API DescribeResourcePoliciesRequest()=default
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