AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SetStackPolicyRequest.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/cloudformation/CloudFormationRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace CloudFormation
15{
16namespace Model
17{
18
25 {
26 public:
27 AWS_CLOUDFORMATION_API SetStackPolicyRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "SetStackPolicy"; }
34
35 AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
43
46 inline const Aws::String& GetStackName() const{ return m_stackName; }
47 inline bool StackNameHasBeenSet() const { return m_stackNameHasBeenSet; }
48 inline void SetStackName(const Aws::String& value) { m_stackNameHasBeenSet = true; m_stackName = value; }
49 inline void SetStackName(Aws::String&& value) { m_stackNameHasBeenSet = true; m_stackName = std::move(value); }
50 inline void SetStackName(const char* value) { m_stackNameHasBeenSet = true; m_stackName.assign(value); }
51 inline SetStackPolicyRequest& WithStackName(const Aws::String& value) { SetStackName(value); return *this;}
52 inline SetStackPolicyRequest& WithStackName(Aws::String&& value) { SetStackName(std::move(value)); return *this;}
53 inline SetStackPolicyRequest& WithStackName(const char* value) { SetStackName(value); return *this;}
55
57
64 inline const Aws::String& GetStackPolicyBody() const{ return m_stackPolicyBody; }
65 inline bool StackPolicyBodyHasBeenSet() const { return m_stackPolicyBodyHasBeenSet; }
66 inline void SetStackPolicyBody(const Aws::String& value) { m_stackPolicyBodyHasBeenSet = true; m_stackPolicyBody = value; }
67 inline void SetStackPolicyBody(Aws::String&& value) { m_stackPolicyBodyHasBeenSet = true; m_stackPolicyBody = std::move(value); }
68 inline void SetStackPolicyBody(const char* value) { m_stackPolicyBodyHasBeenSet = true; m_stackPolicyBody.assign(value); }
69 inline SetStackPolicyRequest& WithStackPolicyBody(const Aws::String& value) { SetStackPolicyBody(value); return *this;}
70 inline SetStackPolicyRequest& WithStackPolicyBody(Aws::String&& value) { SetStackPolicyBody(std::move(value)); return *this;}
71 inline SetStackPolicyRequest& WithStackPolicyBody(const char* value) { SetStackPolicyBody(value); return *this;}
73
75
83 inline const Aws::String& GetStackPolicyURL() const{ return m_stackPolicyURL; }
84 inline bool StackPolicyURLHasBeenSet() const { return m_stackPolicyURLHasBeenSet; }
85 inline void SetStackPolicyURL(const Aws::String& value) { m_stackPolicyURLHasBeenSet = true; m_stackPolicyURL = value; }
86 inline void SetStackPolicyURL(Aws::String&& value) { m_stackPolicyURLHasBeenSet = true; m_stackPolicyURL = std::move(value); }
87 inline void SetStackPolicyURL(const char* value) { m_stackPolicyURLHasBeenSet = true; m_stackPolicyURL.assign(value); }
88 inline SetStackPolicyRequest& WithStackPolicyURL(const Aws::String& value) { SetStackPolicyURL(value); return *this;}
89 inline SetStackPolicyRequest& WithStackPolicyURL(Aws::String&& value) { SetStackPolicyURL(std::move(value)); return *this;}
90 inline SetStackPolicyRequest& WithStackPolicyURL(const char* value) { SetStackPolicyURL(value); return *this;}
92 private:
93
94 Aws::String m_stackName;
95 bool m_stackNameHasBeenSet = false;
96
97 Aws::String m_stackPolicyBody;
98 bool m_stackPolicyBodyHasBeenSet = false;
99
100 Aws::String m_stackPolicyURL;
101 bool m_stackPolicyURLHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace CloudFormation
106} // namespace Aws
SetStackPolicyRequest & WithStackPolicyURL(const Aws::String &value)
SetStackPolicyRequest & WithStackName(const char *value)
SetStackPolicyRequest & WithStackPolicyURL(Aws::String &&value)
SetStackPolicyRequest & WithStackPolicyBody(Aws::String &&value)
SetStackPolicyRequest & WithStackPolicyBody(const Aws::String &value)
SetStackPolicyRequest & WithStackName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
SetStackPolicyRequest & WithStackPolicyURL(const char *value)
SetStackPolicyRequest & WithStackPolicyBody(const char *value)
SetStackPolicyRequest & WithStackName(Aws::String &&value)
AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String