public static interface SingleInstanceHealth.Builder extends CopyableBuilder<SingleInstanceHealth.Builder,SingleInstanceHealth>
Modifier and Type | Method and Description |
---|---|
SingleInstanceHealth.Builder |
applicationMetrics(ApplicationMetrics applicationMetrics)
Request metrics from your application.
|
default SingleInstanceHealth.Builder |
applicationMetrics(Consumer<ApplicationMetrics.Builder> applicationMetrics)
Request metrics from your application.
|
SingleInstanceHealth.Builder |
availabilityZone(String availabilityZone)
The availability zone in which the instance runs.
|
SingleInstanceHealth.Builder |
causes(Collection<String> causes)
Represents the causes, which provide more information about the current health status.
|
SingleInstanceHealth.Builder |
causes(String... causes)
Represents the causes, which provide more information about the current health status.
|
SingleInstanceHealth.Builder |
color(String color)
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.
|
SingleInstanceHealth.Builder |
deployment(Deployment deployment)
Information about the most recent deployment to an instance.
|
SingleInstanceHealth.Builder |
healthStatus(String healthStatus)
Returns the health status of the specified instance.
|
SingleInstanceHealth.Builder |
instanceId(String instanceId)
The ID of the Amazon EC2 instance.
|
SingleInstanceHealth.Builder |
instanceType(String instanceType)
The instance's type.
|
SingleInstanceHealth.Builder |
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.
|
SingleInstanceHealth.Builder |
system(SystemStatus system)
Operating system metrics from the instance.
|
copy
applyMutation, build
SingleInstanceHealth.Builder instanceId(String instanceId)
The ID of the Amazon EC2 instance.
instanceId
- The ID of the Amazon EC2 instance.SingleInstanceHealth.Builder healthStatus(String healthStatus)
Returns the health status of the specified instance. For more information, see Health Colors and Statuses.
healthStatus
- Returns the health status of the specified instance. For more information, see Health Colors
and Statuses.SingleInstanceHealth.Builder color(String color)
Represents the color indicator that gives you information about the health of the EC2 instance. For more information, see Health Colors and Statuses.
color
- Represents the color indicator that gives you information about the health of the EC2 instance. For
more information, see Health Colors
and Statuses.SingleInstanceHealth.Builder causes(Collection<String> causes)
Represents the causes, which provide more information about the current health status.
causes
- Represents the causes, which provide more information about the current health status.SingleInstanceHealth.Builder causes(String... causes)
Represents the causes, which provide more information about the current health status.
causes
- Represents the causes, which provide more information about the current health status.SingleInstanceHealth.Builder launchedAt(Instant launchedAt)
The time at which the EC2 instance was launched.
launchedAt
- The time at which the EC2 instance was launched.SingleInstanceHealth.Builder applicationMetrics(ApplicationMetrics applicationMetrics)
Request metrics from your application.
applicationMetrics
- Request metrics from your application.default SingleInstanceHealth.Builder applicationMetrics(Consumer<ApplicationMetrics.Builder> applicationMetrics)
Request metrics from your application.
This is a convenience that creates an instance of theApplicationMetrics.Builder
avoiding the need to
create one manually via ApplicationMetrics.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to applicationMetrics(ApplicationMetrics)
.applicationMetrics
- a consumer that will call methods on ApplicationMetrics.Builder
applicationMetrics(ApplicationMetrics)
SingleInstanceHealth.Builder system(SystemStatus system)
Operating system metrics from the instance.
system
- Operating system metrics from the instance.default SingleInstanceHealth.Builder system(Consumer<SystemStatus.Builder> system)
Operating system metrics from the instance.
This is a convenience that creates an instance of theSystemStatus.Builder
avoiding the need to
create one manually via SystemStatus.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to system(SystemStatus)
.system
- a consumer that will call methods on SystemStatus.Builder
system(SystemStatus)
SingleInstanceHealth.Builder deployment(Deployment deployment)
Information about the most recent deployment to an instance.
deployment
- Information about the most recent deployment to an instance.default SingleInstanceHealth.Builder deployment(Consumer<Deployment.Builder> deployment)
Information about the most recent deployment to an instance.
This is a convenience that creates an instance of theDeployment.Builder
avoiding the need to create
one manually via Deployment.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its result
is passed to deployment(Deployment)
.deployment
- a consumer that will call methods on Deployment.Builder
deployment(Deployment)
SingleInstanceHealth.Builder availabilityZone(String availabilityZone)
The availability zone in which the instance runs.
availabilityZone
- The availability zone in which the instance runs.SingleInstanceHealth.Builder instanceType(String instanceType)
The instance's type.
instanceType
- The instance's type.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.