AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribePoliciesRequest.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/autoscaling/AutoScalingRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace AutoScaling
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_AUTOSCALING_API DescribePoliciesRequest();
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "DescribePolicies"; }
32
33 AWS_AUTOSCALING_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37
38 public:
39
41
44 inline const Aws::String& GetAutoScalingGroupName() const{ return m_autoScalingGroupName; }
45 inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; }
46 inline void SetAutoScalingGroupName(const Aws::String& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; }
47 inline void SetAutoScalingGroupName(Aws::String&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = std::move(value); }
48 inline void SetAutoScalingGroupName(const char* value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName.assign(value); }
50 inline DescribePoliciesRequest& WithAutoScalingGroupName(Aws::String&& value) { SetAutoScalingGroupName(std::move(value)); return *this;}
51 inline DescribePoliciesRequest& WithAutoScalingGroupName(const char* value) { SetAutoScalingGroupName(value); return *this;}
53
55
61 inline const Aws::Vector<Aws::String>& GetPolicyNames() const{ return m_policyNames; }
62 inline bool PolicyNamesHasBeenSet() const { return m_policyNamesHasBeenSet; }
63 inline void SetPolicyNames(const Aws::Vector<Aws::String>& value) { m_policyNamesHasBeenSet = true; m_policyNames = value; }
64 inline void SetPolicyNames(Aws::Vector<Aws::String>&& value) { m_policyNamesHasBeenSet = true; m_policyNames = std::move(value); }
66 inline DescribePoliciesRequest& WithPolicyNames(Aws::Vector<Aws::String>&& value) { SetPolicyNames(std::move(value)); return *this;}
67 inline DescribePoliciesRequest& AddPolicyNames(const Aws::String& value) { m_policyNamesHasBeenSet = true; m_policyNames.push_back(value); return *this; }
68 inline DescribePoliciesRequest& AddPolicyNames(Aws::String&& value) { m_policyNamesHasBeenSet = true; m_policyNames.push_back(std::move(value)); return *this; }
69 inline DescribePoliciesRequest& AddPolicyNames(const char* value) { m_policyNamesHasBeenSet = true; m_policyNames.push_back(value); return *this; }
71
73
78 inline const Aws::Vector<Aws::String>& GetPolicyTypes() const{ return m_policyTypes; }
79 inline bool PolicyTypesHasBeenSet() const { return m_policyTypesHasBeenSet; }
80 inline void SetPolicyTypes(const Aws::Vector<Aws::String>& value) { m_policyTypesHasBeenSet = true; m_policyTypes = value; }
81 inline void SetPolicyTypes(Aws::Vector<Aws::String>&& value) { m_policyTypesHasBeenSet = true; m_policyTypes = std::move(value); }
83 inline DescribePoliciesRequest& WithPolicyTypes(Aws::Vector<Aws::String>&& value) { SetPolicyTypes(std::move(value)); return *this;}
84 inline DescribePoliciesRequest& AddPolicyTypes(const Aws::String& value) { m_policyTypesHasBeenSet = true; m_policyTypes.push_back(value); return *this; }
85 inline DescribePoliciesRequest& AddPolicyTypes(Aws::String&& value) { m_policyTypesHasBeenSet = true; m_policyTypes.push_back(std::move(value)); return *this; }
86 inline DescribePoliciesRequest& AddPolicyTypes(const char* value) { m_policyTypesHasBeenSet = true; m_policyTypes.push_back(value); return *this; }
88
90
94 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
95 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
96 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
97 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
98 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
99 inline DescribePoliciesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
100 inline DescribePoliciesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
101 inline DescribePoliciesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
103
105
109 inline int GetMaxRecords() const{ return m_maxRecords; }
110 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
111 inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
112 inline DescribePoliciesRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
114 private:
115
116 Aws::String m_autoScalingGroupName;
117 bool m_autoScalingGroupNameHasBeenSet = false;
118
119 Aws::Vector<Aws::String> m_policyNames;
120 bool m_policyNamesHasBeenSet = false;
121
122 Aws::Vector<Aws::String> m_policyTypes;
123 bool m_policyTypesHasBeenSet = false;
124
125 Aws::String m_nextToken;
126 bool m_nextTokenHasBeenSet = false;
127
128 int m_maxRecords;
129 bool m_maxRecordsHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace AutoScaling
134} // namespace Aws
DescribePoliciesRequest & AddPolicyTypes(Aws::String &&value)
const Aws::Vector< Aws::String > & GetPolicyNames() const
DescribePoliciesRequest & WithNextToken(const Aws::String &value)
DescribePoliciesRequest & WithPolicyNames(Aws::Vector< Aws::String > &&value)
DescribePoliciesRequest & WithAutoScalingGroupName(const char *value)
DescribePoliciesRequest & AddPolicyNames(Aws::String &&value)
DescribePoliciesRequest & WithPolicyTypes(const Aws::Vector< Aws::String > &value)
DescribePoliciesRequest & WithPolicyNames(const Aws::Vector< Aws::String > &value)
DescribePoliciesRequest & AddPolicyNames(const char *value)
const Aws::Vector< Aws::String > & GetPolicyTypes() const
AWS_AUTOSCALING_API Aws::String SerializePayload() const override
void SetPolicyTypes(Aws::Vector< Aws::String > &&value)
DescribePoliciesRequest & WithNextToken(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
DescribePoliciesRequest & WithAutoScalingGroupName(Aws::String &&value)
DescribePoliciesRequest & AddPolicyNames(const Aws::String &value)
void SetPolicyNames(const Aws::Vector< Aws::String > &value)
DescribePoliciesRequest & WithNextToken(const char *value)
DescribePoliciesRequest & WithAutoScalingGroupName(const Aws::String &value)
DescribePoliciesRequest & WithPolicyTypes(Aws::Vector< Aws::String > &&value)
DescribePoliciesRequest & AddPolicyTypes(const Aws::String &value)
DescribePoliciesRequest & WithMaxRecords(int value)
void SetPolicyTypes(const Aws::Vector< Aws::String > &value)
DescribePoliciesRequest & AddPolicyTypes(const char *value)
void SetPolicyNames(Aws::Vector< Aws::String > &&value)
AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector