Class ContractIdentifier
- java.lang.Object
-
- software.amazon.awssdk.services.managedblockchainquery.model.ContractIdentifier
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ContractIdentifier.Builder,ContractIdentifier>
@Generated("software.amazon.awssdk:codegen") public final class ContractIdentifier extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ContractIdentifier.Builder,ContractIdentifier>
Container for the blockchain address and network information about a contract.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceContractIdentifier.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ContractIdentifier.Builderbuilder()StringcontractAddress()Container for the blockchain address about a contract.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()QueryNetworknetwork()The blockchain network of the contract.StringnetworkAsString()The blockchain network of the contract.List<SdkField<?>>sdkFields()static Class<? extends ContractIdentifier.Builder>serializableBuilderClass()ContractIdentifier.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
-
network
public final QueryNetwork network()
The blockchain network of the contract.
If the service returns an enum value that is not available in the current SDK version,
networkwill returnQueryNetwork.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnetworkAsString().- Returns:
- The blockchain network of the contract.
- See Also:
QueryNetwork
-
networkAsString
public final String networkAsString()
The blockchain network of the contract.
If the service returns an enum value that is not available in the current SDK version,
networkwill returnQueryNetwork.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnetworkAsString().- Returns:
- The blockchain network of the contract.
- See Also:
QueryNetwork
-
contractAddress
public final String contractAddress()
Container for the blockchain address about a contract.
- Returns:
- Container for the blockchain address about a contract.
-
toBuilder
public ContractIdentifier.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ContractIdentifier.Builder,ContractIdentifier>
-
builder
public static ContractIdentifier.Builder builder()
-
serializableBuilderClass
public static Class<? extends ContractIdentifier.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.
-
-