Interface CreateQuotaShareRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,BatchRequest.Builder,Buildable,CopyableBuilder<CreateQuotaShareRequest.Builder,CreateQuotaShareRequest>,SdkBuilder<CreateQuotaShareRequest.Builder,CreateQuotaShareRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateQuotaShareRequest
@Mutable @NotThreadSafe public static interface CreateQuotaShareRequest.Builder extends BatchRequest.Builder, SdkPojo, CopyableBuilder<CreateQuotaShareRequest.Builder,CreateQuotaShareRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateQuotaShareRequest.BuildercapacityLimits(Collection<QuotaShareCapacityLimit> capacityLimits)A list that specifies the quantity and type of compute capacity allocated to the quota share.CreateQuotaShareRequest.BuildercapacityLimits(Consumer<QuotaShareCapacityLimit.Builder>... capacityLimits)A list that specifies the quantity and type of compute capacity allocated to the quota share.CreateQuotaShareRequest.BuildercapacityLimits(QuotaShareCapacityLimit... capacityLimits)A list that specifies the quantity and type of compute capacity allocated to the quota share.CreateQuotaShareRequest.BuilderjobQueue(String jobQueue)The Batch job queue associated with the quota share.CreateQuotaShareRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateQuotaShareRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)default CreateQuotaShareRequest.BuilderpreemptionConfiguration(Consumer<QuotaSharePreemptionConfiguration.Builder> preemptionConfiguration)Specifies the preemption behavior for jobs in a quota share.CreateQuotaShareRequest.BuilderpreemptionConfiguration(QuotaSharePreemptionConfiguration preemptionConfiguration)Specifies the preemption behavior for jobs in a quota share.CreateQuotaShareRequest.BuilderquotaShareName(String quotaShareName)The name of the quota share.default CreateQuotaShareRequest.BuilderresourceSharingConfiguration(Consumer<QuotaShareResourceSharingConfiguration.Builder> resourceSharingConfiguration)Specifies whether a quota share reserves, lends, or both lends and borrows idle compute capacity.CreateQuotaShareRequest.BuilderresourceSharingConfiguration(QuotaShareResourceSharingConfiguration resourceSharingConfiguration)Specifies whether a quota share reserves, lends, or both lends and borrows idle compute capacity.CreateQuotaShareRequest.Builderstate(String state)The state of the quota share.CreateQuotaShareRequest.Builderstate(QuotaShareState state)The state of the quota share.CreateQuotaShareRequest.Buildertags(Map<String,String> tags)The tags that you apply to the quota share to help you categorize and organize your resources.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.services.batch.model.BatchRequest.Builder
build
-
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 Detail
-
quotaShareName
CreateQuotaShareRequest.Builder quotaShareName(String quotaShareName)
The name of the quota share. It can be up to 128 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).
- Parameters:
quotaShareName- The name of the quota share. It can be up to 128 characters long. It can contain uppercase and lowercase letters, numbers, hyphens (-), and underscores (_).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
jobQueue
CreateQuotaShareRequest.Builder jobQueue(String jobQueue)
The Batch job queue associated with the quota share. This can be the job queue name or ARN. A job queue must be in the
VALIDstate before you can associate it with a quota share.- Parameters:
jobQueue- The Batch job queue associated with the quota share. This can be the job queue name or ARN. A job queue must be in theVALIDstate before you can associate it with a quota share.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityLimits
CreateQuotaShareRequest.Builder capacityLimits(Collection<QuotaShareCapacityLimit> capacityLimits)
A list that specifies the quantity and type of compute capacity allocated to the quota share.
- Parameters:
capacityLimits- A list that specifies the quantity and type of compute capacity allocated to the quota share.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityLimits
CreateQuotaShareRequest.Builder capacityLimits(QuotaShareCapacityLimit... capacityLimits)
A list that specifies the quantity and type of compute capacity allocated to the quota share.
- Parameters:
capacityLimits- A list that specifies the quantity and type of compute capacity allocated to the quota share.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
capacityLimits
CreateQuotaShareRequest.Builder capacityLimits(Consumer<QuotaShareCapacityLimit.Builder>... capacityLimits)
A list that specifies the quantity and type of compute capacity allocated to the quota share.
This is a convenience method that creates an instance of theQuotaShareCapacityLimit.Builderavoiding the need to create one manually viaQuotaShareCapacityLimit.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#capacityLimits(List.) - Parameters:
capacityLimits- a consumer that will call methods onQuotaShareCapacityLimit.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#capacityLimits(java.util.Collection)
-
resourceSharingConfiguration
CreateQuotaShareRequest.Builder resourceSharingConfiguration(QuotaShareResourceSharingConfiguration resourceSharingConfiguration)
Specifies whether a quota share reserves, lends, or both lends and borrows idle compute capacity.
- Parameters:
resourceSharingConfiguration- Specifies whether a quota share reserves, lends, or both lends and borrows idle compute capacity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceSharingConfiguration
default CreateQuotaShareRequest.Builder resourceSharingConfiguration(Consumer<QuotaShareResourceSharingConfiguration.Builder> resourceSharingConfiguration)
Specifies whether a quota share reserves, lends, or both lends and borrows idle compute capacity.
This is a convenience method that creates an instance of theQuotaShareResourceSharingConfiguration.Builderavoiding the need to create one manually viaQuotaShareResourceSharingConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toresourceSharingConfiguration(QuotaShareResourceSharingConfiguration).- Parameters:
resourceSharingConfiguration- a consumer that will call methods onQuotaShareResourceSharingConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
resourceSharingConfiguration(QuotaShareResourceSharingConfiguration)
-
preemptionConfiguration
CreateQuotaShareRequest.Builder preemptionConfiguration(QuotaSharePreemptionConfiguration preemptionConfiguration)
Specifies the preemption behavior for jobs in a quota share.
- Parameters:
preemptionConfiguration- Specifies the preemption behavior for jobs in a quota share.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
preemptionConfiguration
default CreateQuotaShareRequest.Builder preemptionConfiguration(Consumer<QuotaSharePreemptionConfiguration.Builder> preemptionConfiguration)
Specifies the preemption behavior for jobs in a quota share.
This is a convenience method that creates an instance of theQuotaSharePreemptionConfiguration.Builderavoiding the need to create one manually viaQuotaSharePreemptionConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topreemptionConfiguration(QuotaSharePreemptionConfiguration).- Parameters:
preemptionConfiguration- a consumer that will call methods onQuotaSharePreemptionConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
preemptionConfiguration(QuotaSharePreemptionConfiguration)
-
state
CreateQuotaShareRequest.Builder state(String state)
The state of the quota share. If the quota share is
ENABLED, it is able to accept jobs. If the quota share isDISABLED, new jobs won't be accepted but jobs already submitted can finish. The default state isENABLED.- Parameters:
state- The state of the quota share. If the quota share isENABLED, it is able to accept jobs. If the quota share isDISABLED, new jobs won't be accepted but jobs already submitted can finish. The default state isENABLED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
QuotaShareState,QuotaShareState
-
state
CreateQuotaShareRequest.Builder state(QuotaShareState state)
The state of the quota share. If the quota share is
ENABLED, it is able to accept jobs. If the quota share isDISABLED, new jobs won't be accepted but jobs already submitted can finish. The default state isENABLED.- Parameters:
state- The state of the quota share. If the quota share isENABLED, it is able to accept jobs. If the quota share isDISABLED, new jobs won't be accepted but jobs already submitted can finish. The default state isENABLED.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
QuotaShareState,QuotaShareState
-
tags
CreateQuotaShareRequest.Builder tags(Map<String,String> tags)
The tags that you apply to the quota share to help you categorize and organize your resources. Each tag consists of a key and an optional value. For more information, see Tagging your Batch resources in Batch User Guide.
- Parameters:
tags- The tags that you apply to the quota share to help you categorize and organize your resources. Each tag consists of a key and an optional value. For more information, see Tagging your Batch resources in Batch User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateQuotaShareRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateQuotaShareRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-