7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/InstanceHealthStatus.h>
51 inline void SetInstanceId(
const char* value) { m_instanceIdHasBeenSet =
true; m_instanceId.assign(value); }
65 inline void SetInstanceType(
const char* value) { m_instanceTypeHasBeenSet =
true; m_instanceType.assign(value); }
79 inline void SetSpotInstanceRequestId(
const char* value) { m_spotInstanceRequestIdHasBeenSet =
true; m_spotInstanceRequestId.assign(value); }
102 bool m_instanceIdHasBeenSet =
false;
105 bool m_instanceTypeHasBeenSet =
false;
108 bool m_spotInstanceRequestIdHasBeenSet =
false;
111 bool m_instanceHealthHasBeenSet =
false;
ActiveInstance & WithInstanceType(const Aws::String &value)
ActiveInstance & WithInstanceId(Aws::String &&value)
const Aws::String & GetInstanceId() const
void SetSpotInstanceRequestId(const Aws::String &value)
void SetInstanceId(const char *value)
AWS_EC2_API ActiveInstance()
AWS_EC2_API ActiveInstance(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetInstanceHealth(const InstanceHealthStatus &value)
bool InstanceTypeHasBeenSet() const
const InstanceHealthStatus & GetInstanceHealth() const
ActiveInstance & WithInstanceId(const char *value)
bool SpotInstanceRequestIdHasBeenSet() const
void SetInstanceId(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetSpotInstanceRequestId() const
ActiveInstance & WithSpotInstanceRequestId(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ActiveInstance & WithInstanceHealth(const InstanceHealthStatus &value)
ActiveInstance & WithInstanceId(const Aws::String &value)
void SetSpotInstanceRequestId(const char *value)
void SetInstanceType(const Aws::String &value)
void SetInstanceHealth(InstanceHealthStatus &&value)
AWS_EC2_API ActiveInstance & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetInstanceType(const char *value)
ActiveInstance & WithInstanceType(const char *value)
bool InstanceHealthHasBeenSet() const
bool InstanceIdHasBeenSet() const
void SetInstanceType(Aws::String &&value)
ActiveInstance & WithInstanceHealth(InstanceHealthStatus &&value)
ActiveInstance & WithSpotInstanceRequestId(const char *value)
const Aws::String & GetInstanceType() const
ActiveInstance & WithInstanceType(Aws::String &&value)
void SetInstanceId(const Aws::String &value)
void SetSpotInstanceRequestId(Aws::String &&value)
ActiveInstance & WithSpotInstanceRequestId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream