AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateFleetInstance.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/LaunchTemplateAndOverridesResponse.h>
10#include <aws/ec2/model/InstanceLifecycle.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/ec2/model/InstanceType.h>
13#include <aws/ec2/model/PlatformValues.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Xml
22{
23 class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace EC2
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_EC2_API CreateFleetInstance() = default;
41 AWS_EC2_API CreateFleetInstance(const Aws::Utils::Xml::XmlNode& xmlNode);
43
44 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
45 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
46
47
49
54 inline const LaunchTemplateAndOverridesResponse& GetLaunchTemplateAndOverrides() const { return m_launchTemplateAndOverrides; }
55 inline bool LaunchTemplateAndOverridesHasBeenSet() const { return m_launchTemplateAndOverridesHasBeenSet; }
56 template<typename LaunchTemplateAndOverridesT = LaunchTemplateAndOverridesResponse>
57 void SetLaunchTemplateAndOverrides(LaunchTemplateAndOverridesT&& value) { m_launchTemplateAndOverridesHasBeenSet = true; m_launchTemplateAndOverrides = std::forward<LaunchTemplateAndOverridesT>(value); }
58 template<typename LaunchTemplateAndOverridesT = LaunchTemplateAndOverridesResponse>
59 CreateFleetInstance& WithLaunchTemplateAndOverrides(LaunchTemplateAndOverridesT&& value) { SetLaunchTemplateAndOverrides(std::forward<LaunchTemplateAndOverridesT>(value)); return *this;}
61
63
67 inline InstanceLifecycle GetLifecycle() const { return m_lifecycle; }
68 inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
69 inline void SetLifecycle(InstanceLifecycle value) { m_lifecycleHasBeenSet = true; m_lifecycle = value; }
70 inline CreateFleetInstance& WithLifecycle(InstanceLifecycle value) { SetLifecycle(value); return *this;}
72
74
77 inline const Aws::Vector<Aws::String>& GetInstanceIds() const { return m_instanceIds; }
78 inline bool InstanceIdsHasBeenSet() const { return m_instanceIdsHasBeenSet; }
79 template<typename InstanceIdsT = Aws::Vector<Aws::String>>
80 void SetInstanceIds(InstanceIdsT&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = std::forward<InstanceIdsT>(value); }
81 template<typename InstanceIdsT = Aws::Vector<Aws::String>>
82 CreateFleetInstance& WithInstanceIds(InstanceIdsT&& value) { SetInstanceIds(std::forward<InstanceIdsT>(value)); return *this;}
83 template<typename InstanceIdsT = Aws::String>
84 CreateFleetInstance& AddInstanceIds(InstanceIdsT&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.emplace_back(std::forward<InstanceIdsT>(value)); return *this; }
86
88
91 inline InstanceType GetInstanceType() const { return m_instanceType; }
92 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
93 inline void SetInstanceType(InstanceType value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
94 inline CreateFleetInstance& WithInstanceType(InstanceType value) { SetInstanceType(value); return *this;}
96
98
102 inline PlatformValues GetPlatform() const { return m_platform; }
103 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
104 inline void SetPlatform(PlatformValues value) { m_platformHasBeenSet = true; m_platform = value; }
105 inline CreateFleetInstance& WithPlatform(PlatformValues value) { SetPlatform(value); return *this;}
107 private:
108
109 LaunchTemplateAndOverridesResponse m_launchTemplateAndOverrides;
110 bool m_launchTemplateAndOverridesHasBeenSet = false;
111
113 bool m_lifecycleHasBeenSet = false;
114
115 Aws::Vector<Aws::String> m_instanceIds;
116 bool m_instanceIdsHasBeenSet = false;
117
118 InstanceType m_instanceType{InstanceType::NOT_SET};
119 bool m_instanceTypeHasBeenSet = false;
120
122 bool m_platformHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace EC2
127} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API CreateFleetInstance(const Aws::Utils::Xml::XmlNode &xmlNode)
CreateFleetInstance & AddInstanceIds(InstanceIdsT &&value)
void SetInstanceIds(InstanceIdsT &&value)
void SetLifecycle(InstanceLifecycle value)
CreateFleetInstance & WithInstanceIds(InstanceIdsT &&value)
const LaunchTemplateAndOverridesResponse & GetLaunchTemplateAndOverrides() const
void SetLaunchTemplateAndOverrides(LaunchTemplateAndOverridesT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
CreateFleetInstance & WithInstanceType(InstanceType value)
AWS_EC2_API CreateFleetInstance()=default
CreateFleetInstance & WithLifecycle(InstanceLifecycle value)
CreateFleetInstance & WithLaunchTemplateAndOverrides(LaunchTemplateAndOverridesT &&value)
AWS_EC2_API CreateFleetInstance & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< Aws::String > & GetInstanceIds() const
CreateFleetInstance & WithPlatform(PlatformValues value)
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream