AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = 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 "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 template<typename ResourcesT = Aws::Vector<ResourceDefinition>>
52 void SetResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources = std::forward<ResourcesT>(value); }
53 template<typename ResourcesT = Aws::Vector<ResourceDefinition>>
54 CreateGeneratedTemplateRequest& WithResources(ResourcesT&& value) { SetResources(std::forward<ResourcesT>(value)); return *this;}
55 template<typename ResourcesT = ResourceDefinition>
56 CreateGeneratedTemplateRequest& AddResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources.emplace_back(std::forward<ResourcesT>(value)); return *this; }
58
60
63 inline const Aws::String& GetGeneratedTemplateName() const { return m_generatedTemplateName; }
64 inline bool GeneratedTemplateNameHasBeenSet() const { return m_generatedTemplateNameHasBeenSet; }
65 template<typename GeneratedTemplateNameT = Aws::String>
66 void SetGeneratedTemplateName(GeneratedTemplateNameT&& value) { m_generatedTemplateNameHasBeenSet = true; m_generatedTemplateName = std::forward<GeneratedTemplateNameT>(value); }
67 template<typename GeneratedTemplateNameT = Aws::String>
68 CreateGeneratedTemplateRequest& WithGeneratedTemplateName(GeneratedTemplateNameT&& value) { SetGeneratedTemplateName(std::forward<GeneratedTemplateNameT>(value)); return *this;}
70
72
76 inline const Aws::String& GetStackName() const { return m_stackName; }
77 inline bool StackNameHasBeenSet() const { return m_stackNameHasBeenSet; }
78 template<typename StackNameT = Aws::String>
79 void SetStackName(StackNameT&& value) { m_stackNameHasBeenSet = true; m_stackName = std::forward<StackNameT>(value); }
80 template<typename StackNameT = Aws::String>
81 CreateGeneratedTemplateRequest& WithStackName(StackNameT&& value) { SetStackName(std::forward<StackNameT>(value)); return *this;}
83
85
89 inline const TemplateConfiguration& GetTemplateConfiguration() const { return m_templateConfiguration; }
90 inline bool TemplateConfigurationHasBeenSet() const { return m_templateConfigurationHasBeenSet; }
91 template<typename TemplateConfigurationT = TemplateConfiguration>
92 void SetTemplateConfiguration(TemplateConfigurationT&& value) { m_templateConfigurationHasBeenSet = true; m_templateConfiguration = std::forward<TemplateConfigurationT>(value); }
93 template<typename TemplateConfigurationT = TemplateConfiguration>
94 CreateGeneratedTemplateRequest& WithTemplateConfiguration(TemplateConfigurationT&& value) { SetTemplateConfiguration(std::forward<TemplateConfigurationT>(value)); return *this;}
96 private:
97
99 bool m_resourcesHasBeenSet = false;
100
101 Aws::String m_generatedTemplateName;
102 bool m_generatedTemplateNameHasBeenSet = false;
103
104 Aws::String m_stackName;
105 bool m_stackNameHasBeenSet = false;
106
107 TemplateConfiguration m_templateConfiguration;
108 bool m_templateConfigurationHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace CloudFormation
113} // namespace Aws
const Aws::Vector< ResourceDefinition > & GetResources() const
CreateGeneratedTemplateRequest & WithStackName(StackNameT &&value)
CreateGeneratedTemplateRequest & WithTemplateConfiguration(TemplateConfigurationT &&value)
AWS_CLOUDFORMATION_API CreateGeneratedTemplateRequest()=default
AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override
CreateGeneratedTemplateRequest & WithGeneratedTemplateName(GeneratedTemplateNameT &&value)
CreateGeneratedTemplateRequest & WithResources(ResourcesT &&value)
CreateGeneratedTemplateRequest & AddResources(ResourcesT &&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