Class PutKeywordRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.pinpointsmsvoicev2.model.PinpointSmsVoiceV2Request
-
- software.amazon.awssdk.services.pinpointsmsvoicev2.model.PutKeywordRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<PutKeywordRequest.Builder,PutKeywordRequest>
@Generated("software.amazon.awssdk:codegen") public final class PutKeywordRequest extends PinpointSmsVoiceV2Request implements ToCopyableBuilder<PutKeywordRequest.Builder,PutKeywordRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePutKeywordRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PutKeywordRequest.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringkeyword()The new keyword to add.KeywordActionkeywordAction()The action to perform for the new keyword when it is received.StringkeywordActionAsString()The action to perform for the new keyword when it is received.StringkeywordMessage()The message associated with the keyword.StringoriginationIdentity()The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or SenderIdArn.List<SdkField<?>>sdkFields()static Class<? extends PutKeywordRequest.Builder>serializableBuilderClass()PutKeywordRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
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
-
originationIdentity
public final String originationIdentity()
The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or SenderIdArn. You can use DescribePhoneNumbers get the values for PhoneNumberId and PhoneNumberArn while DescribeSenderIds can be used to get the values for SenderId and SenderIdArn.
- Returns:
- The origination identity to use such as a PhoneNumberId, PhoneNumberArn, SenderId or SenderIdArn. You can use DescribePhoneNumbers get the values for PhoneNumberId and PhoneNumberArn while DescribeSenderIds can be used to get the values for SenderId and SenderIdArn.
-
keyword
public final String keyword()
The new keyword to add.
- Returns:
- The new keyword to add.
-
keywordMessage
public final String keywordMessage()
The message associated with the keyword.
- Returns:
- The message associated with the keyword.
-
keywordAction
public final KeywordAction keywordAction()
The action to perform for the new keyword when it is received.
-
AUTOMATIC_RESPONSE: A message is sent to the recipient.
-
OPT_OUT: Keeps the recipient from receiving future messages.
-
OPT_IN: The recipient wants to receive future messages.
If the service returns an enum value that is not available in the current SDK version,
keywordActionwill returnKeywordAction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromkeywordActionAsString().- Returns:
- The action to perform for the new keyword when it is received.
-
AUTOMATIC_RESPONSE: A message is sent to the recipient.
-
OPT_OUT: Keeps the recipient from receiving future messages.
-
OPT_IN: The recipient wants to receive future messages.
-
- See Also:
KeywordAction
-
-
keywordActionAsString
public final String keywordActionAsString()
The action to perform for the new keyword when it is received.
-
AUTOMATIC_RESPONSE: A message is sent to the recipient.
-
OPT_OUT: Keeps the recipient from receiving future messages.
-
OPT_IN: The recipient wants to receive future messages.
If the service returns an enum value that is not available in the current SDK version,
keywordActionwill returnKeywordAction.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromkeywordActionAsString().- Returns:
- The action to perform for the new keyword when it is received.
-
AUTOMATIC_RESPONSE: A message is sent to the recipient.
-
OPT_OUT: Keeps the recipient from receiving future messages.
-
OPT_IN: The recipient wants to receive future messages.
-
- See Also:
KeywordAction
-
-
toBuilder
public PutKeywordRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PutKeywordRequest.Builder,PutKeywordRequest>- Specified by:
toBuilderin classPinpointSmsVoiceV2Request
-
builder
public static PutKeywordRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends PutKeywordRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-