Class AssetInstance

    • Method Detail

      • instanceId

        public final String instanceId()

        The ID of the instance.

        Returns:
        The ID of the instance.
      • instanceType

        public final String instanceType()

        The type of instance.

        Returns:
        The type of instance.
      • assetId

        public final String assetId()

        The ID of the asset.

        Returns:
        The ID of the asset.
      • accountId

        public final String accountId()
        Returns the value of the AccountId property for this object.
        Returns:
        The value of the AccountId property for this object.
      • awsServiceNameAsString

        public final String awsServiceNameAsString()

        The Amazon Web Services service name of the instance.

        If the service returns an enum value that is not available in the current SDK version, awsServiceName will return AWSServiceName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from awsServiceNameAsString().

        Returns:
        The Amazon Web Services service name of the instance.
        See Also:
        AWSServiceName
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)