Class TagCondition.Builder

java.lang.Object
software.amazon.awscdk.services.backup.TagCondition.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<TagCondition>
Enclosing interface:
TagCondition

@Stability(Stable) public static final class TagCondition.Builder extends Object implements software.amazon.jsii.Builder<TagCondition>
A builder for TagCondition
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • key

      @Stability(Stable) public TagCondition.Builder key(String key)
      Sets the value of TagCondition.getKey()
      Parameters:
      key - The key in a key-value pair. This parameter is required. For example, in "ec2:ResourceTag/Department": "accounting", ec2:ResourceTag/Department is the key.
      Returns:
      this
    • value

      @Stability(Stable) public TagCondition.Builder value(String value)
      Sets the value of TagCondition.getValue()
      Parameters:
      value - The value in a key-value pair. This parameter is required. For example, in "ec2:ResourceTag/Department": "accounting", accounting is the value.
      Returns:
      this
    • operation

      @Stability(Stable) public TagCondition.Builder operation(TagOperation operation)
      Sets the value of TagCondition.getOperation()
      Parameters:
      operation - An operation that is applied to a key-value pair used to filter resources in a selection.
      Returns:
      this
    • build

      @Stability(Stable) public TagCondition build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<TagCondition>
      Returns:
      a new instance of TagCondition
      Throws:
      NullPointerException - if any required attribute was not provided