AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
ValidateTemplateRequest.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormationRequest.h>
8#include <aws/cloudformation/CloudFormation_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace CloudFormation {
15namespace Model {
16
23 public:
24 AWS_CLOUDFORMATION_API ValidateTemplateRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "ValidateTemplate"; }
31
32 AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
36
37 public:
39
45 inline const Aws::String& GetTemplateBody() const { return m_templateBody; }
46 inline bool TemplateBodyHasBeenSet() const { return m_templateBodyHasBeenSet; }
47 template <typename TemplateBodyT = Aws::String>
48 void SetTemplateBody(TemplateBodyT&& value) {
49 m_templateBodyHasBeenSet = true;
50 m_templateBody = std::forward<TemplateBodyT>(value);
51 }
52 template <typename TemplateBodyT = Aws::String>
53 ValidateTemplateRequest& WithTemplateBody(TemplateBodyT&& value) {
54 SetTemplateBody(std::forward<TemplateBodyT>(value));
55 return *this;
56 }
58
60
68 inline const Aws::String& GetTemplateURL() const { return m_templateURL; }
69 inline bool TemplateURLHasBeenSet() const { return m_templateURLHasBeenSet; }
70 template <typename TemplateURLT = Aws::String>
71 void SetTemplateURL(TemplateURLT&& value) {
72 m_templateURLHasBeenSet = true;
73 m_templateURL = std::forward<TemplateURLT>(value);
74 }
75 template <typename TemplateURLT = Aws::String>
77 SetTemplateURL(std::forward<TemplateURLT>(value));
78 return *this;
79 }
81 private:
82 Aws::String m_templateBody;
83
84 Aws::String m_templateURL;
85 bool m_templateBodyHasBeenSet = false;
86 bool m_templateURLHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace CloudFormation
91} // namespace Aws
ValidateTemplateRequest & WithTemplateURL(TemplateURLT &&value)
AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ValidateTemplateRequest & WithTemplateBody(TemplateBodyT &&value)
virtual const char * GetServiceRequestName() const override
AWS_CLOUDFORMATION_API ValidateTemplateRequest()=default
AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String