Class MediaElement
- java.lang.Object
-
- software.amazon.awssdk.services.notifications.model.MediaElement
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<MediaElement.Builder,MediaElement>
@Generated("software.amazon.awssdk:codegen") public final class MediaElement extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MediaElement.Builder,MediaElement>
Describes a media element.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceMediaElement.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MediaElement.Builderbuilder()Stringcaption()The caption of the media.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringmediaId()The unique ID for the media.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends MediaElement.Builder>serializableBuilderClass()MediaElement.BuildertoBuilder()StringtoString()Returns a string representation of this object.MediaElementTypetype()The type of media.StringtypeAsString()The type of media.Stringurl()The URL of the media.-
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
-
mediaId
public final String mediaId()
The unique ID for the media.
- Returns:
- The unique ID for the media.
-
type
public final MediaElementType type()
The type of media.
If the service returns an enum value that is not available in the current SDK version,
typewill returnMediaElementType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of media.
- See Also:
MediaElementType
-
typeAsString
public final String typeAsString()
The type of media.
If the service returns an enum value that is not available in the current SDK version,
typewill returnMediaElementType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtypeAsString().- Returns:
- The type of media.
- See Also:
MediaElementType
-
url
public final String url()
The URL of the media.
- Returns:
- The URL of the media.
-
caption
public final String caption()
The caption of the media.
- Returns:
- The caption of the media.
-
toBuilder
public MediaElement.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<MediaElement.Builder,MediaElement>
-
builder
public static MediaElement.Builder builder()
-
serializableBuilderClass
public static Class<? extends MediaElement.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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-