Interface Instance.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Instance.Builder,
,Instance> SdkBuilder<Instance.Builder,
,Instance> SdkPojo
- Enclosing class:
Instance
-
Method Summary
Modifier and TypeMethodDescriptionagentVersion
(String agentVersion) The agent version.A custom AMI ID to be used to create the instance.architecture
(String architecture) The instance architecture: "i386" or "x86_64".architecture
(Architecture architecture) The instance architecture: "i386" or "x86_64".The instance's Amazon Resource Number (ARN).autoScalingType
(String autoScalingType) For load-based or time-based instances, the type.autoScalingType
(AutoScalingType autoScalingType) For load-based or time-based instances, the type.availabilityZone
(String availabilityZone) The instance Availability Zone.blockDeviceMappings
(Collection<BlockDeviceMapping> blockDeviceMappings) An array ofBlockDeviceMapping
objects that specify the instance's block device mappings.blockDeviceMappings
(Consumer<BlockDeviceMapping.Builder>... blockDeviceMappings) An array ofBlockDeviceMapping
objects that specify the instance's block device mappings.blockDeviceMappings
(BlockDeviceMapping... blockDeviceMappings) An array ofBlockDeviceMapping
objects that specify the instance's block device mappings.The time that the instance was created.ebsOptimized
(Boolean ebsOptimized) Whether this is an Amazon EBS-optimized instance.ec2InstanceId
(String ec2InstanceId) The ID of the associated Amazon EC2 instance.ecsClusterArn
(String ecsClusterArn) For container instances, the Amazon ECS cluster's ARN.ecsContainerInstanceArn
(String ecsContainerInstanceArn) For container instances, the instance's ARN.The instance Elastic IP address.The instance host name.infrastructureClass
(String infrastructureClass) For registered instances, the infrastructure class:ec2
oron-premises
.installUpdatesOnBoot
(Boolean installUpdatesOnBoot) Whether to install operating system and package updates when the instance boots.instanceId
(String instanceId) The instance ID.instanceProfileArn
(String instanceProfileArn) The ARN of the instance's IAM profile.instanceType
(String instanceType) The instance type, such ast2.micro
.lastServiceErrorId
(String lastServiceErrorId) The ID of the last service error.An array containing the instance layer IDs.layerIds
(Collection<String> layerIds) An array containing the instance layer IDs.The instance's operating system.The instance's platform.privateDns
(String privateDns) The instance's private DNS name.The instance's private IP address.The instance public DNS name.The instance public IP address.registeredBy
(String registeredBy) For registered instances, who performed the registration.reportedAgentVersion
(String reportedAgentVersion) The instance's reported OpsWorks Stacks agent version.default Instance.Builder
reportedOs
(Consumer<ReportedOs.Builder> reportedOs) For registered instances, the reported operating system.reportedOs
(ReportedOs reportedOs) For registered instances, the reported operating system.rootDeviceType
(String rootDeviceType) The instance's root device type.rootDeviceType
(RootDeviceType rootDeviceType) The instance's root device type.rootDeviceVolumeId
(String rootDeviceVolumeId) The root device volume ID.securityGroupIds
(String... securityGroupIds) An array containing the instance security group IDs.securityGroupIds
(Collection<String> securityGroupIds) An array containing the instance security group IDs.sshHostDsaKeyFingerprint
(String sshHostDsaKeyFingerprint) The SSH key's Deep Security Agent (DSA) fingerprint.sshHostRsaKeyFingerprint
(String sshHostRsaKeyFingerprint) The SSH key's RSA fingerprint.sshKeyName
(String sshKeyName) The instance's Amazon EC2 key-pair name.The stack ID.The instance status:The instance's subnet ID; applicable only if the stack is running in a VPC.The instance's tenancy option, such asdedicated
orhost
.virtualizationType
(String virtualizationType) The instance's virtualization type:paravirtual
orhvm
.virtualizationType
(VirtualizationType virtualizationType) The instance's virtualization type:paravirtual
orhvm
.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
agentVersion
The agent version. This parameter is set to
INHERIT
if the instance inherits the default stack setting or to a a version number for a fixed agent version.- Parameters:
agentVersion
- The agent version. This parameter is set toINHERIT
if the instance inherits the default stack setting or to a a version number for a fixed agent version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
amiId
-
architecture
The instance architecture: "i386" or "x86_64".
- Parameters:
architecture
- The instance architecture: "i386" or "x86_64".- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
architecture
The instance architecture: "i386" or "x86_64".
- Parameters:
architecture
- The instance architecture: "i386" or "x86_64".- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
arn
The instance's Amazon Resource Number (ARN).
- Parameters:
arn
- The instance's Amazon Resource Number (ARN).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
autoScalingType
For load-based or time-based instances, the type.
- Parameters:
autoScalingType
- For load-based or time-based instances, the type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
autoScalingType
For load-based or time-based instances, the type.
- Parameters:
autoScalingType
- For load-based or time-based instances, the type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
availabilityZone
The instance Availability Zone. For more information, see Regions and Endpoints.
- Parameters:
availabilityZone
- The instance Availability Zone. For more information, see Regions and Endpoints.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blockDeviceMappings
An array of
BlockDeviceMapping
objects that specify the instance's block device mappings.- Parameters:
blockDeviceMappings
- An array ofBlockDeviceMapping
objects that specify the instance's block device mappings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blockDeviceMappings
An array of
BlockDeviceMapping
objects that specify the instance's block device mappings.- Parameters:
blockDeviceMappings
- An array ofBlockDeviceMapping
objects that specify the instance's block device mappings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
blockDeviceMappings
An array of
This is a convenience method that creates an instance of theBlockDeviceMapping
objects that specify the instance's block device mappings.BlockDeviceMapping.Builder
avoiding the need to create one manually viaBlockDeviceMapping.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toblockDeviceMappings(List<BlockDeviceMapping>)
.- Parameters:
blockDeviceMappings
- a consumer that will call methods onBlockDeviceMapping.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
createdAt
The time that the instance was created.
- Parameters:
createdAt
- The time that the instance was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ebsOptimized
Whether this is an Amazon EBS-optimized instance.
- Parameters:
ebsOptimized
- Whether this is an Amazon EBS-optimized instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ec2InstanceId
The ID of the associated Amazon EC2 instance.
- Parameters:
ec2InstanceId
- The ID of the associated Amazon EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ecsClusterArn
For container instances, the Amazon ECS cluster's ARN.
- Parameters:
ecsClusterArn
- For container instances, the Amazon ECS cluster's ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ecsContainerInstanceArn
For container instances, the instance's ARN.
- Parameters:
ecsContainerInstanceArn
- For container instances, the instance's ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
elasticIp
The instance Elastic IP address.
- Parameters:
elasticIp
- The instance Elastic IP address.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hostname
The instance host name. The following are character limits for instance host names.
-
Linux-based instances: 63 characters
-
Windows-based instances: 15 characters
- Parameters:
hostname
- The instance host name. The following are character limits for instance host names.-
Linux-based instances: 63 characters
-
Windows-based instances: 15 characters
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
infrastructureClass
For registered instances, the infrastructure class:
ec2
oron-premises
.- Parameters:
infrastructureClass
- For registered instances, the infrastructure class:ec2
oron-premises
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
installUpdatesOnBoot
Whether to install operating system and package updates when the instance boots. The default value is
true
. If this value is set tofalse
, you must update instances manually by using CreateDeployment to run theupdate_dependencies
stack command or by manually runningyum
(Amazon Linux) orapt-get
(Ubuntu) on the instances.We strongly recommend using the default value of
true
to ensure that your instances have the latest security updates.- Parameters:
installUpdatesOnBoot
- Whether to install operating system and package updates when the instance boots. The default value istrue
. If this value is set tofalse
, you must update instances manually by using CreateDeployment to run theupdate_dependencies
stack command or by manually runningyum
(Amazon Linux) orapt-get
(Ubuntu) on the instances.We strongly recommend using the default value of
true
to ensure that your instances have the latest security updates.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceId
The instance ID.
- Parameters:
instanceId
- The instance ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceProfileArn
The ARN of the instance's IAM profile. For more information about IAM ARNs, see Using Identifiers.
- Parameters:
instanceProfileArn
- The ARN of the instance's IAM profile. For more information about IAM ARNs, see Using Identifiers.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceType
The instance type, such as
t2.micro
.- Parameters:
instanceType
- The instance type, such ast2.micro
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastServiceErrorId
The ID of the last service error. For more information, call DescribeServiceErrors.
- Parameters:
lastServiceErrorId
- The ID of the last service error. For more information, call DescribeServiceErrors.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
layerIds
An array containing the instance layer IDs.
- Parameters:
layerIds
- An array containing the instance layer IDs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
layerIds
An array containing the instance layer IDs.
- Parameters:
layerIds
- An array containing the instance layer IDs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
os
The instance's operating system.
- Parameters:
os
- The instance's operating system.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
platform
The instance's platform.
- Parameters:
platform
- The instance's platform.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateDns
The instance's private DNS name.
- Parameters:
privateDns
- The instance's private DNS name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
privateIp
The instance's private IP address.
- Parameters:
privateIp
- The instance's private IP address.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
publicDns
The instance public DNS name.
- Parameters:
publicDns
- The instance public DNS name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
publicIp
The instance public IP address.
- Parameters:
publicIp
- The instance public IP address.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
registeredBy
For registered instances, who performed the registration.
- Parameters:
registeredBy
- For registered instances, who performed the registration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reportedAgentVersion
The instance's reported OpsWorks Stacks agent version.
- Parameters:
reportedAgentVersion
- The instance's reported OpsWorks Stacks agent version.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reportedOs
For registered instances, the reported operating system.
- Parameters:
reportedOs
- For registered instances, the reported operating system.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reportedOs
For registered instances, the reported operating system.
This is a convenience method that creates an instance of theReportedOs.Builder
avoiding the need to create one manually viaReportedOs.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toreportedOs(ReportedOs)
.- Parameters:
reportedOs
- a consumer that will call methods onReportedOs.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
rootDeviceType
The instance's root device type. For more information, see Storage for the Root Device.
- Parameters:
rootDeviceType
- The instance's root device type. For more information, see Storage for the Root Device.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
rootDeviceType
The instance's root device type. For more information, see Storage for the Root Device.
- Parameters:
rootDeviceType
- The instance's root device type. For more information, see Storage for the Root Device.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
rootDeviceVolumeId
The root device volume ID.
- Parameters:
rootDeviceVolumeId
- The root device volume ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroupIds
An array containing the instance security group IDs.
- Parameters:
securityGroupIds
- An array containing the instance security group IDs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroupIds
An array containing the instance security group IDs.
- Parameters:
securityGroupIds
- An array containing the instance security group IDs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sshHostDsaKeyFingerprint
The SSH key's Deep Security Agent (DSA) fingerprint.
- Parameters:
sshHostDsaKeyFingerprint
- The SSH key's Deep Security Agent (DSA) fingerprint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sshHostRsaKeyFingerprint
The SSH key's RSA fingerprint.
- Parameters:
sshHostRsaKeyFingerprint
- The SSH key's RSA fingerprint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sshKeyName
The instance's Amazon EC2 key-pair name.
- Parameters:
sshKeyName
- The instance's Amazon EC2 key-pair name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stackId
The stack ID.
- Parameters:
stackId
- The stack ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The instance status:
-
booting
-
connection_lost
-
online
-
pending
-
rebooting
-
requested
-
running_setup
-
setup_failed
-
shutting_down
-
start_failed
-
stop_failed
-
stopped
-
stopping
-
terminated
-
terminating
- Parameters:
status
- The instance status:-
booting
-
connection_lost
-
online
-
pending
-
rebooting
-
requested
-
running_setup
-
setup_failed
-
shutting_down
-
start_failed
-
stop_failed
-
stopped
-
stopping
-
terminated
-
terminating
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
subnetId
The instance's subnet ID; applicable only if the stack is running in a VPC.
- Parameters:
subnetId
- The instance's subnet ID; applicable only if the stack is running in a VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tenancy
The instance's tenancy option, such as
dedicated
orhost
.- Parameters:
tenancy
- The instance's tenancy option, such asdedicated
orhost
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
virtualizationType
The instance's virtualization type:
paravirtual
orhvm
.- Parameters:
virtualizationType
- The instance's virtualization type:paravirtual
orhvm
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
virtualizationType
The instance's virtualization type:
paravirtual
orhvm
.- Parameters:
virtualizationType
- The instance's virtualization type:paravirtual
orhvm
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-