Interface CreateTriggerRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateTriggerRequest.Builder,,CreateTriggerRequest> DevOpsAgentRequest.Builder,SdkBuilder<CreateTriggerRequest.Builder,,CreateTriggerRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateTriggerRequest
@Mutable
@NotThreadSafe
public static interface CreateTriggerRequest.Builder
extends DevOpsAgentRequest.Builder, SdkPojo, CopyableBuilder<CreateTriggerRequest.Builder,CreateTriggerRequest>
-
Method Summary
Modifier and TypeMethodDescriptionThe action the new Trigger performs when it firesagentSpaceId(String agentSpaceId) The unique identifier for the agent space where the Trigger will be createdclientToken(String clientToken) A unique, case-sensitive identifier used for idempotent Trigger creationdefault CreateTriggerRequest.Buildercondition(Consumer<TriggerCondition.Builder> condition) The condition that fires the new Triggercondition(TriggerCondition condition) The condition that fires the new TriggeroverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The initial status of the TriggerHow the new Trigger firesMethods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.devopsagent.model.DevOpsAgentRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
agentSpaceId
The unique identifier for the agent space where the Trigger will be created
- Parameters:
agentSpaceId- The unique identifier for the agent space where the Trigger will be created- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
How the new Trigger fires
- Parameters:
type- How the new Trigger fires- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
condition
The condition that fires the new Trigger
- Parameters:
condition- The condition that fires the new Trigger- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
condition
The condition that fires the new Trigger
This is a convenience method that creates an instance of theTriggerCondition.Builderavoiding the need to create one manually viaTriggerCondition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocondition(TriggerCondition).- Parameters:
condition- a consumer that will call methods onTriggerCondition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
action
The action the new Trigger performs when it fires
- Parameters:
action- The action the new Trigger performs when it fires- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The initial status of the Trigger
- Parameters:
status- The initial status of the Trigger- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
A unique, case-sensitive identifier used for idempotent Trigger creation
- Parameters:
clientToken- A unique, case-sensitive identifier used for idempotent Trigger creation- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateTriggerRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateTriggerRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-