Interface SingleInstanceHealth.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<SingleInstanceHealth.Builder,SingleInstanceHealth>,SdkBuilder<SingleInstanceHealth.Builder,SingleInstanceHealth>,SdkPojo
- Enclosing class:
- SingleInstanceHealth
public static interface SingleInstanceHealth.Builder extends SdkPojo, CopyableBuilder<SingleInstanceHealth.Builder,SingleInstanceHealth>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default SingleInstanceHealth.BuilderapplicationMetrics(Consumer<ApplicationMetrics.Builder> applicationMetrics)Request metrics from your application.SingleInstanceHealth.BuilderapplicationMetrics(ApplicationMetrics applicationMetrics)Request metrics from your application.SingleInstanceHealth.BuilderavailabilityZone(String availabilityZone)The availability zone in which the instance runs.SingleInstanceHealth.Buildercauses(String... causes)Represents the causes, which provide more information about the current health status.SingleInstanceHealth.Buildercauses(Collection<String> causes)Represents the causes, which provide more information about the current health status.SingleInstanceHealth.Buildercolor(String color)Represents the color indicator that gives you information about the health of the EC2 instance.default SingleInstanceHealth.Builderdeployment(Consumer<Deployment.Builder> deployment)Information about the most recent deployment to an instance.SingleInstanceHealth.Builderdeployment(Deployment deployment)Information about the most recent deployment to an instance.SingleInstanceHealth.BuilderhealthStatus(String healthStatus)Returns the health status of the specified instance.SingleInstanceHealth.BuilderinstanceId(String instanceId)The ID of the Amazon EC2 instance.SingleInstanceHealth.BuilderinstanceType(String instanceType)The instance's type.SingleInstanceHealth.BuilderlaunchedAt(Instant launchedAt)The time at which the EC2 instance was launched.default SingleInstanceHealth.Buildersystem(Consumer<SystemStatus.Builder> system)Operating system metrics from the instance.SingleInstanceHealth.Buildersystem(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, sdkFields
-
-
-
-
Method Detail
-
instanceId
SingleInstanceHealth.Builder instanceId(String 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
SingleInstanceHealth.Builder healthStatus(String 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
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.
- 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
SingleInstanceHealth.Builder causes(Collection<String> 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
SingleInstanceHealth.Builder causes(String... 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
SingleInstanceHealth.Builder launchedAt(Instant 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
SingleInstanceHealth.Builder applicationMetrics(ApplicationMetrics 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.Builderavoiding the need to create one manually viaApplicationMetrics.builder().When the
Consumercompletes,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:
applicationMetrics(ApplicationMetrics)
-
system
SingleInstanceHealth.Builder system(SystemStatus 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
default SingleInstanceHealth.Builder system(Consumer<SystemStatus.Builder> system)
Operating system metrics from the instance.
This is a convenience method that creates an instance of theSystemStatus.Builderavoiding the need to create one manually viaSystemStatus.builder().When the
Consumercompletes,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:
system(SystemStatus)
-
deployment
SingleInstanceHealth.Builder deployment(Deployment 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
default SingleInstanceHealth.Builder deployment(Consumer<Deployment.Builder> deployment)
Information about the most recent deployment to an instance.
This is a convenience method that creates an instance of theDeployment.Builderavoiding the need to create one manually viaDeployment.builder().When the
Consumercompletes,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:
deployment(Deployment)
-
availabilityZone
SingleInstanceHealth.Builder availabilityZone(String 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
SingleInstanceHealth.Builder instanceType(String 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.
-
-