7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/ec2/model/AutoPlacement.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ec2/model/AvailableCapacity.h>
12#include <aws/ec2/model/HostProperties.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/ec2/model/AllocationState.h>
15#include <aws/core/utils/DateTime.h>
16#include <aws/ec2/model/HostRecovery.h>
17#include <aws/ec2/model/AllowsMultipleInstanceTypes.h>
18#include <aws/ec2/model/HostMaintenance.h>
19#include <aws/ec2/model/HostInstance.h>
20#include <aws/ec2/model/Tag.h>
73 inline void SetAvailabilityZone(
const char* value) { m_availabilityZoneHasBeenSet =
true; m_availabilityZone.assign(value); }
102 inline void SetClientToken(
const char* value) { m_clientTokenHasBeenSet =
true; m_clientToken.assign(value); }
116 inline void SetHostId(
const char* value) { m_hostIdHasBeenSet =
true; m_hostId.assign(value); }
143 inline void SetHostReservationId(
const char* value) { m_hostReservationIdHasBeenSet =
true; m_hostReservationId.assign(value); }
210 inline Host&
AddTags(
const Tag& value) { m_tagsHasBeenSet =
true; m_tags.push_back(value);
return *
this; }
211 inline Host&
AddTags(
Tag&& value) { m_tagsHasBeenSet =
true; m_tags.push_back(std::move(value));
return *
this; }
250 inline void SetOwnerId(
const char* value) { m_ownerIdHasBeenSet =
true; m_ownerId.assign(value); }
264 inline void SetAvailabilityZoneId(
const char* value) { m_availabilityZoneIdHasBeenSet =
true; m_availabilityZoneId.assign(value); }
291 inline void SetOutpostArn(
const char* value) { m_outpostArnHasBeenSet =
true; m_outpostArn.assign(value); }
319 inline void SetAssetId(
const char* value) { m_assetIdHasBeenSet =
true; m_assetId.assign(value); }
327 bool m_autoPlacementHasBeenSet =
false;
330 bool m_availabilityZoneHasBeenSet =
false;
333 bool m_availableCapacityHasBeenSet =
false;
336 bool m_clientTokenHasBeenSet =
false;
339 bool m_hostIdHasBeenSet =
false;
342 bool m_hostPropertiesHasBeenSet =
false;
345 bool m_hostReservationIdHasBeenSet =
false;
348 bool m_instancesHasBeenSet =
false;
351 bool m_stateHasBeenSet =
false;
354 bool m_allocationTimeHasBeenSet =
false;
357 bool m_releaseTimeHasBeenSet =
false;
360 bool m_tagsHasBeenSet =
false;
363 bool m_hostRecoveryHasBeenSet =
false;
366 bool m_allowsMultipleInstanceTypesHasBeenSet =
false;
369 bool m_ownerIdHasBeenSet =
false;
372 bool m_availabilityZoneIdHasBeenSet =
false;
374 bool m_memberOfServiceLinkedResourceGroup;
375 bool m_memberOfServiceLinkedResourceGroupHasBeenSet =
false;
378 bool m_outpostArnHasBeenSet =
false;
381 bool m_hostMaintenanceHasBeenSet =
false;
384 bool m_assetIdHasBeenSet =
false;
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::Vector< HostInstance > & GetInstances() const
Host & WithClientToken(const Aws::String &value)
void SetOwnerId(const char *value)
void SetReleaseTime(Aws::Utils::DateTime &&value)
Host & WithHostRecovery(const HostRecovery &value)
const Aws::String & GetAssetId() const
void SetAllowsMultipleInstanceTypes(AllowsMultipleInstanceTypes &&value)
bool AvailabilityZoneIdHasBeenSet() const
void SetInstances(const Aws::Vector< HostInstance > &value)
Host & AddTags(const Tag &value)
void SetHostRecovery(HostRecovery &&value)
Host & WithHostProperties(HostProperties &&value)
void SetAutoPlacement(AutoPlacement &&value)
bool AutoPlacementHasBeenSet() const
const Aws::String & GetHostId() const
void SetHostMaintenance(const HostMaintenance &value)
Host & WithClientToken(Aws::String &&value)
void SetClientToken(const char *value)
Host & WithAssetId(const Aws::String &value)
Host & AddInstances(const HostInstance &value)
const AllocationState & GetState() const
Host & WithHostId(const char *value)
Host & WithHostReservationId(const Aws::String &value)
void SetAutoPlacement(const AutoPlacement &value)
Host & WithClientToken(const char *value)
void SetAvailableCapacity(const AvailableCapacity &value)
const Aws::String & GetClientToken() const
Host & WithInstances(Aws::Vector< HostInstance > &&value)
void SetHostProperties(HostProperties &&value)
void SetState(const AllocationState &value)
void SetInstances(Aws::Vector< HostInstance > &&value)
void SetOutpostArn(const char *value)
void SetHostProperties(const HostProperties &value)
const HostMaintenance & GetHostMaintenance() const
Host & AddInstances(HostInstance &&value)
bool AvailableCapacityHasBeenSet() const
const HostProperties & GetHostProperties() const
void SetState(AllocationState &&value)
const HostRecovery & GetHostRecovery() const
void SetAllocationTime(Aws::Utils::DateTime &&value)
bool HostPropertiesHasBeenSet() const
Host & WithHostId(Aws::String &&value)
void SetAvailabilityZoneId(const char *value)
Host & WithAvailabilityZone(const char *value)
Host & WithAllowsMultipleInstanceTypes(AllowsMultipleInstanceTypes &&value)
void SetAvailabilityZone(const char *value)
void SetTags(Aws::Vector< Tag > &&value)
Host & WithOutpostArn(const Aws::String &value)
bool OwnerIdHasBeenSet() const
Host & WithHostRecovery(HostRecovery &&value)
AWS_EC2_API Host(const Aws::Utils::Xml::XmlNode &xmlNode)
Host & WithHostReservationId(const char *value)
void SetHostId(const char *value)
void SetOutpostArn(Aws::String &&value)
bool ReleaseTimeHasBeenSet() const
bool MemberOfServiceLinkedResourceGroupHasBeenSet() const
const Aws::String & GetOutpostArn() const
Host & WithAvailabilityZoneId(Aws::String &&value)
bool InstancesHasBeenSet() const
void SetHostReservationId(Aws::String &&value)
Host & WithAvailabilityZoneId(const char *value)
void SetHostReservationId(const char *value)
const AutoPlacement & GetAutoPlacement() const
void SetAllowsMultipleInstanceTypes(const AllowsMultipleInstanceTypes &value)
void SetMemberOfServiceLinkedResourceGroup(bool value)
Host & WithOwnerId(const char *value)
Host & AddTags(Tag &&value)
void SetHostId(const Aws::String &value)
Host & WithReleaseTime(const Aws::Utils::DateTime &value)
Host & WithHostReservationId(Aws::String &&value)
Host & WithHostId(const Aws::String &value)
Host & WithTags(Aws::Vector< Tag > &&value)
const Aws::String & GetAvailabilityZone() const
Host & WithAssetId(const char *value)
Host & WithOutpostArn(Aws::String &&value)
bool TagsHasBeenSet() const
void SetAllocationTime(const Aws::Utils::DateTime &value)
Host & WithTags(const Aws::Vector< Tag > &value)
void SetAvailableCapacity(AvailableCapacity &&value)
bool AvailabilityZoneHasBeenSet() const
void SetHostRecovery(const HostRecovery &value)
Host & WithAvailabilityZone(const Aws::String &value)
void SetAvailabilityZone(const Aws::String &value)
Host & WithState(const AllocationState &value)
void SetOutpostArn(const Aws::String &value)
void SetOwnerId(const Aws::String &value)
bool StateHasBeenSet() const
Host & WithAssetId(Aws::String &&value)
bool AllowsMultipleInstanceTypesHasBeenSet() const
Host & WithAvailabilityZone(Aws::String &&value)
Host & WithAutoPlacement(AutoPlacement &&value)
Host & WithHostMaintenance(HostMaintenance &&value)
const Aws::String & GetOwnerId() const
Host & WithAvailableCapacity(AvailableCapacity &&value)
Host & WithAllocationTime(Aws::Utils::DateTime &&value)
Host & WithOutpostArn(const char *value)
bool HostIdHasBeenSet() const
void SetHostMaintenance(HostMaintenance &&value)
bool HostReservationIdHasBeenSet() const
AWS_EC2_API Host & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Host & WithAvailabilityZoneId(const Aws::String &value)
bool OutpostArnHasBeenSet() const
bool AssetIdHasBeenSet() const
void SetTags(const Aws::Vector< Tag > &value)
bool ClientTokenHasBeenSet() const
Host & WithAllowsMultipleInstanceTypes(const AllowsMultipleInstanceTypes &value)
Host & WithHostProperties(const HostProperties &value)
void SetClientToken(const Aws::String &value)
void SetHostReservationId(const Aws::String &value)
Host & WithAvailableCapacity(const AvailableCapacity &value)
void SetAvailabilityZone(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetClientToken(Aws::String &&value)
void SetHostId(Aws::String &&value)
bool GetMemberOfServiceLinkedResourceGroup() const
const Aws::String & GetAvailabilityZoneId() const
void SetAssetId(const Aws::String &value)
const Aws::Utils::DateTime & GetReleaseTime() const
const AllowsMultipleInstanceTypes & GetAllowsMultipleInstanceTypes() const
Host & WithHostMaintenance(const HostMaintenance &value)
Host & WithOwnerId(Aws::String &&value)
bool HostRecoveryHasBeenSet() const
void SetAvailabilityZoneId(Aws::String &&value)
Host & WithState(AllocationState &&value)
void SetAvailabilityZoneId(const Aws::String &value)
const Aws::Vector< Tag > & GetTags() const
const Aws::String & GetHostReservationId() const
void SetAssetId(Aws::String &&value)
void SetOwnerId(Aws::String &&value)
void SetReleaseTime(const Aws::Utils::DateTime &value)
Host & WithAutoPlacement(const AutoPlacement &value)
Host & WithOwnerId(const Aws::String &value)
void SetAssetId(const char *value)
const AvailableCapacity & GetAvailableCapacity() const
Host & WithAllocationTime(const Aws::Utils::DateTime &value)
Host & WithInstances(const Aws::Vector< HostInstance > &value)
bool AllocationTimeHasBeenSet() const
bool HostMaintenanceHasBeenSet() const
const Aws::Utils::DateTime & GetAllocationTime() const
Host & WithReleaseTime(Aws::Utils::DateTime &&value)
Host & WithMemberOfServiceLinkedResourceGroup(bool value)
AllowsMultipleInstanceTypes
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