7#include <aws/opsworks/OpsWorks_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/opsworks/model/Architecture.h>
10#include <aws/opsworks/model/AutoScalingType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/opsworks/model/ReportedOs.h>
13#include <aws/opsworks/model/RootDeviceType.h>
14#include <aws/opsworks/model/VirtualizationType.h>
15#include <aws/opsworks/model/BlockDeviceMapping.h>
57 inline void SetAgentVersion(
const char* value) { m_agentVersionHasBeenSet =
true; m_agentVersion.assign(value); }
74 inline void SetAmiId(
const char* value) { m_amiIdHasBeenSet =
true; m_amiId.assign(value); }
99 inline void SetArn(
Aws::String&& value) { m_arnHasBeenSet =
true; m_arn = std::move(value); }
100 inline void SetArn(
const char* value) { m_arnHasBeenSet =
true; m_arn.assign(value); }
128 inline void SetAvailabilityZone(
const char* value) { m_availabilityZoneHasBeenSet =
true; m_availabilityZone.assign(value); }
157 inline void SetCreatedAt(
const char* value) { m_createdAtHasBeenSet =
true; m_createdAt.assign(value); }
169 inline void SetEbsOptimized(
bool value) { m_ebsOptimizedHasBeenSet =
true; m_ebsOptimized = value; }
181 inline void SetEc2InstanceId(
const char* value) { m_ec2InstanceIdHasBeenSet =
true; m_ec2InstanceId.assign(value); }
195 inline void SetEcsClusterArn(
const char* value) { m_ecsClusterArnHasBeenSet =
true; m_ecsClusterArn.assign(value); }
209 inline void SetEcsContainerInstanceArn(
const char* value) { m_ecsContainerInstanceArnHasBeenSet =
true; m_ecsContainerInstanceArn.assign(value); }
225 inline void SetElasticIp(
const char* value) { m_elasticIpHasBeenSet =
true; m_elasticIp.assign(value); }
241 inline void SetHostname(
const char* value) { m_hostnameHasBeenSet =
true; m_hostname.assign(value); }
256 inline void SetInfrastructureClass(
const char* value) { m_infrastructureClassHasBeenSet =
true; m_infrastructureClass.assign(value); }
287 inline void SetInstanceId(
const char* value) { m_instanceIdHasBeenSet =
true; m_instanceId.assign(value); }
304 inline void SetInstanceProfileArn(
const char* value) { m_instanceProfileArnHasBeenSet =
true; m_instanceProfileArn.assign(value); }
318 inline void SetInstanceType(
const char* value) { m_instanceTypeHasBeenSet =
true; m_instanceType.assign(value); }
333 inline void SetLastServiceErrorId(
const char* value) { m_lastServiceErrorIdHasBeenSet =
true; m_lastServiceErrorId.assign(value); }
351 inline Instance&
AddLayerIds(
const char* value) { m_layerIdsHasBeenSet =
true; m_layerIds.push_back(value);
return *
this; }
362 inline void SetOs(
const char* value) { m_osHasBeenSet =
true; m_os.assign(value); }
376 inline void SetPlatform(
const char* value) { m_platformHasBeenSet =
true; m_platform.assign(value); }
390 inline void SetPrivateDns(
const char* value) { m_privateDnsHasBeenSet =
true; m_privateDns.assign(value); }
404 inline void SetPrivateIp(
const char* value) { m_privateIpHasBeenSet =
true; m_privateIp.assign(value); }
418 inline void SetPublicDns(
const char* value) { m_publicDnsHasBeenSet =
true; m_publicDns.assign(value); }
432 inline void SetPublicIp(
const char* value) { m_publicIpHasBeenSet =
true; m_publicIp.assign(value); }
446 inline void SetRegisteredBy(
const char* value) { m_registeredByHasBeenSet =
true; m_registeredBy.assign(value); }
460 inline void SetReportedAgentVersion(
const char* value) { m_reportedAgentVersionHasBeenSet =
true; m_reportedAgentVersion.assign(value); }
500 inline void SetRootDeviceVolumeId(
const char* value) { m_rootDeviceVolumeIdHasBeenSet =
true; m_rootDeviceVolumeId.assign(value); }
518 inline Instance&
AddSecurityGroupIds(
const char* value) { m_securityGroupIdsHasBeenSet =
true; m_securityGroupIds.push_back(value);
return *
this; }
529 inline void SetSshHostDsaKeyFingerprint(
const char* value) { m_sshHostDsaKeyFingerprintHasBeenSet =
true; m_sshHostDsaKeyFingerprint.assign(value); }
543 inline void SetSshHostRsaKeyFingerprint(
const char* value) { m_sshHostRsaKeyFingerprintHasBeenSet =
true; m_sshHostRsaKeyFingerprint.assign(value); }
557 inline void SetSshKeyName(
const char* value) { m_sshKeyNameHasBeenSet =
true; m_sshKeyName.assign(value); }
571 inline void SetStackId(
const char* value) { m_stackIdHasBeenSet =
true; m_stackId.assign(value); }
594 inline void SetStatus(
const char* value) { m_statusHasBeenSet =
true; m_status.assign(value); }
609 inline void SetSubnetId(
const char* value) { m_subnetIdHasBeenSet =
true; m_subnetId.assign(value); }
624 inline void SetTenancy(
const char* value) { m_tenancyHasBeenSet =
true; m_tenancy.assign(value); }
645 bool m_agentVersionHasBeenSet =
false;
648 bool m_amiIdHasBeenSet =
false;
651 bool m_architectureHasBeenSet =
false;
654 bool m_arnHasBeenSet =
false;
657 bool m_autoScalingTypeHasBeenSet =
false;
660 bool m_availabilityZoneHasBeenSet =
false;
663 bool m_blockDeviceMappingsHasBeenSet =
false;
666 bool m_createdAtHasBeenSet =
false;
669 bool m_ebsOptimizedHasBeenSet =
false;
672 bool m_ec2InstanceIdHasBeenSet =
false;
675 bool m_ecsClusterArnHasBeenSet =
false;
678 bool m_ecsContainerInstanceArnHasBeenSet =
false;
681 bool m_elasticIpHasBeenSet =
false;
684 bool m_hostnameHasBeenSet =
false;
687 bool m_infrastructureClassHasBeenSet =
false;
689 bool m_installUpdatesOnBoot;
690 bool m_installUpdatesOnBootHasBeenSet =
false;
693 bool m_instanceIdHasBeenSet =
false;
696 bool m_instanceProfileArnHasBeenSet =
false;
699 bool m_instanceTypeHasBeenSet =
false;
702 bool m_lastServiceErrorIdHasBeenSet =
false;
705 bool m_layerIdsHasBeenSet =
false;
708 bool m_osHasBeenSet =
false;
711 bool m_platformHasBeenSet =
false;
714 bool m_privateDnsHasBeenSet =
false;
717 bool m_privateIpHasBeenSet =
false;
720 bool m_publicDnsHasBeenSet =
false;
723 bool m_publicIpHasBeenSet =
false;
726 bool m_registeredByHasBeenSet =
false;
729 bool m_reportedAgentVersionHasBeenSet =
false;
732 bool m_reportedOsHasBeenSet =
false;
735 bool m_rootDeviceTypeHasBeenSet =
false;
738 bool m_rootDeviceVolumeIdHasBeenSet =
false;
741 bool m_securityGroupIdsHasBeenSet =
false;
744 bool m_sshHostDsaKeyFingerprintHasBeenSet =
false;
747 bool m_sshHostRsaKeyFingerprintHasBeenSet =
false;
750 bool m_sshKeyNameHasBeenSet =
false;
753 bool m_stackIdHasBeenSet =
false;
756 bool m_statusHasBeenSet =
false;
759 bool m_subnetIdHasBeenSet =
false;
762 bool m_tenancyHasBeenSet =
false;
765 bool m_virtualizationTypeHasBeenSet =
false;
bool EbsOptimizedHasBeenSet() const
Instance & WithCreatedAt(Aws::String &&value)
const Aws::String & GetCreatedAt() const
Instance & WithOs(const char *value)
Instance & WithInstanceId(Aws::String &&value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
Instance & WithInfrastructureClass(Aws::String &&value)
bool HostnameHasBeenSet() const
bool InstallUpdatesOnBootHasBeenSet() const
Instance & WithSecurityGroupIds(Aws::Vector< Aws::String > &&value)
AWS_OPSWORKS_API Instance & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetOs(const Aws::String &value)
Instance & WithEc2InstanceId(Aws::String &&value)
Instance & WithAmiId(const Aws::String &value)
Instance & WithSecurityGroupIds(const Aws::Vector< Aws::String > &value)
void SetPublicIp(const Aws::String &value)
bool ArchitectureHasBeenSet() const
bool ReportedOsHasBeenSet() const
void SetInstanceType(const Aws::String &value)
Instance & WithOs(Aws::String &&value)
void SetEcsClusterArn(Aws::String &&value)
Instance & WithAmiId(const char *value)
const Aws::String & GetAmiId() const
AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetSshKeyName() const
void SetAvailabilityZone(Aws::String &&value)
void SetEc2InstanceId(Aws::String &&value)
Instance & WithStatus(Aws::String &&value)
Instance & WithLayerIds(Aws::Vector< Aws::String > &&value)
Instance & AddSecurityGroupIds(Aws::String &&value)
Instance & WithTenancy(const Aws::String &value)
Instance & WithPlatform(const Aws::String &value)
Instance & WithArchitecture(const Architecture &value)
bool SshHostDsaKeyFingerprintHasBeenSet() const
Instance & WithEc2InstanceId(const Aws::String &value)
Instance & WithInfrastructureClass(const char *value)
void SetSshHostDsaKeyFingerprint(const char *value)
Instance & WithReportedAgentVersion(const Aws::String &value)
bool TenancyHasBeenSet() const
void SetPrivateIp(Aws::String &&value)
void SetAgentVersion(Aws::String &&value)
const Aws::String & GetInfrastructureClass() const
bool LastServiceErrorIdHasBeenSet() const
Instance & WithStackId(const Aws::String &value)
const Aws::String & GetSubnetId() const
Instance & WithPublicIp(Aws::String &&value)
const Aws::String & GetEcsContainerInstanceArn() const
Instance & WithPrivateIp(const char *value)
void SetAvailabilityZone(const Aws::String &value)
Instance & WithPrivateDns(Aws::String &&value)
bool ElasticIpHasBeenSet() const
const ReportedOs & GetReportedOs() const
Instance & WithPublicDns(const Aws::String &value)
Instance & WithReportedOs(const ReportedOs &value)
const Aws::String & GetPublicIp() const
const Aws::String & GetElasticIp() const
void SetEc2InstanceId(const char *value)
const Aws::String & GetInstanceType() const
AWS_OPSWORKS_API Instance()
Instance & WithSshKeyName(const Aws::String &value)
bool AgentVersionHasBeenSet() const
Instance & WithAgentVersion(const char *value)
bool PrivateIpHasBeenSet() const
void SetStackId(const char *value)
Instance & WithElasticIp(Aws::String &&value)
Instance & WithReportedAgentVersion(Aws::String &&value)
void SetSshHostDsaKeyFingerprint(const Aws::String &value)
void SetSshHostRsaKeyFingerprint(const char *value)
Instance & WithArn(const char *value)
Instance & WithSshHostDsaKeyFingerprint(const Aws::String &value)
void SetSshHostRsaKeyFingerprint(Aws::String &&value)
void SetEbsOptimized(bool value)
void SetSshKeyName(const char *value)
Instance & WithLastServiceErrorId(const char *value)
Instance & WithElasticIp(const Aws::String &value)
void SetAmiId(const Aws::String &value)
Instance & WithSshHostRsaKeyFingerprint(const char *value)
Instance & WithAvailabilityZone(const Aws::String &value)
Instance & WithArn(const Aws::String &value)
void SetPrivateDns(const char *value)
Instance & WithBlockDeviceMappings(const Aws::Vector< BlockDeviceMapping > &value)
const Aws::String & GetEc2InstanceId() const
bool ReportedAgentVersionHasBeenSet() const
bool InstanceProfileArnHasBeenSet() const
const Aws::String & GetOs() const
bool VirtualizationTypeHasBeenSet() const
const Aws::String & GetInstanceId() const
Instance & WithAgentVersion(Aws::String &&value)
Instance & WithEcsContainerInstanceArn(const char *value)
bool ArnHasBeenSet() const
void SetSshHostDsaKeyFingerprint(Aws::String &&value)
Instance & WithSubnetId(const Aws::String &value)
void SetRootDeviceVolumeId(const Aws::String &value)
void SetAutoScalingType(const AutoScalingType &value)
AWS_OPSWORKS_API Instance(Aws::Utils::Json::JsonView jsonValue)
bool PrivateDnsHasBeenSet() const
void SetReportedAgentVersion(const Aws::String &value)
void SetInstanceId(Aws::String &&value)
void SetSshKeyName(const Aws::String &value)
Instance & WithInstanceType(const Aws::String &value)
const Aws::String & GetTenancy() const
void SetAgentVersion(const Aws::String &value)
const Aws::String & GetArn() const
const Aws::String & GetPublicDns() const
void SetSubnetId(Aws::String &&value)
void SetArn(const Aws::String &value)
Instance & WithCreatedAt(const Aws::String &value)
Instance & AddLayerIds(const char *value)
bool AvailabilityZoneHasBeenSet() const
Instance & WithEcsContainerInstanceArn(const Aws::String &value)
void SetInstanceProfileArn(const Aws::String &value)
const Aws::String & GetStackId() const
bool RegisteredByHasBeenSet() const
void SetPublicDns(const char *value)
Instance & WithInstanceId(const char *value)
const Aws::String & GetAgentVersion() const
void SetSecurityGroupIds(Aws::Vector< Aws::String > &&value)
bool GetEbsOptimized() const
bool PlatformHasBeenSet() const
Instance & WithInstanceId(const Aws::String &value)
void SetInstanceType(const char *value)
void SetSshHostRsaKeyFingerprint(const Aws::String &value)
void SetEcsClusterArn(const char *value)
Instance & WithEcsContainerInstanceArn(Aws::String &&value)
Instance & WithEbsOptimized(bool value)
Instance & WithPlatform(const char *value)
const Aws::String & GetPlatform() const
void SetSubnetId(const Aws::String &value)
Instance & WithPrivateDns(const Aws::String &value)
Instance & WithTenancy(Aws::String &&value)
const Aws::String & GetSshHostRsaKeyFingerprint() const
Instance & WithSshHostRsaKeyFingerprint(const Aws::String &value)
void SetElasticIp(Aws::String &&value)
Instance & WithReportedAgentVersion(const char *value)
const Architecture & GetArchitecture() const
void SetReportedOs(const ReportedOs &value)
Instance & WithArn(Aws::String &&value)
void SetPublicIp(const char *value)
void SetPublicDns(const Aws::String &value)
Instance & WithPlatform(Aws::String &&value)
Instance & WithInfrastructureClass(const Aws::String &value)
Instance & WithRootDeviceVolumeId(const char *value)
Instance & AddLayerIds(const Aws::String &value)
Instance & WithArchitecture(Architecture &&value)
Instance & AddSecurityGroupIds(const Aws::String &value)
void SetLastServiceErrorId(const char *value)
Instance & WithPrivateDns(const char *value)
void SetStatus(const char *value)
void SetSshKeyName(Aws::String &&value)
void SetReportedAgentVersion(Aws::String &&value)
void SetPrivateIp(const char *value)
const Aws::Vector< BlockDeviceMapping > & GetBlockDeviceMappings() const
Instance & WithAutoScalingType(const AutoScalingType &value)
void SetPlatform(Aws::String &&value)
void SetAmiId(const char *value)
void SetInstanceId(const char *value)
Instance & WithReportedOs(ReportedOs &&value)
Instance & WithVirtualizationType(const VirtualizationType &value)
bool AutoScalingTypeHasBeenSet() const
void SetInstanceProfileArn(Aws::String &&value)
Instance & WithHostname(Aws::String &&value)
void SetInstanceProfileArn(const char *value)
Instance & AddBlockDeviceMappings(const BlockDeviceMapping &value)
const Aws::String & GetReportedAgentVersion() const
void SetCreatedAt(const Aws::String &value)
Instance & WithOs(const Aws::String &value)
void SetStackId(Aws::String &&value)
void SetEcsClusterArn(const Aws::String &value)
const Aws::String & GetHostname() const
bool PublicDnsHasBeenSet() const
bool EcsClusterArnHasBeenSet() const
Instance & WithVirtualizationType(VirtualizationType &&value)
void SetStackId(const Aws::String &value)
void SetLastServiceErrorId(Aws::String &&value)
Instance & WithAgentVersion(const Aws::String &value)
void SetCreatedAt(const char *value)
void SetEc2InstanceId(const Aws::String &value)
void SetHostname(Aws::String &&value)
void SetTenancy(const Aws::String &value)
const VirtualizationType & GetVirtualizationType() const
Instance & WithCreatedAt(const char *value)
Instance & WithSubnetId(const char *value)
Instance & WithInstanceProfileArn(const char *value)
void SetEcsContainerInstanceArn(const Aws::String &value)
bool StatusHasBeenSet() const
void SetArchitecture(Architecture &&value)
void SetLayerIds(const Aws::Vector< Aws::String > &value)
Instance & WithRootDeviceType(const RootDeviceType &value)
Instance & WithSshKeyName(Aws::String &&value)
Instance & WithSubnetId(Aws::String &&value)
void SetAmiId(Aws::String &&value)
Instance & WithInstanceProfileArn(Aws::String &&value)
bool Ec2InstanceIdHasBeenSet() const
Instance & WithPrivateIp(Aws::String &&value)
void SetPublicDns(Aws::String &&value)
Instance & WithPublicIp(const char *value)
Instance & WithPublicDns(Aws::String &&value)
Instance & WithHostname(const Aws::String &value)
Instance & WithStatus(const Aws::String &value)
bool LayerIdsHasBeenSet() const
void SetStatus(const Aws::String &value)
void SetCreatedAt(Aws::String &&value)
bool BlockDeviceMappingsHasBeenSet() const
void SetInstallUpdatesOnBoot(bool value)
void SetHostname(const Aws::String &value)
void SetAgentVersion(const char *value)
void SetOs(Aws::String &&value)
void SetPlatform(const Aws::String &value)
Instance & WithEcsClusterArn(const Aws::String &value)
void SetPlatform(const char *value)
void SetElasticIp(const char *value)
void SetReportedOs(ReportedOs &&value)
bool GetInstallUpdatesOnBoot() const
bool RootDeviceVolumeIdHasBeenSet() const
Instance & WithInstanceProfileArn(const Aws::String &value)
Instance & AddLayerIds(Aws::String &&value)
void SetEcsContainerInstanceArn(const char *value)
Instance & WithRootDeviceVolumeId(const Aws::String &value)
Instance & WithHostname(const char *value)
bool InfrastructureClassHasBeenSet() const
Instance & WithRootDeviceVolumeId(Aws::String &&value)
Instance & WithPublicDns(const char *value)
bool CreatedAtHasBeenSet() const
void SetPrivateDns(const Aws::String &value)
void SetArn(const char *value)
void SetArn(Aws::String &&value)
bool InstanceTypeHasBeenSet() const
bool PublicIpHasBeenSet() const
const Aws::Vector< Aws::String > & GetLayerIds() const
void SetRootDeviceType(const RootDeviceType &value)
bool SshHostRsaKeyFingerprintHasBeenSet() const
void SetPrivateDns(Aws::String &&value)
void SetTenancy(const char *value)
void SetTenancy(Aws::String &&value)
bool AmiIdHasBeenSet() const
Instance & WithStatus(const char *value)
Instance & WithPublicIp(const Aws::String &value)
void SetInstanceType(Aws::String &&value)
void SetLastServiceErrorId(const Aws::String &value)
bool SecurityGroupIdsHasBeenSet() const
Instance & WithAvailabilityZone(Aws::String &&value)
const Aws::String & GetPrivateDns() const
Instance & WithInstallUpdatesOnBoot(bool value)
void SetSubnetId(const char *value)
bool EcsContainerInstanceArnHasBeenSet() const
Instance & AddSecurityGroupIds(const char *value)
void SetAvailabilityZone(const char *value)
void SetHostname(const char *value)
Instance & WithInstanceType(Aws::String &&value)
void SetRegisteredBy(const Aws::String &value)
const Aws::String & GetStatus() const
Instance & WithEcsClusterArn(Aws::String &&value)
const Aws::String & GetLastServiceErrorId() const
Instance & WithAmiId(Aws::String &&value)
Instance & WithRegisteredBy(const Aws::String &value)
Instance & WithSshHostDsaKeyFingerprint(const char *value)
Instance & WithInstanceType(const char *value)
bool SubnetIdHasBeenSet() const
Instance & WithEc2InstanceId(const char *value)
void SetPublicIp(Aws::String &&value)
void SetInfrastructureClass(const char *value)
Instance & WithLastServiceErrorId(const Aws::String &value)
const AutoScalingType & GetAutoScalingType() const
const Aws::String & GetInstanceProfileArn() const
void SetAutoScalingType(AutoScalingType &&value)
void SetInstanceId(const Aws::String &value)
Instance & AddBlockDeviceMappings(BlockDeviceMapping &&value)
void SetReportedAgentVersion(const char *value)
bool RootDeviceTypeHasBeenSet() const
void SetEcsContainerInstanceArn(Aws::String &&value)
void SetOs(const char *value)
Instance & WithRootDeviceType(RootDeviceType &&value)
bool SshKeyNameHasBeenSet() const
void SetStatus(Aws::String &&value)
void SetVirtualizationType(VirtualizationType &&value)
Instance & WithRegisteredBy(Aws::String &&value)
const Aws::String & GetRootDeviceVolumeId() const
bool OsHasBeenSet() const
void SetInfrastructureClass(Aws::String &&value)
void SetRootDeviceVolumeId(const char *value)
void SetVirtualizationType(const VirtualizationType &value)
Instance & WithLastServiceErrorId(Aws::String &&value)
const Aws::String & GetPrivateIp() const
Instance & WithSshHostDsaKeyFingerprint(Aws::String &&value)
const Aws::String & GetEcsClusterArn() const
void SetElasticIp(const Aws::String &value)
Instance & WithAvailabilityZone(const char *value)
const Aws::String & GetAvailabilityZone() const
void SetBlockDeviceMappings(Aws::Vector< BlockDeviceMapping > &&value)
Instance & WithRegisteredBy(const char *value)
void SetRegisteredBy(const char *value)
Instance & WithAutoScalingType(AutoScalingType &&value)
void SetInfrastructureClass(const Aws::String &value)
Instance & WithElasticIp(const char *value)
const Aws::String & GetRegisteredBy() const
const Aws::String & GetSshHostDsaKeyFingerprint() const
void SetSecurityGroupIds(const Aws::Vector< Aws::String > &value)
Instance & WithLayerIds(const Aws::Vector< Aws::String > &value)
void SetRootDeviceType(RootDeviceType &&value)
void SetBlockDeviceMappings(const Aws::Vector< BlockDeviceMapping > &value)
void SetLayerIds(Aws::Vector< Aws::String > &&value)
Instance & WithPrivateIp(const Aws::String &value)
Instance & WithTenancy(const char *value)
void SetPrivateIp(const Aws::String &value)
Instance & WithStackId(const char *value)
Instance & WithSshKeyName(const char *value)
bool StackIdHasBeenSet() const
Instance & WithEcsClusterArn(const char *value)
Instance & WithBlockDeviceMappings(Aws::Vector< BlockDeviceMapping > &&value)
void SetArchitecture(const Architecture &value)
const RootDeviceType & GetRootDeviceType() const
void SetRootDeviceVolumeId(Aws::String &&value)
void SetRegisteredBy(Aws::String &&value)
bool InstanceIdHasBeenSet() const
Instance & WithSshHostRsaKeyFingerprint(Aws::String &&value)
Instance & WithStackId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue