AWS SDK for C++  1.8.71
AWS SDK for C++
DeletePolicyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace AutoScaling
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "DeletePolicy"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
42  inline const Aws::String& GetAutoScalingGroupName() const{ return m_autoScalingGroupName; }
43 
47  inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; }
48 
52  inline void SetAutoScalingGroupName(const Aws::String& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; }
53 
57  inline void SetAutoScalingGroupName(Aws::String&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = std::move(value); }
58 
62  inline void SetAutoScalingGroupName(const char* value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName.assign(value); }
63 
67  inline DeletePolicyRequest& WithAutoScalingGroupName(const Aws::String& value) { SetAutoScalingGroupName(value); return *this;}
68 
72  inline DeletePolicyRequest& WithAutoScalingGroupName(Aws::String&& value) { SetAutoScalingGroupName(std::move(value)); return *this;}
73 
77  inline DeletePolicyRequest& WithAutoScalingGroupName(const char* value) { SetAutoScalingGroupName(value); return *this;}
78 
79 
83  inline const Aws::String& GetPolicyName() const{ return m_policyName; }
84 
88  inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
89 
93  inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
94 
98  inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
99 
103  inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
104 
108  inline DeletePolicyRequest& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
109 
113  inline DeletePolicyRequest& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
114 
118  inline DeletePolicyRequest& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
119 
120  private:
121 
122  Aws::String m_autoScalingGroupName;
123  bool m_autoScalingGroupNameHasBeenSet;
124 
125  Aws::String m_policyName;
126  bool m_policyNameHasBeenSet;
127  };
128 
129 } // namespace Model
130 } // namespace AutoScaling
131 } // namespace Aws
DeletePolicyRequest & WithPolicyName(const Aws::String &value)
void SetPolicyName(const Aws::String &value)
DeletePolicyRequest & WithPolicyName(const char *value)
DeletePolicyRequest & WithAutoScalingGroupName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
DeletePolicyRequest & WithAutoScalingGroupName(const Aws::String &value)
DeletePolicyRequest & WithAutoScalingGroupName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DeletePolicyRequest & WithPolicyName(Aws::String &&value)
void SetAutoScalingGroupName(const Aws::String &value)
#define AWS_AUTOSCALING_API
const Aws::String & GetAutoScalingGroupName() const