Interface SingleInstanceHealth.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<SingleInstanceHealth.Builder,
,SingleInstanceHealth> SdkBuilder<SingleInstanceHealth.Builder,
,SingleInstanceHealth> SdkPojo
- Enclosing class:
SingleInstanceHealth
-
Method Summary
Modifier and TypeMethodDescriptiondefault SingleInstanceHealth.Builder
applicationMetrics
(Consumer<ApplicationMetrics.Builder> applicationMetrics) Request metrics from your application.applicationMetrics
(ApplicationMetrics applicationMetrics) Request metrics from your application.availabilityZone
(String availabilityZone) The availability zone in which the instance runs.Represents the causes, which provide more information about the current health status.causes
(Collection<String> causes) Represents the causes, which provide more information about the current health status.Represents the color indicator that gives you information about the health of the EC2 instance.default SingleInstanceHealth.Builder
deployment
(Consumer<Deployment.Builder> deployment) Information about the most recent deployment to an instance.deployment
(Deployment deployment) Information about the most recent deployment to an instance.healthStatus
(String healthStatus) Returns the health status of the specified instance.instanceId
(String instanceId) The ID of the Amazon EC2 instance.instanceType
(String instanceType) The instance's type.launchedAt
(Instant launchedAt) The time at which the EC2 instance was launched.default SingleInstanceHealth.Builder
system
(Consumer<SystemStatus.Builder> system) Operating system metrics from the instance.system
(SystemStatus system) Operating system metrics from the instance.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
-
instanceId
The ID of the Amazon EC2 instance.
- Parameters:
instanceId
- The ID of the Amazon EC2 instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
healthStatus
Returns the health status of the specified instance. For more information, see Health Colors and Statuses.
- Parameters:
healthStatus
- Returns the health status of the specified instance. For more information, see Health Colors and Statuses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
color
Represents the color indicator that gives you information about the health of the EC2 instance. For more information, see Health Colors and Statuses.
- Parameters:
color
- Represents the color indicator that gives you information about the health of the EC2 instance. For more information, see Health Colors and Statuses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
causes
Represents the causes, which provide more information about the current health status.
- Parameters:
causes
- Represents the causes, which provide more information about the current health status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
causes
Represents the causes, which provide more information about the current health status.
- Parameters:
causes
- Represents the causes, which provide more information about the current health status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
launchedAt
The time at which the EC2 instance was launched.
- Parameters:
launchedAt
- The time at which the EC2 instance was launched.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
applicationMetrics
Request metrics from your application.
- Parameters:
applicationMetrics
- Request metrics from your application.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
applicationMetrics
default SingleInstanceHealth.Builder applicationMetrics(Consumer<ApplicationMetrics.Builder> applicationMetrics) Request metrics from your application.
This is a convenience method that creates an instance of theApplicationMetrics.Builder
avoiding the need to create one manually viaApplicationMetrics.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toapplicationMetrics(ApplicationMetrics)
.- Parameters:
applicationMetrics
- a consumer that will call methods onApplicationMetrics.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
system
Operating system metrics from the instance.
- Parameters:
system
- Operating system metrics from the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
system
Operating system metrics from the instance.
This is a convenience method that creates an instance of theSystemStatus.Builder
avoiding the need to create one manually viaSystemStatus.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosystem(SystemStatus)
.- Parameters:
system
- a consumer that will call methods onSystemStatus.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
deployment
Information about the most recent deployment to an instance.
- Parameters:
deployment
- Information about the most recent deployment to an instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deployment
Information about the most recent deployment to an instance.
This is a convenience method that creates an instance of theDeployment.Builder
avoiding the need to create one manually viaDeployment.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todeployment(Deployment)
.- Parameters:
deployment
- a consumer that will call methods onDeployment.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
availabilityZone
The availability zone in which the instance runs.
- Parameters:
availabilityZone
- The availability zone in which the instance runs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceType
The instance's type.
- Parameters:
instanceType
- The instance's type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-