Class PathMatchType
- java.lang.Object
-
- software.amazon.awssdk.services.vpclattice.model.PathMatchType
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PathMatchType.Builder,PathMatchType>
@Generated("software.amazon.awssdk:codegen") public final class PathMatchType extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PathMatchType.Builder,PathMatchType>
Describes a path match type. Each rule can include only one of the following types of paths.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePathMatchType.Builderstatic classPathMatchType.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PathMatchType.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)Stringexact()An exact match of the path.static PathMatchTypefromExact(String exact)Create an instance of this class withexact()initialized to the given value.static PathMatchTypefromPrefix(String prefix)Create an instance of this class withprefix()initialized to the given value.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringprefix()A prefix match of the path.List<SdkField<?>>sdkFields()static Class<? extends PathMatchType.Builder>serializableBuilderClass()PathMatchType.BuildertoBuilder()StringtoString()Returns a string representation of this object.PathMatchType.Typetype()Retrieve an enum value representing which member of this object is populated.-
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
-
exact
public final String exact()
An exact match of the path.
- Returns:
- An exact match of the path.
-
prefix
public final String prefix()
A prefix match of the path.
- Returns:
- A prefix match of the path.
-
toBuilder
public PathMatchType.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PathMatchType.Builder,PathMatchType>
-
builder
public static PathMatchType.Builder builder()
-
serializableBuilderClass
public static Class<? extends PathMatchType.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.
-
fromExact
public static PathMatchType fromExact(String exact)
Create an instance of this class withexact()initialized to the given value.An exact match of the path.
- Parameters:
exact- An exact match of the path.
-
fromPrefix
public static PathMatchType fromPrefix(String prefix)
Create an instance of this class withprefix()initialized to the given value.A prefix match of the path.
- Parameters:
prefix- A prefix match of the path.
-
type
public PathMatchType.Type type()
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will bePathMatchType.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will bePathMatchType.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
-