Class ResourceTargetMetadata
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ResourceTargetMetadata.Builder,ResourceTargetMetadata>
Contains metadata about a resource target, according to its type.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enum -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.static ResourceTargetMetadatafromMssqlDatabase(Consumer<ResourceTargetMetadataForMssqlDatabase.Builder> mssqlDatabase) Create an instance of this class withmssqlDatabase()initialized to the given value.static ResourceTargetMetadatafromMssqlDatabase(ResourceTargetMetadataForMssqlDatabase mssqlDatabase) Create an instance of this class withmssqlDatabase()initialized to the given value.static ResourceTargetMetadatafromNasFilesystem(Consumer<ResourceTargetMetadataForNasFilesystem.Builder> nasFilesystem) Create an instance of this class withnasFilesystem()initialized to the given value.static ResourceTargetMetadatafromNasFilesystem(ResourceTargetMetadataForNasFilesystem nasFilesystem) Create an instance of this class withnasFilesystem()initialized to the given value.static ResourceTargetMetadatafromOracledbDatabase(Consumer<ResourceTargetMetadataForOracledbDatabase.Builder> oracledbDatabase) Create an instance of this class withoracledbDatabase()initialized to the given value.static ResourceTargetMetadatafromOracledbDatabase(ResourceTargetMetadataForOracledbDatabase oracledbDatabase) Create an instance of this class withoracledbDatabase()initialized to the given value.static ResourceTargetMetadatafromServerFilesystem(Consumer<ResourceTargetMetadataForServerFilesystem.Builder> serverFilesystem) Create an instance of this class withserverFilesystem()initialized to the given value.static ResourceTargetMetadatafromServerFilesystem(ResourceTargetMetadataForServerFilesystem serverFilesystem) Create an instance of this class withserverFilesystem()initialized to the given value.static ResourceTargetMetadataCreate an instance of this class withvmwareVm()initialized to the given value.static ResourceTargetMetadataCreate an instance of this class withvmwareVm()initialized to the given value.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()The metadata for a Microsoft SQL Server database.The metadata for a network-attached storage (NAS) filesystem.The metadata for an Oracle database.static Class<? extends ResourceTargetMetadata.Builder> The metadata for a server filesystem.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.type()Retrieve an enum value representing which member of this object is populated.vmwareVm()The metadata for a VMware virtual machine.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
mssqlDatabase
The metadata for a Microsoft SQL Server database.
- Returns:
- The metadata for a Microsoft SQL Server database.
-
nasFilesystem
The metadata for a network-attached storage (NAS) filesystem.
- Returns:
- The metadata for a network-attached storage (NAS) filesystem.
-
oracledbDatabase
The metadata for an Oracle database.
- Returns:
- The metadata for an Oracle database.
-
serverFilesystem
The metadata for a server filesystem.
- Returns:
- The metadata for a server filesystem.
-
vmwareVm
The metadata for a VMware virtual machine.
- Returns:
- The metadata for a VMware virtual machine.
-
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<ResourceTargetMetadata.Builder,ResourceTargetMetadata> - 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
-
fromMssqlDatabase
public static ResourceTargetMetadata fromMssqlDatabase(ResourceTargetMetadataForMssqlDatabase mssqlDatabase) Create an instance of this class withmssqlDatabase()initialized to the given value.The metadata for a Microsoft SQL Server database.
- Parameters:
mssqlDatabase- The metadata for a Microsoft SQL Server database.
-
fromMssqlDatabase
public static ResourceTargetMetadata fromMssqlDatabase(Consumer<ResourceTargetMetadataForMssqlDatabase.Builder> mssqlDatabase) Create an instance of this class withmssqlDatabase()initialized to the given value.The metadata for a Microsoft SQL Server database.
- Parameters:
mssqlDatabase- The metadata for a Microsoft SQL Server database.
-
fromNasFilesystem
public static ResourceTargetMetadata fromNasFilesystem(ResourceTargetMetadataForNasFilesystem nasFilesystem) Create an instance of this class withnasFilesystem()initialized to the given value.The metadata for a network-attached storage (NAS) filesystem.
- Parameters:
nasFilesystem- The metadata for a network-attached storage (NAS) filesystem.
-
fromNasFilesystem
public static ResourceTargetMetadata fromNasFilesystem(Consumer<ResourceTargetMetadataForNasFilesystem.Builder> nasFilesystem) Create an instance of this class withnasFilesystem()initialized to the given value.The metadata for a network-attached storage (NAS) filesystem.
- Parameters:
nasFilesystem- The metadata for a network-attached storage (NAS) filesystem.
-
fromOracledbDatabase
public static ResourceTargetMetadata fromOracledbDatabase(ResourceTargetMetadataForOracledbDatabase oracledbDatabase) Create an instance of this class withoracledbDatabase()initialized to the given value.The metadata for an Oracle database.
- Parameters:
oracledbDatabase- The metadata for an Oracle database.
-
fromOracledbDatabase
public static ResourceTargetMetadata fromOracledbDatabase(Consumer<ResourceTargetMetadataForOracledbDatabase.Builder> oracledbDatabase) Create an instance of this class withoracledbDatabase()initialized to the given value.The metadata for an Oracle database.
- Parameters:
oracledbDatabase- The metadata for an Oracle database.
-
fromServerFilesystem
public static ResourceTargetMetadata fromServerFilesystem(ResourceTargetMetadataForServerFilesystem serverFilesystem) Create an instance of this class withserverFilesystem()initialized to the given value.The metadata for a server filesystem.
- Parameters:
serverFilesystem- The metadata for a server filesystem.
-
fromServerFilesystem
public static ResourceTargetMetadata fromServerFilesystem(Consumer<ResourceTargetMetadataForServerFilesystem.Builder> serverFilesystem) Create an instance of this class withserverFilesystem()initialized to the given value.The metadata for a server filesystem.
- Parameters:
serverFilesystem- The metadata for a server filesystem.
-
fromVmwareVm
Create an instance of this class withvmwareVm()initialized to the given value.The metadata for a VMware virtual machine.
- Parameters:
vmwareVm- The metadata for a VMware virtual machine.
-
fromVmwareVm
public static ResourceTargetMetadata fromVmwareVm(Consumer<ResourceTargetMetadataForVmwareVm.Builder> vmwareVm) Create an instance of this class withvmwareVm()initialized to the given value.The metadata for a VMware virtual machine.
- Parameters:
vmwareVm- The metadata for a VMware virtual machine.
-
type
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beResourceTargetMetadata.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 beResourceTargetMetadata.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set. -
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-