Class CfnGroup.TagFilterProperty.Builder
java.lang.Object
software.amazon.awscdk.services.resourcegroups.CfnGroup.TagFilterProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnGroup.TagFilterProperty>
- Enclosing interface:
CfnGroup.TagFilterProperty
@Stability(Stable)
public static final class CfnGroup.TagFilterProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnGroup.TagFilterProperty>
A builder for
CfnGroup.TagFilterProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnGroup.TagFilterProperty.getKey()
Sets the value ofCfnGroup.TagFilterProperty.getValues()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
key
Sets the value ofCfnGroup.TagFilterProperty.getKey()
- Parameters:
key
- A string that defines a tag key. Only resources in the account that are tagged with a specified tag key are members of the tag-based resource group.This field is required when the
ResourceQuery
structure'sType
property isTAG_FILTERS_1_0
. You must specify at least one tag key.- Returns:
this
-
values
Sets the value ofCfnGroup.TagFilterProperty.getValues()
- Parameters:
values
- A list of tag values that can be included in the tag-based resource group. This is optional. If you don't specify a value or values for a key, then an AWS resource with any value for that key is a member.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnGroup.TagFilterProperty>
- Returns:
- a new instance of
CfnGroup.TagFilterProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-