AWS SDK for C++  1.9.40
AWS SDK for C++
SetStackPolicyRequest.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 
25  {
26  public:
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::String SerializePayload() const override;
36 
37  protected:
38  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39 
40  public:
41 
45  inline const Aws::String& GetStackName() const{ return m_stackName; }
46 
50  inline bool StackNameHasBeenSet() const { return m_stackNameHasBeenSet; }
51 
55  inline void SetStackName(const Aws::String& value) { m_stackNameHasBeenSet = true; m_stackName = value; }
56 
60  inline void SetStackName(Aws::String&& value) { m_stackNameHasBeenSet = true; m_stackName = std::move(value); }
61 
65  inline void SetStackName(const char* value) { m_stackNameHasBeenSet = true; m_stackName.assign(value); }
66 
70  inline SetStackPolicyRequest& WithStackName(const Aws::String& value) { SetStackName(value); return *this;}
71 
75  inline SetStackPolicyRequest& WithStackName(Aws::String&& value) { SetStackName(std::move(value)); return *this;}
76 
80  inline SetStackPolicyRequest& WithStackName(const char* value) { SetStackName(value); return *this;}
81 
82 
90  inline const Aws::String& GetStackPolicyBody() const{ return m_stackPolicyBody; }
91 
99  inline bool StackPolicyBodyHasBeenSet() const { return m_stackPolicyBodyHasBeenSet; }
100 
108  inline void SetStackPolicyBody(const Aws::String& value) { m_stackPolicyBodyHasBeenSet = true; m_stackPolicyBody = value; }
109 
117  inline void SetStackPolicyBody(Aws::String&& value) { m_stackPolicyBodyHasBeenSet = true; m_stackPolicyBody = std::move(value); }
118 
126  inline void SetStackPolicyBody(const char* value) { m_stackPolicyBodyHasBeenSet = true; m_stackPolicyBody.assign(value); }
127 
135  inline SetStackPolicyRequest& WithStackPolicyBody(const Aws::String& value) { SetStackPolicyBody(value); return *this;}
136 
144  inline SetStackPolicyRequest& WithStackPolicyBody(Aws::String&& value) { SetStackPolicyBody(std::move(value)); return *this;}
145 
153  inline SetStackPolicyRequest& WithStackPolicyBody(const char* value) { SetStackPolicyBody(value); return *this;}
154 
155 
162  inline const Aws::String& GetStackPolicyURL() const{ return m_stackPolicyURL; }
163 
170  inline bool StackPolicyURLHasBeenSet() const { return m_stackPolicyURLHasBeenSet; }
171 
178  inline void SetStackPolicyURL(const Aws::String& value) { m_stackPolicyURLHasBeenSet = true; m_stackPolicyURL = value; }
179 
186  inline void SetStackPolicyURL(Aws::String&& value) { m_stackPolicyURLHasBeenSet = true; m_stackPolicyURL = std::move(value); }
187 
194  inline void SetStackPolicyURL(const char* value) { m_stackPolicyURLHasBeenSet = true; m_stackPolicyURL.assign(value); }
195 
202  inline SetStackPolicyRequest& WithStackPolicyURL(const Aws::String& value) { SetStackPolicyURL(value); return *this;}
203 
210  inline SetStackPolicyRequest& WithStackPolicyURL(Aws::String&& value) { SetStackPolicyURL(std::move(value)); return *this;}
211 
218  inline SetStackPolicyRequest& WithStackPolicyURL(const char* value) { SetStackPolicyURL(value); return *this;}
219 
220  private:
221 
222  Aws::String m_stackName;
223  bool m_stackNameHasBeenSet;
224 
225  Aws::String m_stackPolicyBody;
226  bool m_stackPolicyBodyHasBeenSet;
227 
228  Aws::String m_stackPolicyURL;
229  bool m_stackPolicyURLHasBeenSet;
230  };
231 
232 } // namespace Model
233 } // namespace CloudFormation
234 } // namespace Aws
Aws::CloudFormation::Model::SetStackPolicyRequest::WithStackPolicyURL
SetStackPolicyRequest & WithStackPolicyURL(const Aws::String &value)
Definition: SetStackPolicyRequest.h:202
Aws::CloudFormation::Model::SetStackPolicyRequest::WithStackPolicyURL
SetStackPolicyRequest & WithStackPolicyURL(Aws::String &&value)
Definition: SetStackPolicyRequest.h:210
Aws::Http::URI
Definition: URI.h:32
Aws::CloudFormation::Model::SetStackPolicyRequest
Definition: SetStackPolicyRequest.h:25
CloudFormation_EXPORTS.h
Aws::CloudFormation::Model::SetStackPolicyRequest::StackNameHasBeenSet
bool StackNameHasBeenSet() const
Definition: SetStackPolicyRequest.h:50
Aws::CloudFormation::Model::SetStackPolicyRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::CloudFormation::Model::SetStackPolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SetStackPolicyRequest.h:33
Aws::CloudFormation::Model::SetStackPolicyRequest::SetStackPolicyBody
void SetStackPolicyBody(Aws::String &&value)
Definition: SetStackPolicyRequest.h:117
CloudFormationRequest.h
Aws::CloudFormation::Model::SetStackPolicyRequest::WithStackPolicyBody
SetStackPolicyRequest & WithStackPolicyBody(const char *value)
Definition: SetStackPolicyRequest.h:153
Aws::CloudFormation::Model::SetStackPolicyRequest::WithStackName
SetStackPolicyRequest & WithStackName(const Aws::String &value)
Definition: SetStackPolicyRequest.h:70
Aws::CloudFormation::Model::SetStackPolicyRequest::WithStackPolicyURL
SetStackPolicyRequest & WithStackPolicyURL(const char *value)
Definition: SetStackPolicyRequest.h:218
Aws::CloudFormation::Model::SetStackPolicyRequest::StackPolicyBodyHasBeenSet
bool StackPolicyBodyHasBeenSet() const
Definition: SetStackPolicyRequest.h:99
Aws::CloudFormation::CloudFormationRequest
Definition: CloudFormationRequest.h:17
Aws::CloudFormation::Model::SetStackPolicyRequest::SetStackPolicyURL
void SetStackPolicyURL(const char *value)
Definition: SetStackPolicyRequest.h:194
Aws::CloudFormation::Model::SetStackPolicyRequest::SetStackName
void SetStackName(const char *value)
Definition: SetStackPolicyRequest.h:65
AWSString.h
Aws::CloudFormation::Model::SetStackPolicyRequest::SetStackName
void SetStackName(Aws::String &&value)
Definition: SetStackPolicyRequest.h:60
Aws::CloudFormation::Model::SetStackPolicyRequest::SetStackPolicyBody
void SetStackPolicyBody(const char *value)
Definition: SetStackPolicyRequest.h:126
Aws::CloudFormation::Model::SetStackPolicyRequest::GetStackName
const Aws::String & GetStackName() const
Definition: SetStackPolicyRequest.h:45
Aws::CloudFormation::Model::SetStackPolicyRequest::SetStackPolicyBody
void SetStackPolicyBody(const Aws::String &value)
Definition: SetStackPolicyRequest.h:108
Aws::CloudFormation::Model::SetStackPolicyRequest::SetStackPolicyURL
void SetStackPolicyURL(Aws::String &&value)
Definition: SetStackPolicyRequest.h:186
AWS_CLOUDFORMATION_API
#define AWS_CLOUDFORMATION_API
Definition: CloudFormation_EXPORTS.h:28
Aws::CloudFormation::Model::SetStackPolicyRequest::WithStackPolicyBody
SetStackPolicyRequest & WithStackPolicyBody(Aws::String &&value)
Definition: SetStackPolicyRequest.h:144
Aws::CloudFormation::Model::SetStackPolicyRequest::GetStackPolicyBody
const Aws::String & GetStackPolicyBody() const
Definition: SetStackPolicyRequest.h:90
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFormation::Model::SetStackPolicyRequest::SetStackPolicyRequest
SetStackPolicyRequest()
Aws::CloudFormation::Model::SetStackPolicyRequest::SetStackPolicyURL
void SetStackPolicyURL(const Aws::String &value)
Definition: SetStackPolicyRequest.h:178
Aws::CloudFormation::Model::SetStackPolicyRequest::GetStackPolicyURL
const Aws::String & GetStackPolicyURL() const
Definition: SetStackPolicyRequest.h:162
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudFormation::Model::SetStackPolicyRequest::WithStackName
SetStackPolicyRequest & WithStackName(Aws::String &&value)
Definition: SetStackPolicyRequest.h:75
Aws::CloudFormation::Model::SetStackPolicyRequest::WithStackPolicyBody
SetStackPolicyRequest & WithStackPolicyBody(const Aws::String &value)
Definition: SetStackPolicyRequest.h:135
Aws::CloudFormation::Model::SetStackPolicyRequest::StackPolicyURLHasBeenSet
bool StackPolicyURLHasBeenSet() const
Definition: SetStackPolicyRequest.h:170
Aws::CloudFormation::Model::SetStackPolicyRequest::SetStackName
void SetStackName(const Aws::String &value)
Definition: SetStackPolicyRequest.h:55
Aws::CloudFormation::Model::SetStackPolicyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CloudFormation::Model::SetStackPolicyRequest::WithStackName
SetStackPolicyRequest & WithStackName(const char *value)
Definition: SetStackPolicyRequest.h:80