Class SubscribedListingItem
- java.lang.Object
-
- software.amazon.awssdk.services.datazone.model.SubscribedListingItem
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<SubscribedListingItem.Builder,SubscribedListingItem>
@Generated("software.amazon.awssdk:codegen") public final class SubscribedListingItem extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SubscribedListingItem.Builder,SubscribedListingItem>
The published asset for which the subscription grant is created.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSubscribedListingItem.Builderstatic classSubscribedListingItem.Type
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SubscribedAssetListingassetListing()The asset for which the subscription grant is created.static SubscribedListingItem.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)static SubscribedListingItemfromAssetListing(Consumer<SubscribedAssetListing.Builder> assetListing)Create an instance of this class withassetListing()initialized to the given value.static SubscribedListingItemfromAssetListing(SubscribedAssetListing assetListing)Create an instance of this class withassetListing()initialized to the given value.static SubscribedListingItemfromProductListing(Consumer<SubscribedProductListing.Builder> productListing)Create an instance of this class withproductListing()initialized to the given value.static SubscribedListingItemfromProductListing(SubscribedProductListing productListing)Create an instance of this class withproductListing()initialized to the given value.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()SubscribedProductListingproductListing()The data product listing.List<SdkField<?>>sdkFields()static Class<? extends SubscribedListingItem.Builder>serializableBuilderClass()SubscribedListingItem.BuildertoBuilder()StringtoString()Returns a string representation of this object.SubscribedListingItem.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
-
assetListing
public final SubscribedAssetListing assetListing()
The asset for which the subscription grant is created.
- Returns:
- The asset for which the subscription grant is created.
-
productListing
public final SubscribedProductListing productListing()
The data product listing.
- Returns:
- The data product listing.
-
toBuilder
public SubscribedListingItem.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SubscribedListingItem.Builder,SubscribedListingItem>
-
builder
public static SubscribedListingItem.Builder builder()
-
serializableBuilderClass
public static Class<? extends SubscribedListingItem.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.
-
fromAssetListing
public static SubscribedListingItem fromAssetListing(SubscribedAssetListing assetListing)
Create an instance of this class withassetListing()initialized to the given value.The asset for which the subscription grant is created.
- Parameters:
assetListing- The asset for which the subscription grant is created.
-
fromAssetListing
public static SubscribedListingItem fromAssetListing(Consumer<SubscribedAssetListing.Builder> assetListing)
Create an instance of this class withassetListing()initialized to the given value.The asset for which the subscription grant is created.
- Parameters:
assetListing- The asset for which the subscription grant is created.
-
fromProductListing
public static SubscribedListingItem fromProductListing(SubscribedProductListing productListing)
Create an instance of this class withproductListing()initialized to the given value.The data product listing.
- Parameters:
productListing- The data product listing.
-
fromProductListing
public static SubscribedListingItem fromProductListing(Consumer<SubscribedProductListing.Builder> productListing)
Create an instance of this class withproductListing()initialized to the given value.The data product listing.
- Parameters:
productListing- The data product listing.
-
type
public SubscribedListingItem.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 beSubscribedListingItem.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 beSubscribedListingItem.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set.
-
-