/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.pinpointsmsvoicev2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class PutKeywordRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *

* 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. *

*/ private String originationIdentity; /** *

* The new keyword to add. *

*/ private String keyword; /** *

* The message associated with the keyword. *

* */ private String keywordMessage; /** *

* The action to perform for the new keyword when it is received. *

*/ private String keywordAction; /** *

* 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. *

* * @param 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. */ public void setOriginationIdentity(String originationIdentity) { this.originationIdentity = 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. *

* * @return 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. */ public String getOriginationIdentity() { return this.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. *

* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public PutKeywordRequest withOriginationIdentity(String originationIdentity) { setOriginationIdentity(originationIdentity); return this; } /** *

* The new keyword to add. *

* * @param keyword * The new keyword to add. */ public void setKeyword(String keyword) { this.keyword = keyword; } /** *

* The new keyword to add. *

* * @return The new keyword to add. */ public String getKeyword() { return this.keyword; } /** *

* The new keyword to add. *

* * @param keyword * The new keyword to add. * @return Returns a reference to this object so that method calls can be chained together. */ public PutKeywordRequest withKeyword(String keyword) { setKeyword(keyword); return this; } /** *

* The message associated with the keyword. *

* * * @param keywordMessage * The message associated with the keyword.

*