AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateGeneratedTemplateRequest.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/cloudformation/model/TemplateConfiguration.h>
12#include <aws/cloudformation/model/ResourceDefinition.h>
13#include <utility>
14
15namespace Aws
16{
17namespace CloudFormation
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CLOUDFORMATION_API CreateGeneratedTemplateRequest();
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 "CreateGeneratedTemplate"; }
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:
41
43
49 inline const Aws::Vector<ResourceDefinition>& GetResources() const{ return m_resources; }
50 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
51 inline void SetResources(const Aws::Vector<ResourceDefinition>& value) { m_resourcesHasBeenSet = true; m_resources = value; }
52 inline void SetResources(Aws::Vector<ResourceDefinition>&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
55 inline CreateGeneratedTemplateRequest& AddResources(const ResourceDefinition& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
56 inline CreateGeneratedTemplateRequest& AddResources(ResourceDefinition&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; }
58
60
63 inline const Aws::String& GetGeneratedTemplateName() const{ return m_generatedTemplateName; }
64 inline bool GeneratedTemplateNameHasBeenSet() const { return m_generatedTemplateNameHasBeenSet; }
65 inline void SetGeneratedTemplateName(const Aws::String& value) { m_generatedTemplateNameHasBeenSet = true; m_generatedTemplateName = value; }
66 inline void SetGeneratedTemplateName(Aws::String&& value) { m_generatedTemplateNameHasBeenSet = true; m_generatedTemplateName = std::move(value); }
67 inline void SetGeneratedTemplateName(const char* value) { m_generatedTemplateNameHasBeenSet = true; m_generatedTemplateName.assign(value); }
70 inline CreateGeneratedTemplateRequest& WithGeneratedTemplateName(const char* value) { SetGeneratedTemplateName(value); return *this;}
72
74
78 inline const Aws::String& GetStackName() const{ return m_stackName; }
79 inline bool StackNameHasBeenSet() const { return m_stackNameHasBeenSet; }
80 inline void SetStackName(const Aws::String& value) { m_stackNameHasBeenSet = true; m_stackName = value; }
81 inline void SetStackName(Aws::String&& value) { m_stackNameHasBeenSet = true; m_stackName = std::move(value); }
82 inline void SetStackName(const char* value) { m_stackNameHasBeenSet = true; m_stackName.assign(value); }
83 inline CreateGeneratedTemplateRequest& WithStackName(const Aws::String& value) { SetStackName(value); return *this;}
84 inline CreateGeneratedTemplateRequest& WithStackName(Aws::String&& value) { SetStackName(std::move(value)); return *this;}
85 inline CreateGeneratedTemplateRequest& WithStackName(const char* value) { SetStackName(value); return *this;}
87
89
93 inline const TemplateConfiguration& GetTemplateConfiguration() const{ return m_templateConfiguration; }
94 inline bool TemplateConfigurationHasBeenSet() const { return m_templateConfigurationHasBeenSet; }
95 inline void SetTemplateConfiguration(const TemplateConfiguration& value) { m_templateConfigurationHasBeenSet = true; m_templateConfiguration = value; }
96 inline void SetTemplateConfiguration(TemplateConfiguration&& value) { m_templateConfigurationHasBeenSet = true; m_templateConfiguration = std::move(value); }
100 private:
101
103 bool m_resourcesHasBeenSet = false;
104
105 Aws::String m_generatedTemplateName;
106 bool m_generatedTemplateNameHasBeenSet = false;
107
108 Aws::String m_stackName;
109 bool m_stackNameHasBeenSet = false;
110
111 TemplateConfiguration m_templateConfiguration;
112 bool m_templateConfigurationHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace CloudFormation
117} // namespace Aws
const Aws::Vector< ResourceDefinition > & GetResources() const
CreateGeneratedTemplateRequest & WithTemplateConfiguration(TemplateConfiguration &&value)
CreateGeneratedTemplateRequest & WithGeneratedTemplateName(const Aws::String &value)
CreateGeneratedTemplateRequest & WithStackName(const Aws::String &value)
CreateGeneratedTemplateRequest & WithResources(Aws::Vector< ResourceDefinition > &&value)
CreateGeneratedTemplateRequest & WithGeneratedTemplateName(Aws::String &&value)
CreateGeneratedTemplateRequest & WithResources(const Aws::Vector< ResourceDefinition > &value)
CreateGeneratedTemplateRequest & WithTemplateConfiguration(const TemplateConfiguration &value)
CreateGeneratedTemplateRequest & WithStackName(Aws::String &&value)
AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override
CreateGeneratedTemplateRequest & WithStackName(const char *value)
CreateGeneratedTemplateRequest & AddResources(const ResourceDefinition &value)
CreateGeneratedTemplateRequest & AddResources(ResourceDefinition &&value)
CreateGeneratedTemplateRequest & WithGeneratedTemplateName(const char *value)
AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetResources(const Aws::Vector< ResourceDefinition > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector