AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
EstimateTemplateCostRequest.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormationRequest.h>
8#include <aws/cloudformation/CloudFormation_EXPORTS.h>
9#include <aws/cloudformation/model/Parameter.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace CloudFormation {
17namespace Model {
18
26 public:
27 AWS_CLOUDFORMATION_API EstimateTemplateCostRequest() = default;
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 "EstimateTemplateCost"; }
34
35 AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
39
40 public:
42
48 inline const Aws::String& GetTemplateBody() const { return m_templateBody; }
49 inline bool TemplateBodyHasBeenSet() const { return m_templateBodyHasBeenSet; }
50 template <typename TemplateBodyT = Aws::String>
51 void SetTemplateBody(TemplateBodyT&& value) {
52 m_templateBodyHasBeenSet = true;
53 m_templateBody = std::forward<TemplateBodyT>(value);
54 }
55 template <typename TemplateBodyT = Aws::String>
57 SetTemplateBody(std::forward<TemplateBodyT>(value));
58 return *this;
59 }
61
63
71 inline const Aws::String& GetTemplateURL() const { return m_templateURL; }
72 inline bool TemplateURLHasBeenSet() const { return m_templateURLHasBeenSet; }
73 template <typename TemplateURLT = Aws::String>
74 void SetTemplateURL(TemplateURLT&& value) {
75 m_templateURLHasBeenSet = true;
76 m_templateURL = std::forward<TemplateURLT>(value);
77 }
78 template <typename TemplateURLT = Aws::String>
80 SetTemplateURL(std::forward<TemplateURLT>(value));
81 return *this;
82 }
84
86
90 inline const Aws::Vector<Parameter>& GetParameters() const { return m_parameters; }
91 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
92 template <typename ParametersT = Aws::Vector<Parameter>>
93 void SetParameters(ParametersT&& value) {
94 m_parametersHasBeenSet = true;
95 m_parameters = std::forward<ParametersT>(value);
96 }
97 template <typename ParametersT = Aws::Vector<Parameter>>
99 SetParameters(std::forward<ParametersT>(value));
100 return *this;
101 }
102 template <typename ParametersT = Parameter>
104 m_parametersHasBeenSet = true;
105 m_parameters.emplace_back(std::forward<ParametersT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_templateBody;
111
112 Aws::String m_templateURL;
113
114 Aws::Vector<Parameter> m_parameters;
115 bool m_templateBodyHasBeenSet = false;
116 bool m_templateURLHasBeenSet = false;
117 bool m_parametersHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace CloudFormation
122} // namespace Aws
AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override
EstimateTemplateCostRequest & WithTemplateURL(TemplateURLT &&value)
AWS_CLOUDFORMATION_API EstimateTemplateCostRequest()=default
EstimateTemplateCostRequest & AddParameters(ParametersT &&value)
EstimateTemplateCostRequest & WithParameters(ParametersT &&value)
EstimateTemplateCostRequest & WithTemplateBody(TemplateBodyT &&value)
AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector