AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
EstimateTemplateCostRequest.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/cloudformation/CloudFormationRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/cloudformation/model/Parameter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CloudFormation
17{
18namespace Model
19{
20
28 {
29 public:
30 AWS_CLOUDFORMATION_API EstimateTemplateCostRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "EstimateTemplateCost"; }
37
38 AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override;
39
40 protected:
41 AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
42
43 public:
44
46
52 inline const Aws::String& GetTemplateBody() const { return m_templateBody; }
53 inline bool TemplateBodyHasBeenSet() const { return m_templateBodyHasBeenSet; }
54 template<typename TemplateBodyT = Aws::String>
55 void SetTemplateBody(TemplateBodyT&& value) { m_templateBodyHasBeenSet = true; m_templateBody = std::forward<TemplateBodyT>(value); }
56 template<typename TemplateBodyT = Aws::String>
57 EstimateTemplateCostRequest& WithTemplateBody(TemplateBodyT&& value) { SetTemplateBody(std::forward<TemplateBodyT>(value)); return *this;}
59
61
69 inline const Aws::String& GetTemplateURL() const { return m_templateURL; }
70 inline bool TemplateURLHasBeenSet() const { return m_templateURLHasBeenSet; }
71 template<typename TemplateURLT = Aws::String>
72 void SetTemplateURL(TemplateURLT&& value) { m_templateURLHasBeenSet = true; m_templateURL = std::forward<TemplateURLT>(value); }
73 template<typename TemplateURLT = Aws::String>
74 EstimateTemplateCostRequest& WithTemplateURL(TemplateURLT&& value) { SetTemplateURL(std::forward<TemplateURLT>(value)); return *this;}
76
78
82 inline const Aws::Vector<Parameter>& GetParameters() const { return m_parameters; }
83 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
84 template<typename ParametersT = Aws::Vector<Parameter>>
85 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
86 template<typename ParametersT = Aws::Vector<Parameter>>
87 EstimateTemplateCostRequest& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
88 template<typename ParametersT = Parameter>
89 EstimateTemplateCostRequest& AddParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters.emplace_back(std::forward<ParametersT>(value)); return *this; }
91 private:
92
93 Aws::String m_templateBody;
94 bool m_templateBodyHasBeenSet = false;
95
96 Aws::String m_templateURL;
97 bool m_templateURLHasBeenSet = false;
98
99 Aws::Vector<Parameter> m_parameters;
100 bool m_parametersHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace CloudFormation
105} // 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