Class StoredQuery
- java.lang.Object
-
- software.amazon.awssdk.services.config.model.StoredQuery
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<StoredQuery.Builder,StoredQuery>
@Generated("software.amazon.awssdk:codegen") public final class StoredQuery extends Object implements SdkPojo, Serializable, ToCopyableBuilder<StoredQuery.Builder,StoredQuery>
Provides the details of a stored query.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceStoredQuery.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StoredQuery.Builderbuilder()Stringdescription()A unique description for the query.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)Stringexpression()The expression of the query.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringqueryArn()Amazon Resource Name (ARN) of the query.StringqueryId()The ID of the query.StringqueryName()The name of the query.List<SdkField<?>>sdkFields()static Class<? extends StoredQuery.Builder>serializableBuilderClass()StoredQuery.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
queryId
public final String queryId()
The ID of the query.
- Returns:
- The ID of the query.
-
queryArn
public final String queryArn()
Amazon Resource Name (ARN) of the query. For example, arn:partition:service:region:account-id:resource-type/resource-name/resource-id.
- Returns:
- Amazon Resource Name (ARN) of the query. For example, arn:partition:service:region:account-id:resource-type/resource-name/resource-id.
-
queryName
public final String queryName()
The name of the query.
- Returns:
- The name of the query.
-
description
public final String description()
A unique description for the query.
- Returns:
- A unique description for the query.
-
expression
public final String expression()
The expression of the query. For example,
SELECT resourceId, resourceType, supplementaryConfiguration.BucketVersioningConfiguration.status WHERE resourceType = 'AWS::S3::Bucket' AND supplementaryConfiguration.BucketVersioningConfiguration.status = 'Off'.- Returns:
- The expression of the query. For example,
SELECT resourceId, resourceType, supplementaryConfiguration.BucketVersioningConfiguration.status WHERE resourceType = 'AWS::S3::Bucket' AND supplementaryConfiguration.BucketVersioningConfiguration.status = 'Off'.
-
toBuilder
public StoredQuery.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<StoredQuery.Builder,StoredQuery>
-
builder
public static StoredQuery.Builder builder()
-
serializableBuilderClass
public static Class<? extends StoredQuery.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-