public static final class CfnGroup.TagFilterProperty.Builder
extends java.lang.Object
CfnGroup.TagFilterProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnGroup.TagFilterProperty |
build()
Builds the configured instance.
|
CfnGroup.TagFilterProperty.Builder |
key(java.lang.String key)
Sets the value of
CfnGroup.TagFilterProperty.getKey() |
CfnGroup.TagFilterProperty.Builder |
values(java.util.List<java.lang.String> values)
Sets the value of
CfnGroup.TagFilterProperty.getValues() |
public CfnGroup.TagFilterProperty.Builder key(java.lang.String key)
CfnGroup.TagFilterProperty.getKey()
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's Type
property is TAG_FILTERS_1_0
. You must specify at least one tag key.
this
public CfnGroup.TagFilterProperty.Builder values(java.util.List<java.lang.String> values)
CfnGroup.TagFilterProperty.getValues()
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.this
public CfnGroup.TagFilterProperty build()
CfnGroup.TagFilterProperty
java.lang.NullPointerException
- if any required attribute was not provided