AWS SDK for C++  0.12.9
AWS SDK for C++
ValidateTemplateRequest.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 
44  inline const Aws::String& GetTemplateBody() const{ return m_templateBody; }
45 
54  inline void SetTemplateBody(const Aws::String& value) { m_templateBodyHasBeenSet = true; m_templateBody = value; }
55 
64  inline void SetTemplateBody(Aws::String&& value) { m_templateBodyHasBeenSet = true; m_templateBody = value; }
65 
74  inline void SetTemplateBody(const char* value) { m_templateBodyHasBeenSet = true; m_templateBody.assign(value); }
75 
84  inline ValidateTemplateRequest& WithTemplateBody(const Aws::String& value) { SetTemplateBody(value); return *this;}
85 
94  inline ValidateTemplateRequest& WithTemplateBody(Aws::String&& value) { SetTemplateBody(value); return *this;}
95 
104  inline ValidateTemplateRequest& WithTemplateBody(const char* value) { SetTemplateBody(value); return *this;}
105 
115  inline const Aws::String& GetTemplateURL() const{ return m_templateURL; }
116 
126  inline void SetTemplateURL(const Aws::String& value) { m_templateURLHasBeenSet = true; m_templateURL = value; }
127 
137  inline void SetTemplateURL(Aws::String&& value) { m_templateURLHasBeenSet = true; m_templateURL = value; }
138 
148  inline void SetTemplateURL(const char* value) { m_templateURLHasBeenSet = true; m_templateURL.assign(value); }
149 
159  inline ValidateTemplateRequest& WithTemplateURL(const Aws::String& value) { SetTemplateURL(value); return *this;}
160 
170  inline ValidateTemplateRequest& WithTemplateURL(Aws::String&& value) { SetTemplateURL(value); return *this;}
171 
181  inline ValidateTemplateRequest& WithTemplateURL(const char* value) { SetTemplateURL(value); return *this;}
182 
183  private:
184  Aws::String m_templateBody;
185  bool m_templateBodyHasBeenSet;
186  Aws::String m_templateURL;
187  bool m_templateURLHasBeenSet;
188  };
189 
190 } // namespace Model
191 } // namespace CloudFormation
192 } // namespace Aws
ValidateTemplateRequest & WithTemplateURL(const Aws::String &value)
ValidateTemplateRequest & WithTemplateURL(const char *value)
ValidateTemplateRequest & WithTemplateBody(const Aws::String &value)
ValidateTemplateRequest & WithTemplateURL(Aws::String &&value)
ValidateTemplateRequest & WithTemplateBody(const char *value)
ValidateTemplateRequest & WithTemplateBody(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_CLOUDFORMATION_API
JSON (JavaScript Object Notation).