AWS SDK for C++  0.12.9
AWS SDK for C++
EstimateTemplateCostRequest.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
21 
22 namespace Aws
23 {
24 namespace CloudFormation
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
46  inline const Aws::String& GetTemplateBody() const{ return m_templateBody; }
47 
56  inline void SetTemplateBody(const Aws::String& value) { m_templateBodyHasBeenSet = true; m_templateBody = value; }
57 
66  inline void SetTemplateBody(Aws::String&& value) { m_templateBodyHasBeenSet = true; m_templateBody = value; }
67 
76  inline void SetTemplateBody(const char* value) { m_templateBodyHasBeenSet = true; m_templateBody.assign(value); }
77 
86  inline EstimateTemplateCostRequest& WithTemplateBody(const Aws::String& value) { SetTemplateBody(value); return *this;}
87 
96  inline EstimateTemplateCostRequest& WithTemplateBody(Aws::String&& value) { SetTemplateBody(value); return *this;}
97 
106  inline EstimateTemplateCostRequest& WithTemplateBody(const char* value) { SetTemplateBody(value); return *this;}
107 
116  inline const Aws::String& GetTemplateURL() const{ return m_templateURL; }
117 
126  inline void SetTemplateURL(const Aws::String& value) { m_templateURLHasBeenSet = true; m_templateURL = value; }
127 
136  inline void SetTemplateURL(Aws::String&& value) { m_templateURLHasBeenSet = true; m_templateURL = value; }
137 
146  inline void SetTemplateURL(const char* value) { m_templateURLHasBeenSet = true; m_templateURL.assign(value); }
147 
156  inline EstimateTemplateCostRequest& WithTemplateURL(const Aws::String& value) { SetTemplateURL(value); return *this;}
157 
166  inline EstimateTemplateCostRequest& WithTemplateURL(Aws::String&& value) { SetTemplateURL(value); return *this;}
167 
176  inline EstimateTemplateCostRequest& WithTemplateURL(const char* value) { SetTemplateURL(value); return *this;}
177 
182  inline const Aws::Vector<Parameter>& GetParameters() const{ return m_parameters; }
183 
188  inline void SetParameters(const Aws::Vector<Parameter>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
189 
194  inline void SetParameters(Aws::Vector<Parameter>&& value) { m_parametersHasBeenSet = true; m_parameters = value; }
195 
200  inline EstimateTemplateCostRequest& WithParameters(const Aws::Vector<Parameter>& value) { SetParameters(value); return *this;}
201 
206  inline EstimateTemplateCostRequest& WithParameters(Aws::Vector<Parameter>&& value) { SetParameters(value); return *this;}
207 
212  inline EstimateTemplateCostRequest& AddParameters(const Parameter& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; }
213 
218  inline EstimateTemplateCostRequest& AddParameters(Parameter&& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; }
219 
220  private:
221  Aws::String m_templateBody;
222  bool m_templateBodyHasBeenSet;
223  Aws::String m_templateURL;
224  bool m_templateURLHasBeenSet;
225  Aws::Vector<Parameter> m_parameters;
226  bool m_parametersHasBeenSet;
227  };
228 
229 } // namespace Model
230 } // namespace CloudFormation
231 } // namespace Aws
EstimateTemplateCostRequest & WithParameters(const Aws::Vector< Parameter > &value)
EstimateTemplateCostRequest & WithTemplateBody(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
EstimateTemplateCostRequest & AddParameters(Parameter &&value)
EstimateTemplateCostRequest & WithTemplateBody(const char *value)
EstimateTemplateCostRequest & WithTemplateURL(const char *value)
EstimateTemplateCostRequest & WithTemplateURL(const Aws::String &value)
EstimateTemplateCostRequest & AddParameters(const Parameter &value)
void SetParameters(const Aws::Vector< Parameter > &value)
EstimateTemplateCostRequest & WithTemplateBody(const Aws::String &value)
EstimateTemplateCostRequest & WithParameters(Aws::Vector< Parameter > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
EstimateTemplateCostRequest & WithTemplateURL(Aws::String &&value)
#define AWS_CLOUDFORMATION_API
JSON (JavaScript Object Notation).