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>
55 template<
typename AgentVersionT = Aws::String>
56 void SetAgentVersion(AgentVersionT&& value) { m_agentVersionHasBeenSet =
true; m_agentVersion = std::forward<AgentVersionT>(value); }
57 template<
typename AgentVersionT = Aws::String>
70 template<
typename AmiIdT = Aws::String>
71 void SetAmiId(AmiIdT&& value) { m_amiIdHasBeenSet =
true; m_amiId = std::forward<AmiIdT>(value); }
72 template<
typename AmiIdT = Aws::String>
92 template<
typename ArnT = Aws::String>
93 void SetArn(ArnT&& value) { m_arnHasBeenSet =
true; m_arn = std::forward<ArnT>(value); }
94 template<
typename ArnT = Aws::String>
116 template<
typename AvailabilityZoneT = Aws::String>
117 void SetAvailabilityZone(AvailabilityZoneT&& value) { m_availabilityZoneHasBeenSet =
true; m_availabilityZone = std::forward<AvailabilityZoneT>(value); }
118 template<
typename AvailabilityZoneT = Aws::String>
129 template<
typename BlockDeviceMappingsT = Aws::Vector<BlockDeviceMapping>>
130 void SetBlockDeviceMappings(BlockDeviceMappingsT&& value) { m_blockDeviceMappingsHasBeenSet =
true; m_blockDeviceMappings = std::forward<BlockDeviceMappingsT>(value); }
131 template<
typename BlockDeviceMappingsT = Aws::Vector<BlockDeviceMapping>>
133 template<
typename BlockDeviceMappingsT = BlockDeviceMapping>
134 Instance&
AddBlockDeviceMappings(BlockDeviceMappingsT&& value) { m_blockDeviceMappingsHasBeenSet =
true; m_blockDeviceMappings.emplace_back(std::forward<BlockDeviceMappingsT>(value));
return *
this; }
143 template<
typename CreatedAtT = Aws::String>
144 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet =
true; m_createdAt = std::forward<CreatedAtT>(value); }
145 template<
typename CreatedAtT = Aws::String>
155 inline void SetEbsOptimized(
bool value) { m_ebsOptimizedHasBeenSet =
true; m_ebsOptimized = value; }
165 template<
typename Ec2InstanceIdT = Aws::String>
166 void SetEc2InstanceId(Ec2InstanceIdT&& value) { m_ec2InstanceIdHasBeenSet =
true; m_ec2InstanceId = std::forward<Ec2InstanceIdT>(value); }
167 template<
typename Ec2InstanceIdT = Aws::String>
177 template<
typename EcsClusterArnT = Aws::String>
178 void SetEcsClusterArn(EcsClusterArnT&& value) { m_ecsClusterArnHasBeenSet =
true; m_ecsClusterArn = std::forward<EcsClusterArnT>(value); }
179 template<
typename EcsClusterArnT = Aws::String>
189 template<
typename EcsContainerInstanceArnT = Aws::String>
190 void SetEcsContainerInstanceArn(EcsContainerInstanceArnT&& value) { m_ecsContainerInstanceArnHasBeenSet =
true; m_ecsContainerInstanceArn = std::forward<EcsContainerInstanceArnT>(value); }
191 template<
typename EcsContainerInstanceArnT = Aws::String>
203 template<
typename ElasticIpT = Aws::String>
204 void SetElasticIp(ElasticIpT&& value) { m_elasticIpHasBeenSet =
true; m_elasticIp = std::forward<ElasticIpT>(value); }
205 template<
typename ElasticIpT = Aws::String>
217 template<
typename HostnameT = Aws::String>
218 void SetHostname(HostnameT&& value) { m_hostnameHasBeenSet =
true; m_hostname = std::forward<HostnameT>(value); }
219 template<
typename HostnameT = Aws::String>
230 template<
typename InfrastructureClassT = Aws::String>
231 void SetInfrastructureClass(InfrastructureClassT&& value) { m_infrastructureClassHasBeenSet =
true; m_infrastructureClass = std::forward<InfrastructureClassT>(value); }
232 template<
typename InfrastructureClassT = Aws::String>
259 template<
typename InstanceIdT = Aws::String>
260 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet =
true; m_instanceId = std::forward<InstanceIdT>(value); }
261 template<
typename InstanceIdT = Aws::String>
274 template<
typename InstanceProfileArnT = Aws::String>
275 void SetInstanceProfileArn(InstanceProfileArnT&& value) { m_instanceProfileArnHasBeenSet =
true; m_instanceProfileArn = std::forward<InstanceProfileArnT>(value); }
276 template<
typename InstanceProfileArnT = Aws::String>
286 template<
typename InstanceTypeT = Aws::String>
287 void SetInstanceType(InstanceTypeT&& value) { m_instanceTypeHasBeenSet =
true; m_instanceType = std::forward<InstanceTypeT>(value); }
288 template<
typename InstanceTypeT = Aws::String>
299 template<
typename LastServiceErrorIdT = Aws::String>
300 void SetLastServiceErrorId(LastServiceErrorIdT&& value) { m_lastServiceErrorIdHasBeenSet =
true; m_lastServiceErrorId = std::forward<LastServiceErrorIdT>(value); }
301 template<
typename LastServiceErrorIdT = Aws::String>
311 template<
typename LayerIdsT = Aws::Vector<Aws::String>>
312 void SetLayerIds(LayerIdsT&& value) { m_layerIdsHasBeenSet =
true; m_layerIds = std::forward<LayerIdsT>(value); }
313 template<
typename LayerIdsT = Aws::Vector<Aws::String>>
315 template<
typename LayerIdsT = Aws::String>
316 Instance&
AddLayerIds(LayerIdsT&& value) { m_layerIdsHasBeenSet =
true; m_layerIds.emplace_back(std::forward<LayerIdsT>(value));
return *
this; }
325 template<
typename OsT = Aws::String>
326 void SetOs(OsT&& value) { m_osHasBeenSet =
true; m_os = std::forward<OsT>(value); }
327 template<
typename OsT = Aws::String>
337 template<
typename PlatformT = Aws::String>
338 void SetPlatform(PlatformT&& value) { m_platformHasBeenSet =
true; m_platform = std::forward<PlatformT>(value); }
339 template<
typename PlatformT = Aws::String>
349 template<
typename PrivateDnsT = Aws::String>
350 void SetPrivateDns(PrivateDnsT&& value) { m_privateDnsHasBeenSet =
true; m_privateDns = std::forward<PrivateDnsT>(value); }
351 template<
typename PrivateDnsT = Aws::String>
361 template<
typename PrivateIpT = Aws::String>
362 void SetPrivateIp(PrivateIpT&& value) { m_privateIpHasBeenSet =
true; m_privateIp = std::forward<PrivateIpT>(value); }
363 template<
typename PrivateIpT = Aws::String>
373 template<
typename PublicDnsT = Aws::String>
374 void SetPublicDns(PublicDnsT&& value) { m_publicDnsHasBeenSet =
true; m_publicDns = std::forward<PublicDnsT>(value); }
375 template<
typename PublicDnsT = Aws::String>
385 template<
typename PublicIpT = Aws::String>
386 void SetPublicIp(PublicIpT&& value) { m_publicIpHasBeenSet =
true; m_publicIp = std::forward<PublicIpT>(value); }
387 template<
typename PublicIpT = Aws::String>
397 template<
typename RegisteredByT = Aws::String>
398 void SetRegisteredBy(RegisteredByT&& value) { m_registeredByHasBeenSet =
true; m_registeredBy = std::forward<RegisteredByT>(value); }
399 template<
typename RegisteredByT = Aws::String>
409 template<
typename ReportedAgentVersionT = Aws::String>
410 void SetReportedAgentVersion(ReportedAgentVersionT&& value) { m_reportedAgentVersionHasBeenSet =
true; m_reportedAgentVersion = std::forward<ReportedAgentVersionT>(value); }
411 template<
typename ReportedAgentVersionT = Aws::String>
421 template<
typename ReportedOsT = ReportedOs>
422 void SetReportedOs(ReportedOsT&& value) { m_reportedOsHasBeenSet =
true; m_reportedOs = std::forward<ReportedOsT>(value); }
423 template<
typename ReportedOsT = ReportedOs>
445 template<
typename RootDeviceVolumeIdT = Aws::String>
446 void SetRootDeviceVolumeId(RootDeviceVolumeIdT&& value) { m_rootDeviceVolumeIdHasBeenSet =
true; m_rootDeviceVolumeId = std::forward<RootDeviceVolumeIdT>(value); }
447 template<
typename RootDeviceVolumeIdT = Aws::String>
457 template<
typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
458 void SetSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet =
true; m_securityGroupIds = std::forward<SecurityGroupIdsT>(value); }
459 template<
typename SecurityGroupIdsT = Aws::Vector<Aws::String>>
461 template<
typename SecurityGroupIdsT = Aws::String>
462 Instance&
AddSecurityGroupIds(SecurityGroupIdsT&& value) { m_securityGroupIdsHasBeenSet =
true; m_securityGroupIds.emplace_back(std::forward<SecurityGroupIdsT>(value));
return *
this; }
471 template<
typename SshHostDsaKeyFingerpr
intT = Aws::String>
472 void SetSshHostDsaKeyFingerprint(SshHostDsaKeyFingerprintT&& value) { m_sshHostDsaKeyFingerprintHasBeenSet =
true; m_sshHostDsaKeyFingerprint = std::forward<SshHostDsaKeyFingerprintT>(value); }
473 template<
typename SshHostDsaKeyFingerpr
intT = Aws::String>
483 template<
typename SshHostRsaKeyFingerpr
intT = Aws::String>
484 void SetSshHostRsaKeyFingerprint(SshHostRsaKeyFingerprintT&& value) { m_sshHostRsaKeyFingerprintHasBeenSet =
true; m_sshHostRsaKeyFingerprint = std::forward<SshHostRsaKeyFingerprintT>(value); }
485 template<
typename SshHostRsaKeyFingerpr
intT = Aws::String>
495 template<
typename SshKeyNameT = Aws::String>
496 void SetSshKeyName(SshKeyNameT&& value) { m_sshKeyNameHasBeenSet =
true; m_sshKeyName = std::forward<SshKeyNameT>(value); }
497 template<
typename SshKeyNameT = Aws::String>
507 template<
typename StackIdT = Aws::String>
508 void SetStackId(StackIdT&& value) { m_stackIdHasBeenSet =
true; m_stackId = std::forward<StackIdT>(value); }
509 template<
typename StackIdT = Aws::String>
528 template<
typename StatusT = Aws::String>
529 void SetStatus(StatusT&& value) { m_statusHasBeenSet =
true; m_status = std::forward<StatusT>(value); }
530 template<
typename StatusT = Aws::String>
541 template<
typename SubnetIdT = Aws::String>
542 void SetSubnetId(SubnetIdT&& value) { m_subnetIdHasBeenSet =
true; m_subnetId = std::forward<SubnetIdT>(value); }
543 template<
typename SubnetIdT = Aws::String>
554 template<
typename TenancyT = Aws::String>
555 void SetTenancy(TenancyT&& value) { m_tenancyHasBeenSet =
true; m_tenancy = std::forward<TenancyT>(value); }
556 template<
typename TenancyT = Aws::String>
573 bool m_agentVersionHasBeenSet =
false;
576 bool m_amiIdHasBeenSet =
false;
579 bool m_architectureHasBeenSet =
false;
582 bool m_arnHasBeenSet =
false;
585 bool m_autoScalingTypeHasBeenSet =
false;
588 bool m_availabilityZoneHasBeenSet =
false;
591 bool m_blockDeviceMappingsHasBeenSet =
false;
594 bool m_createdAtHasBeenSet =
false;
596 bool m_ebsOptimized{
false};
597 bool m_ebsOptimizedHasBeenSet =
false;
600 bool m_ec2InstanceIdHasBeenSet =
false;
603 bool m_ecsClusterArnHasBeenSet =
false;
606 bool m_ecsContainerInstanceArnHasBeenSet =
false;
609 bool m_elasticIpHasBeenSet =
false;
612 bool m_hostnameHasBeenSet =
false;
615 bool m_infrastructureClassHasBeenSet =
false;
617 bool m_installUpdatesOnBoot{
false};
618 bool m_installUpdatesOnBootHasBeenSet =
false;
621 bool m_instanceIdHasBeenSet =
false;
624 bool m_instanceProfileArnHasBeenSet =
false;
627 bool m_instanceTypeHasBeenSet =
false;
630 bool m_lastServiceErrorIdHasBeenSet =
false;
633 bool m_layerIdsHasBeenSet =
false;
636 bool m_osHasBeenSet =
false;
639 bool m_platformHasBeenSet =
false;
642 bool m_privateDnsHasBeenSet =
false;
645 bool m_privateIpHasBeenSet =
false;
648 bool m_publicDnsHasBeenSet =
false;
651 bool m_publicIpHasBeenSet =
false;
654 bool m_registeredByHasBeenSet =
false;
657 bool m_reportedAgentVersionHasBeenSet =
false;
659 ReportedOs m_reportedOs;
660 bool m_reportedOsHasBeenSet =
false;
663 bool m_rootDeviceTypeHasBeenSet =
false;
666 bool m_rootDeviceVolumeIdHasBeenSet =
false;
669 bool m_securityGroupIdsHasBeenSet =
false;
672 bool m_sshHostDsaKeyFingerprintHasBeenSet =
false;
675 bool m_sshHostRsaKeyFingerprintHasBeenSet =
false;
678 bool m_sshKeyNameHasBeenSet =
false;
681 bool m_stackIdHasBeenSet =
false;
684 bool m_statusHasBeenSet =
false;
687 bool m_subnetIdHasBeenSet =
false;
690 bool m_tenancyHasBeenSet =
false;
693 bool m_virtualizationTypeHasBeenSet =
false;
bool EbsOptimizedHasBeenSet() const
const Aws::String & GetCreatedAt() const
void SetInstanceId(InstanceIdT &&value)
void SetElasticIp(ElasticIpT &&value)
Instance & WithSshKeyName(SshKeyNameT &&value)
const Aws::Vector< Aws::String > & GetSecurityGroupIds() const
Instance & WithAmiId(AmiIdT &&value)
bool HostnameHasBeenSet() const
bool InstallUpdatesOnBootHasBeenSet() const
AWS_OPSWORKS_API Instance & operator=(Aws::Utils::Json::JsonView jsonValue)
RootDeviceType GetRootDeviceType() const
Instance & WithAgentVersion(AgentVersionT &&value)
bool ArchitectureHasBeenSet() const
bool ReportedOsHasBeenSet() const
Instance & WithReportedOs(ReportedOsT &&value)
const Aws::String & GetAmiId() const
void SetSshKeyName(SshKeyNameT &&value)
void SetLayerIds(LayerIdsT &&value)
AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetSshKeyName() const
bool SshHostDsaKeyFingerprintHasBeenSet() const
bool TenancyHasBeenSet() const
Instance & WithEc2InstanceId(Ec2InstanceIdT &&value)
Instance & WithInstanceId(InstanceIdT &&value)
void SetReportedOs(ReportedOsT &&value)
const Aws::String & GetInfrastructureClass() const
bool LastServiceErrorIdHasBeenSet() const
const Aws::String & GetSubnetId() const
void SetRootDeviceVolumeId(RootDeviceVolumeIdT &&value)
const Aws::String & GetEcsContainerInstanceArn() const
Instance & WithPublicIp(PublicIpT &&value)
Instance & WithArchitecture(Architecture value)
bool ElasticIpHasBeenSet() const
const ReportedOs & GetReportedOs() const
const Aws::String & GetPublicIp() const
const Aws::String & GetElasticIp() const
const Aws::String & GetInstanceType() const
bool AgentVersionHasBeenSet() const
bool PrivateIpHasBeenSet() const
Instance & WithAutoScalingType(AutoScalingType value)
void SetEbsOptimized(bool value)
Instance & WithInstanceProfileArn(InstanceProfileArnT &&value)
void SetPrivateDns(PrivateDnsT &&value)
Instance & WithElasticIp(ElasticIpT &&value)
void SetRootDeviceType(RootDeviceType value)
Instance & WithLayerIds(LayerIdsT &&value)
Instance & WithArn(ArnT &&value)
const Aws::String & GetEc2InstanceId() const
Instance & WithPublicDns(PublicDnsT &&value)
bool ReportedAgentVersionHasBeenSet() const
void SetPlatform(PlatformT &&value)
bool InstanceProfileArnHasBeenSet() const
void SetHostname(HostnameT &&value)
const Aws::String & GetOs() const
bool VirtualizationTypeHasBeenSet() const
const Aws::String & GetInstanceId() const
Instance & WithSshHostDsaKeyFingerprint(SshHostDsaKeyFingerprintT &&value)
Instance & WithReportedAgentVersion(ReportedAgentVersionT &&value)
bool ArnHasBeenSet() const
AWS_OPSWORKS_API Instance()=default
void SetInstanceType(InstanceTypeT &&value)
AWS_OPSWORKS_API Instance(Aws::Utils::Json::JsonView jsonValue)
bool PrivateDnsHasBeenSet() const
const Aws::String & GetTenancy() const
Instance & WithPrivateDns(PrivateDnsT &&value)
const Aws::String & GetArn() const
const Aws::String & GetPublicDns() const
void SetReportedAgentVersion(ReportedAgentVersionT &&value)
bool AvailabilityZoneHasBeenSet() const
const Aws::String & GetStackId() const
bool RegisteredByHasBeenSet() const
void SetAutoScalingType(AutoScalingType value)
const Aws::String & GetAgentVersion() const
bool GetEbsOptimized() const
bool PlatformHasBeenSet() const
Instance & WithEcsContainerInstanceArn(EcsContainerInstanceArnT &&value)
Architecture GetArchitecture() const
void SetStackId(StackIdT &&value)
Instance & WithEbsOptimized(bool value)
const Aws::String & GetPlatform() const
void SetEcsClusterArn(EcsClusterArnT &&value)
const Aws::String & GetSshHostRsaKeyFingerprint() const
Instance & AddSecurityGroupIds(SecurityGroupIdsT &&value)
Instance & WithSecurityGroupIds(SecurityGroupIdsT &&value)
Instance & WithPlatform(PlatformT &&value)
void SetArchitecture(Architecture value)
void SetSubnetId(SubnetIdT &&value)
void SetPrivateIp(PrivateIpT &&value)
const Aws::Vector< BlockDeviceMapping > & GetBlockDeviceMappings() const
Instance & WithAvailabilityZone(AvailabilityZoneT &&value)
Instance & WithPrivateIp(PrivateIpT &&value)
Instance & WithSubnetId(SubnetIdT &&value)
bool AutoScalingTypeHasBeenSet() const
Instance & WithInstanceType(InstanceTypeT &&value)
const Aws::String & GetReportedAgentVersion() const
void SetInfrastructureClass(InfrastructureClassT &&value)
Instance & WithTenancy(TenancyT &&value)
Instance & WithHostname(HostnameT &&value)
const Aws::String & GetHostname() const
bool PublicDnsHasBeenSet() const
bool EcsClusterArnHasBeenSet() const
void SetArn(ArnT &&value)
bool StatusHasBeenSet() const
Instance & WithRootDeviceType(RootDeviceType value)
void SetEcsContainerInstanceArn(EcsContainerInstanceArnT &&value)
void SetSshHostDsaKeyFingerprint(SshHostDsaKeyFingerprintT &&value)
bool Ec2InstanceIdHasBeenSet() const
void SetVirtualizationType(VirtualizationType value)
void SetBlockDeviceMappings(BlockDeviceMappingsT &&value)
void SetCreatedAt(CreatedAtT &&value)
bool LayerIdsHasBeenSet() const
bool BlockDeviceMappingsHasBeenSet() const
void SetRegisteredBy(RegisteredByT &&value)
void SetInstallUpdatesOnBoot(bool value)
void SetEc2InstanceId(Ec2InstanceIdT &&value)
Instance & WithInfrastructureClass(InfrastructureClassT &&value)
bool GetInstallUpdatesOnBoot() const
bool RootDeviceVolumeIdHasBeenSet() const
Instance & WithLastServiceErrorId(LastServiceErrorIdT &&value)
bool InfrastructureClassHasBeenSet() const
bool CreatedAtHasBeenSet() const
bool InstanceTypeHasBeenSet() const
Instance & WithCreatedAt(CreatedAtT &&value)
bool PublicIpHasBeenSet() const
const Aws::Vector< Aws::String > & GetLayerIds() const
bool SshHostRsaKeyFingerprintHasBeenSet() const
void SetInstanceProfileArn(InstanceProfileArnT &&value)
bool AmiIdHasBeenSet() const
Instance & WithStatus(StatusT &&value)
Instance & WithSshHostRsaKeyFingerprint(SshHostRsaKeyFingerprintT &&value)
Instance & WithVirtualizationType(VirtualizationType value)
bool SecurityGroupIdsHasBeenSet() const
const Aws::String & GetPrivateDns() const
Instance & WithInstallUpdatesOnBoot(bool value)
bool EcsContainerInstanceArnHasBeenSet() const
VirtualizationType GetVirtualizationType() const
void SetLastServiceErrorId(LastServiceErrorIdT &&value)
void SetTenancy(TenancyT &&value)
const Aws::String & GetStatus() const
Instance & AddLayerIds(LayerIdsT &&value)
const Aws::String & GetLastServiceErrorId() const
void SetPublicDns(PublicDnsT &&value)
AutoScalingType GetAutoScalingType() const
bool SubnetIdHasBeenSet() const
void SetStatus(StatusT &&value)
Instance & AddBlockDeviceMappings(BlockDeviceMappingsT &&value)
const Aws::String & GetInstanceProfileArn() const
void SetPublicIp(PublicIpT &&value)
bool RootDeviceTypeHasBeenSet() const
bool SshKeyNameHasBeenSet() const
void SetSecurityGroupIds(SecurityGroupIdsT &&value)
const Aws::String & GetRootDeviceVolumeId() const
bool OsHasBeenSet() const
const Aws::String & GetPrivateIp() const
void SetSshHostRsaKeyFingerprint(SshHostRsaKeyFingerprintT &&value)
const Aws::String & GetEcsClusterArn() const
const Aws::String & GetAvailabilityZone() const
void SetAgentVersion(AgentVersionT &&value)
void SetAvailabilityZone(AvailabilityZoneT &&value)
const Aws::String & GetRegisteredBy() const
const Aws::String & GetSshHostDsaKeyFingerprint() const
Instance & WithRegisteredBy(RegisteredByT &&value)
Instance & WithEcsClusterArn(EcsClusterArnT &&value)
Instance & WithRootDeviceVolumeId(RootDeviceVolumeIdT &&value)
bool StackIdHasBeenSet() const
Instance & WithBlockDeviceMappings(BlockDeviceMappingsT &&value)
bool InstanceIdHasBeenSet() const
Instance & WithOs(OsT &&value)
void SetAmiId(AmiIdT &&value)
Instance & WithStackId(StackIdT &&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