AWS SDK for C++  1.8.71
AWS SDK for C++
UpdateTerminationProtectionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace CloudFormation
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 "UpdateTerminationProtection"; }
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 bool GetEnableTerminationProtection() const{ return m_enableTerminationProtection; }
43 
47  inline bool EnableTerminationProtectionHasBeenSet() const { return m_enableTerminationProtectionHasBeenSet; }
48 
52  inline void SetEnableTerminationProtection(bool value) { m_enableTerminationProtectionHasBeenSet = true; m_enableTerminationProtection = value; }
53 
57  inline UpdateTerminationProtectionRequest& WithEnableTerminationProtection(bool value) { SetEnableTerminationProtection(value); return *this;}
58 
59 
64  inline const Aws::String& GetStackName() const{ return m_stackName; }
65 
70  inline bool StackNameHasBeenSet() const { return m_stackNameHasBeenSet; }
71 
76  inline void SetStackName(const Aws::String& value) { m_stackNameHasBeenSet = true; m_stackName = value; }
77 
82  inline void SetStackName(Aws::String&& value) { m_stackNameHasBeenSet = true; m_stackName = std::move(value); }
83 
88  inline void SetStackName(const char* value) { m_stackNameHasBeenSet = true; m_stackName.assign(value); }
89 
94  inline UpdateTerminationProtectionRequest& WithStackName(const Aws::String& value) { SetStackName(value); return *this;}
95 
100  inline UpdateTerminationProtectionRequest& WithStackName(Aws::String&& value) { SetStackName(std::move(value)); return *this;}
101 
106  inline UpdateTerminationProtectionRequest& WithStackName(const char* value) { SetStackName(value); return *this;}
107 
108  private:
109 
110  bool m_enableTerminationProtection;
111  bool m_enableTerminationProtectionHasBeenSet;
112 
113  Aws::String m_stackName;
114  bool m_stackNameHasBeenSet;
115  };
116 
117 } // namespace Model
118 } // namespace CloudFormation
119 } // namespace Aws
UpdateTerminationProtectionRequest & WithStackName(const Aws::String &value)
UpdateTerminationProtectionRequest & WithStackName(Aws::String &&value)
UpdateTerminationProtectionRequest & WithEnableTerminationProtection(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UpdateTerminationProtectionRequest & WithStackName(const char *value)
#define AWS_CLOUDFORMATION_API