AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeFleetsInstances.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:
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 inline void SetLaunchTemplateAndOverrides(const LaunchTemplateAndOverridesResponse& value) { m_launchTemplateAndOverridesHasBeenSet = true; m_launchTemplateAndOverrides = value; }
57 inline void SetLaunchTemplateAndOverrides(LaunchTemplateAndOverridesResponse&& value) { m_launchTemplateAndOverridesHasBeenSet = true; m_launchTemplateAndOverrides = std::move(value); }
61
63
67 inline const InstanceLifecycle& GetLifecycle() const{ return m_lifecycle; }
68 inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
69 inline void SetLifecycle(const InstanceLifecycle& value) { m_lifecycleHasBeenSet = true; m_lifecycle = value; }
70 inline void SetLifecycle(InstanceLifecycle&& value) { m_lifecycleHasBeenSet = true; m_lifecycle = std::move(value); }
71 inline DescribeFleetsInstances& WithLifecycle(const InstanceLifecycle& value) { SetLifecycle(value); return *this;}
72 inline DescribeFleetsInstances& WithLifecycle(InstanceLifecycle&& value) { SetLifecycle(std::move(value)); return *this;}
74
76
79 inline const Aws::Vector<Aws::String>& GetInstanceIds() const{ return m_instanceIds; }
80 inline bool InstanceIdsHasBeenSet() const { return m_instanceIdsHasBeenSet; }
81 inline void SetInstanceIds(const Aws::Vector<Aws::String>& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = value; }
82 inline void SetInstanceIds(Aws::Vector<Aws::String>&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = std::move(value); }
84 inline DescribeFleetsInstances& WithInstanceIds(Aws::Vector<Aws::String>&& value) { SetInstanceIds(std::move(value)); return *this;}
85 inline DescribeFleetsInstances& AddInstanceIds(const Aws::String& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
86 inline DescribeFleetsInstances& AddInstanceIds(Aws::String&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(std::move(value)); return *this; }
87 inline DescribeFleetsInstances& AddInstanceIds(const char* value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
89
91
94 inline const InstanceType& GetInstanceType() const{ return m_instanceType; }
95 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
96 inline void SetInstanceType(const InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
97 inline void SetInstanceType(InstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
98 inline DescribeFleetsInstances& WithInstanceType(const InstanceType& value) { SetInstanceType(value); return *this;}
99 inline DescribeFleetsInstances& WithInstanceType(InstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
101
103
107 inline const PlatformValues& GetPlatform() const{ return m_platform; }
108 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
109 inline void SetPlatform(const PlatformValues& value) { m_platformHasBeenSet = true; m_platform = value; }
110 inline void SetPlatform(PlatformValues&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); }
111 inline DescribeFleetsInstances& WithPlatform(const PlatformValues& value) { SetPlatform(value); return *this;}
112 inline DescribeFleetsInstances& WithPlatform(PlatformValues&& value) { SetPlatform(std::move(value)); return *this;}
114 private:
115
116 LaunchTemplateAndOverridesResponse m_launchTemplateAndOverrides;
117 bool m_launchTemplateAndOverridesHasBeenSet = false;
118
119 InstanceLifecycle m_lifecycle;
120 bool m_lifecycleHasBeenSet = false;
121
122 Aws::Vector<Aws::String> m_instanceIds;
123 bool m_instanceIdsHasBeenSet = false;
124
125 InstanceType m_instanceType;
126 bool m_instanceTypeHasBeenSet = false;
127
128 PlatformValues m_platform;
129 bool m_platformHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace EC2
134} // namespace Aws
DescribeFleetsInstances & AddInstanceIds(Aws::String &&value)
DescribeFleetsInstances & WithInstanceType(const InstanceType &value)
DescribeFleetsInstances & WithLifecycle(InstanceLifecycle &&value)
void SetLifecycle(InstanceLifecycle &&value)
const Aws::Vector< Aws::String > & GetInstanceIds() const
void SetInstanceIds(const Aws::Vector< Aws::String > &value)
DescribeFleetsInstances & WithLaunchTemplateAndOverrides(const LaunchTemplateAndOverridesResponse &value)
AWS_EC2_API DescribeFleetsInstances(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetInstanceIds(Aws::Vector< Aws::String > &&value)
void SetLaunchTemplateAndOverrides(LaunchTemplateAndOverridesResponse &&value)
DescribeFleetsInstances & WithPlatform(const PlatformValues &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetLaunchTemplateAndOverrides(const LaunchTemplateAndOverridesResponse &value)
DescribeFleetsInstances & WithInstanceIds(Aws::Vector< Aws::String > &&value)
DescribeFleetsInstances & WithLaunchTemplateAndOverrides(LaunchTemplateAndOverridesResponse &&value)
DescribeFleetsInstances & WithInstanceType(InstanceType &&value)
void SetLifecycle(const InstanceLifecycle &value)
const InstanceLifecycle & GetLifecycle() const
void SetInstanceType(const InstanceType &value)
void SetPlatform(const PlatformValues &value)
const LaunchTemplateAndOverridesResponse & GetLaunchTemplateAndOverrides() const
DescribeFleetsInstances & AddInstanceIds(const char *value)
DescribeFleetsInstances & WithPlatform(PlatformValues &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
DescribeFleetsInstances & WithLifecycle(const InstanceLifecycle &value)
AWS_EC2_API DescribeFleetsInstances & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
DescribeFleetsInstances & AddInstanceIds(const Aws::String &value)
DescribeFleetsInstances & WithInstanceIds(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream