Interface RepositoryTrigger.Builder

All Superinterfaces:
Buildable, CopyableBuilder<RepositoryTrigger.Builder,RepositoryTrigger>, SdkBuilder<RepositoryTrigger.Builder,RepositoryTrigger>, SdkPojo
Enclosing class:
RepositoryTrigger

public static interface RepositoryTrigger.Builder extends SdkPojo, CopyableBuilder<RepositoryTrigger.Builder,RepositoryTrigger>
  • Method Details

    • name

      The name of the trigger.

      Parameters:
      name - The name of the trigger.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • destinationArn

      RepositoryTrigger.Builder destinationArn(String destinationArn)

      The ARN of the resource that is the target for a trigger (for example, the ARN of a topic in Amazon SNS).

      Parameters:
      destinationArn - The ARN of the resource that is the target for a trigger (for example, the ARN of a topic in Amazon SNS).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • customData

      RepositoryTrigger.Builder customData(String customData)

      Any custom data associated with the trigger to be included in the information sent to the target of the trigger.

      Parameters:
      customData - Any custom data associated with the trigger to be included in the information sent to the target of the trigger.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • branches

      The branches to be included in the trigger configuration. If you specify an empty array, the trigger applies to all branches.

      Although no content is required in the array, you must include the array itself.

      Parameters:
      branches - The branches to be included in the trigger configuration. If you specify an empty array, the trigger applies to all branches.

      Although no content is required in the array, you must include the array itself.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • branches

      RepositoryTrigger.Builder branches(String... branches)

      The branches to be included in the trigger configuration. If you specify an empty array, the trigger applies to all branches.

      Although no content is required in the array, you must include the array itself.

      Parameters:
      branches - The branches to be included in the trigger configuration. If you specify an empty array, the trigger applies to all branches.

      Although no content is required in the array, you must include the array itself.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • eventsWithStrings

      RepositoryTrigger.Builder eventsWithStrings(Collection<String> events)

      The repository events that cause the trigger to run actions in another service, such as sending a notification through Amazon SNS.

      The valid value "all" cannot be used with any other values.

      Parameters:
      events - The repository events that cause the trigger to run actions in another service, such as sending a notification through Amazon SNS.

      The valid value "all" cannot be used with any other values.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • eventsWithStrings

      RepositoryTrigger.Builder eventsWithStrings(String... events)

      The repository events that cause the trigger to run actions in another service, such as sending a notification through Amazon SNS.

      The valid value "all" cannot be used with any other values.

      Parameters:
      events - The repository events that cause the trigger to run actions in another service, such as sending a notification through Amazon SNS.

      The valid value "all" cannot be used with any other values.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • events

      The repository events that cause the trigger to run actions in another service, such as sending a notification through Amazon SNS.

      The valid value "all" cannot be used with any other values.

      Parameters:
      events - The repository events that cause the trigger to run actions in another service, such as sending a notification through Amazon SNS.

      The valid value "all" cannot be used with any other values.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • events

      The repository events that cause the trigger to run actions in another service, such as sending a notification through Amazon SNS.

      The valid value "all" cannot be used with any other values.

      Parameters:
      events - The repository events that cause the trigger to run actions in another service, such as sending a notification through Amazon SNS.

      The valid value "all" cannot be used with any other values.

      Returns:
      Returns a reference to this object so that method calls can be chained together.