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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofTagCondition.getKey()operation(TagOperation operation) Sets the value ofTagCondition.getOperation()Sets the value ofTagCondition.getValue()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
key
Sets the value ofTagCondition.getKey()- Parameters:
key- The key in a key-value pair. This parameter is required. For example, in"ec2:ResourceTag/Department": "accounting",ec2:ResourceTag/Departmentis the key.- Returns:
this
-
value
Sets the value ofTagCondition.getValue()- Parameters:
value- The value in a key-value pair. This parameter is required. For example, in"ec2:ResourceTag/Department": "accounting",accountingis the value.- Returns:
this
-
operation
Sets the value ofTagCondition.getOperation()- Parameters:
operation- An operation that is applied to a key-value pair used to filter resources in a selection.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<TagCondition>- Returns:
- a new instance of
TagCondition - Throws:
NullPointerException- if any required attribute was not provided
-