AWS SDK for C++  1.9.103
AWS SDK for C++
CreateCloudFormationStackRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Lightsail
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "CreateCloudFormationStack"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
44  inline const Aws::Vector<InstanceEntry>& GetInstances() const{ return m_instances; }
45 
52  inline bool InstancesHasBeenSet() const { return m_instancesHasBeenSet; }
53 
60  inline void SetInstances(const Aws::Vector<InstanceEntry>& value) { m_instancesHasBeenSet = true; m_instances = value; }
61 
68  inline void SetInstances(Aws::Vector<InstanceEntry>&& value) { m_instancesHasBeenSet = true; m_instances = std::move(value); }
69 
76  inline CreateCloudFormationStackRequest& WithInstances(const Aws::Vector<InstanceEntry>& value) { SetInstances(value); return *this;}
77 
84  inline CreateCloudFormationStackRequest& WithInstances(Aws::Vector<InstanceEntry>&& value) { SetInstances(std::move(value)); return *this;}
85 
92  inline CreateCloudFormationStackRequest& AddInstances(const InstanceEntry& value) { m_instancesHasBeenSet = true; m_instances.push_back(value); return *this; }
93 
100  inline CreateCloudFormationStackRequest& AddInstances(InstanceEntry&& value) { m_instancesHasBeenSet = true; m_instances.push_back(std::move(value)); return *this; }
101 
102  private:
103 
104  Aws::Vector<InstanceEntry> m_instances;
105  bool m_instancesHasBeenSet;
106  };
107 
108 } // namespace Model
109 } // namespace Lightsail
110 } // namespace Aws
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Lightsail::Model::CreateCloudFormationStackRequest::GetInstances
const Aws::Vector< InstanceEntry > & GetInstances() const
Definition: CreateCloudFormationStackRequest.h:44
Aws::Lightsail::Model::CreateCloudFormationStackRequest::AddInstances
CreateCloudFormationStackRequest & AddInstances(const InstanceEntry &value)
Definition: CreateCloudFormationStackRequest.h:92
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
LightsailRequest.h
Aws::Lightsail::Model::CreateCloudFormationStackRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Lightsail::Model::CreateCloudFormationStackRequest::SetInstances
void SetInstances(Aws::Vector< InstanceEntry > &&value)
Definition: CreateCloudFormationStackRequest.h:68
Aws::Lightsail::Model::CreateCloudFormationStackRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateCloudFormationStackRequest.h:31
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
Aws::Lightsail::Model::CreateCloudFormationStackRequest
Definition: CreateCloudFormationStackRequest.h:23
Aws::Lightsail::Model::CreateCloudFormationStackRequest::InstancesHasBeenSet
bool InstancesHasBeenSet() const
Definition: CreateCloudFormationStackRequest.h:52
Lightsail_EXPORTS.h
Aws::Lightsail::Model::CreateCloudFormationStackRequest::WithInstances
CreateCloudFormationStackRequest & WithInstances(const Aws::Vector< InstanceEntry > &value)
Definition: CreateCloudFormationStackRequest.h:76
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::CreateCloudFormationStackRequest::SetInstances
void SetInstances(const Aws::Vector< InstanceEntry > &value)
Definition: CreateCloudFormationStackRequest.h:60
InstanceEntry.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::CreateCloudFormationStackRequest::AddInstances
CreateCloudFormationStackRequest & AddInstances(InstanceEntry &&value)
Definition: CreateCloudFormationStackRequest.h:100
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::CreateCloudFormationStackRequest::WithInstances
CreateCloudFormationStackRequest & WithInstances(Aws::Vector< InstanceEntry > &&value)
Definition: CreateCloudFormationStackRequest.h:84
Aws::Lightsail::Model::CreateCloudFormationStackRequest::CreateCloudFormationStackRequest
CreateCloudFormationStackRequest()
Aws::Lightsail::Model::InstanceEntry
Definition: InstanceEntry.h:35
Aws::Lightsail::Model::CreateCloudFormationStackRequest::SerializePayload
Aws::String SerializePayload() const override