Class ResourceAttribute
- java.lang.Object
-
- software.amazon.awssdk.services.migrationhub.model.ResourceAttribute
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ResourceAttribute.Builder,ResourceAttribute>
@Generated("software.amazon.awssdk:codegen") public final class ResourceAttribute extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ResourceAttribute.Builder,ResourceAttribute>
Attribute associated with a resource.
Note the corresponding format required per type listed below:
- IPV4
-
x.x.x.xwhere x is an integer in the range [0,255]
- IPV6
-
y : y : y : y : y : y : y : ywhere y is a hexadecimal between 0 and FFFF. [0, FFFF]
- MAC_ADDRESS
-
^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$ - FQDN
-
^[^<>{}\\\\/?,=\\p{Cntrl}]{1,256}$
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceResourceAttribute.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResourceAttribute.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends ResourceAttribute.Builder>serializableBuilderClass()ResourceAttribute.BuildertoBuilder()StringtoString()Returns a string representation of this object.ResourceAttributeTypetype()Type of resource.StringtypeAsString()Type of resource.Stringvalue()Value of the resource type.-
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
-
type
public final ResourceAttributeType type()
Type of resource.
If the service returns an enum value that is not available in the current SDK version,
typewill returnResourceAttributeType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- Type of resource.
- See Also:
ResourceAttributeType
-
typeAsString
public final String typeAsString()
Type of resource.
If the service returns an enum value that is not available in the current SDK version,
typewill returnResourceAttributeType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- Type of resource.
- See Also:
ResourceAttributeType
-
value
public final String value()
Value of the resource type.
- Returns:
- Value of the resource type.
-
toBuilder
public ResourceAttribute.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ResourceAttribute.Builder,ResourceAttribute>
-
builder
public static ResourceAttribute.Builder builder()
-
serializableBuilderClass
public static Class<? extends ResourceAttribute.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.
-
-