Interface DescribeReservedCapacityResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<DescribeReservedCapacityResponse.Builder,
,DescribeReservedCapacityResponse> SageMakerResponse.Builder
,SdkBuilder<DescribeReservedCapacityResponse.Builder,
,DescribeReservedCapacityResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
DescribeReservedCapacityResponse
-
Method Summary
Modifier and TypeMethodDescriptionavailabilityZone
(String availabilityZone) The Availability Zone where the reserved capacity is provisioned.availableInstanceCount
(Integer availableInstanceCount) The number of instances currently available for use in this reserved capacity.durationHours
(Long durationHours) The total duration of the reserved capacity in hours.durationMinutes
(Long durationMinutes) The number of minutes for the duration of the reserved capacity.The timestamp when the reserved capacity expires.instanceType
(String instanceType) The Amazon EC2 instance type used in the reserved capacity.instanceType
(ReservedCapacityInstanceType instanceType) The Amazon EC2 instance type used in the reserved capacity.inUseInstanceCount
(Integer inUseInstanceCount) The number of instances currently in use from this reserved capacity.reservedCapacityArn
(String reservedCapacityArn) ARN of the reserved capacity.reservedCapacityType
(String reservedCapacityType) The type of reserved capacity.reservedCapacityType
(ReservedCapacityType reservedCapacityType) The type of reserved capacity.The timestamp when the reserved capacity becomes active.The current status of the reserved capacity.status
(ReservedCapacityStatus status) The current status of the reserved capacity.totalInstanceCount
(Integer totalInstanceCount) The total number of instances allocated to this reserved capacity.ultraServerSummary
(Consumer<UltraServerSummary.Builder> ultraServerSummary) A summary of the UltraServer associated with this reserved capacity.ultraServerSummary
(UltraServerSummary ultraServerSummary) A summary of the UltraServer associated with this reserved capacity.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.sagemaker.model.SageMakerResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
reservedCapacityArn
ARN of the reserved capacity.
- Parameters:
reservedCapacityArn
- ARN of the reserved capacity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reservedCapacityType
The type of reserved capacity.
- Parameters:
reservedCapacityType
- The type of reserved capacity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
reservedCapacityType
DescribeReservedCapacityResponse.Builder reservedCapacityType(ReservedCapacityType reservedCapacityType) The type of reserved capacity.
- Parameters:
reservedCapacityType
- The type of reserved capacity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The current status of the reserved capacity.
- Parameters:
status
- The current status of the reserved capacity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The current status of the reserved capacity.
- Parameters:
status
- The current status of the reserved capacity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
availabilityZone
The Availability Zone where the reserved capacity is provisioned.
- Parameters:
availabilityZone
- The Availability Zone where the reserved capacity is provisioned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
durationHours
The total duration of the reserved capacity in hours.
- Parameters:
durationHours
- The total duration of the reserved capacity in hours.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
durationMinutes
The number of minutes for the duration of the reserved capacity. For example, if a reserved capacity starts at 08:55 and ends at 11:30, the minutes field would be 35.
- Parameters:
durationMinutes
- The number of minutes for the duration of the reserved capacity. For example, if a reserved capacity starts at 08:55 and ends at 11:30, the minutes field would be 35.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startTime
The timestamp when the reserved capacity becomes active.
- Parameters:
startTime
- The timestamp when the reserved capacity becomes active.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endTime
The timestamp when the reserved capacity expires.
- Parameters:
endTime
- The timestamp when the reserved capacity expires.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceType
The Amazon EC2 instance type used in the reserved capacity.
- Parameters:
instanceType
- The Amazon EC2 instance type used in the reserved capacity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceType
The Amazon EC2 instance type used in the reserved capacity.
- Parameters:
instanceType
- The Amazon EC2 instance type used in the reserved capacity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
totalInstanceCount
The total number of instances allocated to this reserved capacity.
- Parameters:
totalInstanceCount
- The total number of instances allocated to this reserved capacity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
availableInstanceCount
The number of instances currently available for use in this reserved capacity.
- Parameters:
availableInstanceCount
- The number of instances currently available for use in this reserved capacity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inUseInstanceCount
The number of instances currently in use from this reserved capacity.
- Parameters:
inUseInstanceCount
- The number of instances currently in use from this reserved capacity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ultraServerSummary
A summary of the UltraServer associated with this reserved capacity.
- Parameters:
ultraServerSummary
- A summary of the UltraServer associated with this reserved capacity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ultraServerSummary
default DescribeReservedCapacityResponse.Builder ultraServerSummary(Consumer<UltraServerSummary.Builder> ultraServerSummary) A summary of the UltraServer associated with this reserved capacity.
This is a convenience method that creates an instance of theUltraServerSummary.Builder
avoiding the need to create one manually viaUltraServerSummary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toultraServerSummary(UltraServerSummary)
.- Parameters:
ultraServerSummary
- a consumer that will call methods onUltraServerSummary.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-