Class PathSegment
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PathSegment.Builder,PathSegment>
One segment of a resource hierarchy path: the hierarchy level, such as database or
table, and the id of the resource at that level. Both are required.
In a GLUE_DATA_CATALOG connection's scope, the level glueService names a service instead of
a resource. Its id is one of the following:
-
GLUE- AWS Glue databases and tables. -
SAGEMAKER_AI- Amazon SageMaker AI resources. -
REDSHIFT- Amazon Redshift resources. -
RDS- Amazon RDS resources. -
MSK- Amazon Managed Streaming for Apache Kafka (Amazon MSK) resources. -
KINESIS- Amazon Kinesis Data Streams resources. -
FIREHOSE- Amazon Data Firehose resources. -
DYNAMODB- Amazon DynamoDB resources. -
KEYSPACES- Amazon Keyspaces (for Apache Cassandra) resources. -
ELASTICACHE- Amazon ElastiCache resources. -
OPENSEARCH- Amazon OpenSearch Service resources. -
NEPTUNE- Amazon Neptune resources. -
TIMESTREAM- Amazon Timestream resources. -
ATHENA- Amazon Athena resources. -
GLUE_SCHEMA_REGISTRY- AWS Glue Schema Registry resources. -
S3- Amazon S3 resources. -
S3_VECTORS- Amazon S3 Vectors resources.
Every later segment of the selector must name a level of that service. Any other value, a second
glueService segment, or a glueService segment in any other position returns
ValidationException. A resource path never contains glueService.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic PathSegment.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Stringid()The ID of the resource at this level.final Stringlevel()The hierarchy level name for this segment (for example, "database", "table").static Class<? extends PathSegment.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
level
The hierarchy level name for this segment (for example, "database", "table"). Non-blank, no whitespace.
- Returns:
- The hierarchy level name for this segment (for example, "database", "table"). Non-blank, no whitespace.
-
id
The ID of the resource at this level. Non-blank. Can contain spaces, backticks, and
%(it is a resource name), but no control characters. AWS Context matches it exactly.- Returns:
- The ID of the resource at this level. Non-blank. Can contain spaces, backticks, and
%(it is a resource name), but no control characters. AWS Context matches it exactly.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<PathSegment.Builder,PathSegment> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-