AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetTemplateBody(const Aws::String& value) { m_templateBodyHasBeenSet = true; m_templateBody = value; }
55 inline void SetTemplateBody(Aws::String&& value) { m_templateBodyHasBeenSet = true; m_templateBody = std::move(value); }
56 inline void SetTemplateBody(const char* value) { m_templateBodyHasBeenSet = true; m_templateBody.assign(value); }
57 inline EstimateTemplateCostRequest& WithTemplateBody(const Aws::String& value) { SetTemplateBody(value); return *this;}
58 inline EstimateTemplateCostRequest& WithTemplateBody(Aws::String&& value) { SetTemplateBody(std::move(value)); return *this;}
59 inline EstimateTemplateCostRequest& WithTemplateBody(const char* value) { SetTemplateBody(value); return *this;}
61
63
71 inline const Aws::String& GetTemplateURL() const{ return m_templateURL; }
72 inline bool TemplateURLHasBeenSet() const { return m_templateURLHasBeenSet; }
73 inline void SetTemplateURL(const Aws::String& value) { m_templateURLHasBeenSet = true; m_templateURL = value; }
74 inline void SetTemplateURL(Aws::String&& value) { m_templateURLHasBeenSet = true; m_templateURL = std::move(value); }
75 inline void SetTemplateURL(const char* value) { m_templateURLHasBeenSet = true; m_templateURL.assign(value); }
76 inline EstimateTemplateCostRequest& WithTemplateURL(const Aws::String& value) { SetTemplateURL(value); return *this;}
77 inline EstimateTemplateCostRequest& WithTemplateURL(Aws::String&& value) { SetTemplateURL(std::move(value)); return *this;}
78 inline EstimateTemplateCostRequest& WithTemplateURL(const char* value) { SetTemplateURL(value); return *this;}
80
82
86 inline const Aws::Vector<Parameter>& GetParameters() const{ return m_parameters; }
87 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
88 inline void SetParameters(const Aws::Vector<Parameter>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
89 inline void SetParameters(Aws::Vector<Parameter>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
91 inline EstimateTemplateCostRequest& WithParameters(Aws::Vector<Parameter>&& value) { SetParameters(std::move(value)); return *this;}
92 inline EstimateTemplateCostRequest& AddParameters(const Parameter& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; }
93 inline EstimateTemplateCostRequest& AddParameters(Parameter&& value) { m_parametersHasBeenSet = true; m_parameters.push_back(std::move(value)); return *this; }
95 private:
96
97 Aws::String m_templateBody;
98 bool m_templateBodyHasBeenSet = false;
99
100 Aws::String m_templateURL;
101 bool m_templateURLHasBeenSet = false;
102
103 Aws::Vector<Parameter> m_parameters;
104 bool m_parametersHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace CloudFormation
109} // namespace Aws
void SetParameters(const Aws::Vector< Parameter > &value)
AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override
EstimateTemplateCostRequest & WithTemplateURL(const Aws::String &value)
EstimateTemplateCostRequest & AddParameters(Parameter &&value)
EstimateTemplateCostRequest & WithTemplateURL(const char *value)
EstimateTemplateCostRequest & WithTemplateBody(const char *value)
EstimateTemplateCostRequest & WithParameters(const Aws::Vector< Parameter > &value)
EstimateTemplateCostRequest & WithParameters(Aws::Vector< Parameter > &&value)
AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
EstimateTemplateCostRequest & WithTemplateURL(Aws::String &&value)
EstimateTemplateCostRequest & AddParameters(const Parameter &value)
EstimateTemplateCostRequest & WithTemplateBody(const Aws::String &value)
EstimateTemplateCostRequest & WithTemplateBody(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector