Record Class SecretFilter
java.lang.Object
java.lang.Record
codes.grow.packages.awssecretsmanager.SecretFilter
- Record Components:
key- filter key, one of the constants of this recordvalues- values to match
A
ListSecrets / BatchGetSecretValue filter. A value prefixed with !
negates it (AWS).-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringFilter key matching every field.static final StringDescription filter key.static final StringName filter key (prefix match).static final StringOwning service filter key.static final StringPrimary region filter key.static final StringTag key filter key.static final StringTag value filter key. -
Constructor Summary
ConstructorsConstructorDescriptionSecretFilter(String key, List<String> values) Validates and copies the values. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.static SecretFilterCreates a name filter.static SecretFilterCreates a filter.final StringtoString()Returns a string representation of this record class.values()Returns the value of thevaluesrecord component.
-
Field Details
-
NAME
Name filter key (prefix match).- See Also:
-
DESCRIPTION
Description filter key.- See Also:
-
TAG_KEY
Tag key filter key.- See Also:
-
TAG_VALUE
Tag value filter key.- See Also:
-
PRIMARY_REGION
Primary region filter key.- See Also:
-
OWNING_SERVICE
Owning service filter key.- See Also:
-
ALL
Filter key matching every field.- See Also:
-
-
Constructor Details
-
SecretFilter
Validates and copies the values.
-
-
Method Details
-
of
Creates a filter.- Parameters:
key- filter keyvalues- values- Returns:
- the filter
-
name
Creates a name filter.- Parameters:
values- name prefixes- Returns:
- the filter
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
values
Returns the value of thevaluesrecord component.- Returns:
- the value of the
valuesrecord component
-