Class RcsSuggestedAction
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<RcsSuggestedAction.Builder,RcsSuggestedAction>
A suggested action displayed to the RCS message recipient. Can be a reply, open URL, dial phone, show location, request location, or create calendar event.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enum -
Method Summary
Modifier and TypeMethodDescriptionstatic RcsSuggestedAction.Builderbuilder()A suggested action that creates a calendar event on the user's device.final RcsDialPhoneActionA suggested action that initiates a phone call to the specified number.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.static RcsSuggestedActionfromCreateCalendarEvent(Consumer<RcsCreateCalendarEventAction.Builder> createCalendarEvent) Create an instance of this class withcreateCalendarEvent()initialized to the given value.static RcsSuggestedActionfromCreateCalendarEvent(RcsCreateCalendarEventAction createCalendarEvent) Create an instance of this class withcreateCalendarEvent()initialized to the given value.static RcsSuggestedActionfromDialPhone(Consumer<RcsDialPhoneAction.Builder> dialPhone) Create an instance of this class withdialPhone()initialized to the given value.static RcsSuggestedActionfromDialPhone(RcsDialPhoneAction dialPhone) Create an instance of this class withdialPhone()initialized to the given value.static RcsSuggestedActionfromOpenUrl(Consumer<RcsOpenUrlAction.Builder> openUrl) Create an instance of this class withopenUrl()initialized to the given value.static RcsSuggestedActionfromOpenUrl(RcsOpenUrlAction openUrl) Create an instance of this class withopenUrl()initialized to the given value.static RcsSuggestedActionfromReply(Consumer<RcsReplyAction.Builder> reply) Create an instance of this class withreply()initialized to the given value.static RcsSuggestedActionfromReply(RcsReplyAction reply) Create an instance of this class withreply()initialized to the given value.static RcsSuggestedActionfromRequestLocation(Consumer<RcsRequestLocationAction.Builder> requestLocation) Create an instance of this class withrequestLocation()initialized to the given value.static RcsSuggestedActionfromRequestLocation(RcsRequestLocationAction requestLocation) Create an instance of this class withrequestLocation()initialized to the given value.static RcsSuggestedActionfromShowLocation(Consumer<RcsShowLocationAction.Builder> showLocation) Create an instance of this class withshowLocation()initialized to the given value.static RcsSuggestedActionfromShowLocation(RcsShowLocationAction showLocation) Create an instance of this class withshowLocation()initialized to the given value.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final RcsOpenUrlActionopenUrl()A suggested action that opens a URL in the user's browser or a webview.final RcsReplyActionreply()A suggested reply that sends predefined text and postback data when tapped.final RcsRequestLocationActionA suggested action that requests the user's current location.static Class<? extends RcsSuggestedAction.Builder> final RcsShowLocationActionA suggested action that shows a location on a map.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.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
reply
A suggested reply that sends predefined text and postback data when tapped.
- Returns:
- A suggested reply that sends predefined text and postback data when tapped.
-
openUrl
A suggested action that opens a URL in the user's browser or a webview.
- Returns:
- A suggested action that opens a URL in the user's browser or a webview.
-
dialPhone
A suggested action that initiates a phone call to the specified number.
- Returns:
- A suggested action that initiates a phone call to the specified number.
-
showLocation
A suggested action that shows a location on a map.
- Returns:
- A suggested action that shows a location on a map.
-
requestLocation
A suggested action that requests the user's current location.
- Returns:
- A suggested action that requests the user's current location.
-
createCalendarEvent
A suggested action that creates a calendar event on the user's device.
- Returns:
- A suggested action that creates a calendar event on the user's device.
-
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<RcsSuggestedAction.Builder,RcsSuggestedAction> - 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
-
fromReply
Create an instance of this class withreply()initialized to the given value.A suggested reply that sends predefined text and postback data when tapped.
- Parameters:
reply- A suggested reply that sends predefined text and postback data when tapped.
-
fromReply
Create an instance of this class withreply()initialized to the given value.A suggested reply that sends predefined text and postback data when tapped.
- Parameters:
reply- A suggested reply that sends predefined text and postback data when tapped.
-
fromOpenUrl
Create an instance of this class withopenUrl()initialized to the given value.A suggested action that opens a URL in the user's browser or a webview.
- Parameters:
openUrl- A suggested action that opens a URL in the user's browser or a webview.
-
fromOpenUrl
Create an instance of this class withopenUrl()initialized to the given value.A suggested action that opens a URL in the user's browser or a webview.
- Parameters:
openUrl- A suggested action that opens a URL in the user's browser or a webview.
-
fromDialPhone
Create an instance of this class withdialPhone()initialized to the given value.A suggested action that initiates a phone call to the specified number.
- Parameters:
dialPhone- A suggested action that initiates a phone call to the specified number.
-
fromDialPhone
Create an instance of this class withdialPhone()initialized to the given value.A suggested action that initiates a phone call to the specified number.
- Parameters:
dialPhone- A suggested action that initiates a phone call to the specified number.
-
fromShowLocation
Create an instance of this class withshowLocation()initialized to the given value.A suggested action that shows a location on a map.
- Parameters:
showLocation- A suggested action that shows a location on a map.
-
fromShowLocation
public static RcsSuggestedAction fromShowLocation(Consumer<RcsShowLocationAction.Builder> showLocation) Create an instance of this class withshowLocation()initialized to the given value.A suggested action that shows a location on a map.
- Parameters:
showLocation- A suggested action that shows a location on a map.
-
fromRequestLocation
Create an instance of this class withrequestLocation()initialized to the given value.A suggested action that requests the user's current location.
- Parameters:
requestLocation- A suggested action that requests the user's current location.
-
fromRequestLocation
public static RcsSuggestedAction fromRequestLocation(Consumer<RcsRequestLocationAction.Builder> requestLocation) Create an instance of this class withrequestLocation()initialized to the given value.A suggested action that requests the user's current location.
- Parameters:
requestLocation- A suggested action that requests the user's current location.
-
fromCreateCalendarEvent
public static RcsSuggestedAction fromCreateCalendarEvent(RcsCreateCalendarEventAction createCalendarEvent) Create an instance of this class withcreateCalendarEvent()initialized to the given value.A suggested action that creates a calendar event on the user's device.
- Parameters:
createCalendarEvent- A suggested action that creates a calendar event on the user's device.
-
fromCreateCalendarEvent
public static RcsSuggestedAction fromCreateCalendarEvent(Consumer<RcsCreateCalendarEventAction.Builder> createCalendarEvent) Create an instance of this class withcreateCalendarEvent()initialized to the given value.A suggested action that creates a calendar event on the user's device.
- Parameters:
createCalendarEvent- A suggested action that creates a calendar event on the user's device.
-
type
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beRcsSuggestedAction.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 beRcsSuggestedAction.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.
-