AWS SDK for C++  0.14.3
AWS SDK for C++
SetStackPolicyRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace CloudFormation
23 {
24 namespace Model
25 {
26 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
39  inline const Aws::String& GetStackName() const{ return m_stackName; }
40 
44  inline void SetStackName(const Aws::String& value) { m_stackNameHasBeenSet = true; m_stackName = value; }
45 
49  inline void SetStackName(Aws::String&& value) { m_stackNameHasBeenSet = true; m_stackName = value; }
50 
54  inline void SetStackName(const char* value) { m_stackNameHasBeenSet = true; m_stackName.assign(value); }
55 
59  inline SetStackPolicyRequest& WithStackName(const Aws::String& value) { SetStackName(value); return *this;}
60 
64  inline SetStackPolicyRequest& WithStackName(Aws::String&& value) { SetStackName(value); return *this;}
65 
69  inline SetStackPolicyRequest& WithStackName(const char* value) { SetStackName(value); return *this;}
70 
78  inline const Aws::String& GetStackPolicyBody() const{ return m_stackPolicyBody; }
79 
87  inline void SetStackPolicyBody(const Aws::String& value) { m_stackPolicyBodyHasBeenSet = true; m_stackPolicyBody = value; }
88 
96  inline void SetStackPolicyBody(Aws::String&& value) { m_stackPolicyBodyHasBeenSet = true; m_stackPolicyBody = value; }
97 
105  inline void SetStackPolicyBody(const char* value) { m_stackPolicyBodyHasBeenSet = true; m_stackPolicyBody.assign(value); }
106 
114  inline SetStackPolicyRequest& WithStackPolicyBody(const Aws::String& value) { SetStackPolicyBody(value); return *this;}
115 
123  inline SetStackPolicyRequest& WithStackPolicyBody(Aws::String&& value) { SetStackPolicyBody(value); return *this;}
124 
132  inline SetStackPolicyRequest& WithStackPolicyBody(const char* value) { SetStackPolicyBody(value); return *this;}
133 
140  inline const Aws::String& GetStackPolicyURL() const{ return m_stackPolicyURL; }
141 
148  inline void SetStackPolicyURL(const Aws::String& value) { m_stackPolicyURLHasBeenSet = true; m_stackPolicyURL = value; }
149 
156  inline void SetStackPolicyURL(Aws::String&& value) { m_stackPolicyURLHasBeenSet = true; m_stackPolicyURL = value; }
157 
164  inline void SetStackPolicyURL(const char* value) { m_stackPolicyURLHasBeenSet = true; m_stackPolicyURL.assign(value); }
165 
172  inline SetStackPolicyRequest& WithStackPolicyURL(const Aws::String& value) { SetStackPolicyURL(value); return *this;}
173 
180  inline SetStackPolicyRequest& WithStackPolicyURL(Aws::String&& value) { SetStackPolicyURL(value); return *this;}
181 
188  inline SetStackPolicyRequest& WithStackPolicyURL(const char* value) { SetStackPolicyURL(value); return *this;}
189 
190  private:
191  Aws::String m_stackName;
192  bool m_stackNameHasBeenSet;
193  Aws::String m_stackPolicyBody;
194  bool m_stackPolicyBodyHasBeenSet;
195  Aws::String m_stackPolicyURL;
196  bool m_stackPolicyURLHasBeenSet;
197  };
198 
199 } // namespace Model
200 } // namespace CloudFormation
201 } // namespace Aws
SetStackPolicyRequest & WithStackName(Aws::String &&value)
SetStackPolicyRequest & WithStackPolicyBody(Aws::String &&value)
SetStackPolicyRequest & WithStackName(const Aws::String &value)
SetStackPolicyRequest & WithStackPolicyURL(const char *value)
SetStackPolicyRequest & WithStackPolicyURL(const Aws::String &value)
SetStackPolicyRequest & WithStackPolicyBody(const char *value)
SetStackPolicyRequest & WithStackPolicyBody(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_CLOUDFORMATION_API
SetStackPolicyRequest & WithStackName(const char *value)
SetStackPolicyRequest & WithStackPolicyURL(Aws::String &&value)
JSON (JavaScript Object Notation).