/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Send OTP message request parameters.See Also:
AWS
* API Reference
The attempts allowed to validate an OTP.
*/ inline int GetAllowedAttempts() const{ return m_allowedAttempts; } /** *The attempts allowed to validate an OTP.
*/ inline bool AllowedAttemptsHasBeenSet() const { return m_allowedAttemptsHasBeenSet; } /** *The attempts allowed to validate an OTP.
*/ inline void SetAllowedAttempts(int value) { m_allowedAttemptsHasBeenSet = true; m_allowedAttempts = value; } /** *The attempts allowed to validate an OTP.
*/ inline SendOTPMessageRequestParameters& WithAllowedAttempts(int value) { SetAllowedAttempts(value); return *this;} /** *The brand name that will be substituted into the OTP message body. Should be * owned by calling AWS account.
*/ inline const Aws::String& GetBrandName() const{ return m_brandName; } /** *The brand name that will be substituted into the OTP message body. Should be * owned by calling AWS account.
*/ inline bool BrandNameHasBeenSet() const { return m_brandNameHasBeenSet; } /** *The brand name that will be substituted into the OTP message body. Should be * owned by calling AWS account.
*/ inline void SetBrandName(const Aws::String& value) { m_brandNameHasBeenSet = true; m_brandName = value; } /** *The brand name that will be substituted into the OTP message body. Should be * owned by calling AWS account.
*/ inline void SetBrandName(Aws::String&& value) { m_brandNameHasBeenSet = true; m_brandName = std::move(value); } /** *The brand name that will be substituted into the OTP message body. Should be * owned by calling AWS account.
*/ inline void SetBrandName(const char* value) { m_brandNameHasBeenSet = true; m_brandName.assign(value); } /** *The brand name that will be substituted into the OTP message body. Should be * owned by calling AWS account.
*/ inline SendOTPMessageRequestParameters& WithBrandName(const Aws::String& value) { SetBrandName(value); return *this;} /** *The brand name that will be substituted into the OTP message body. Should be * owned by calling AWS account.
*/ inline SendOTPMessageRequestParameters& WithBrandName(Aws::String&& value) { SetBrandName(std::move(value)); return *this;} /** *The brand name that will be substituted into the OTP message body. Should be * owned by calling AWS account.
*/ inline SendOTPMessageRequestParameters& WithBrandName(const char* value) { SetBrandName(value); return *this;} /** *Channel type for the OTP message. Supported values: [SMS].
*/ inline const Aws::String& GetChannel() const{ return m_channel; } /** *Channel type for the OTP message. Supported values: [SMS].
*/ inline bool ChannelHasBeenSet() const { return m_channelHasBeenSet; } /** *Channel type for the OTP message. Supported values: [SMS].
*/ inline void SetChannel(const Aws::String& value) { m_channelHasBeenSet = true; m_channel = value; } /** *Channel type for the OTP message. Supported values: [SMS].
*/ inline void SetChannel(Aws::String&& value) { m_channelHasBeenSet = true; m_channel = std::move(value); } /** *Channel type for the OTP message. Supported values: [SMS].
*/ inline void SetChannel(const char* value) { m_channelHasBeenSet = true; m_channel.assign(value); } /** *Channel type for the OTP message. Supported values: [SMS].
*/ inline SendOTPMessageRequestParameters& WithChannel(const Aws::String& value) { SetChannel(value); return *this;} /** *Channel type for the OTP message. Supported values: [SMS].
*/ inline SendOTPMessageRequestParameters& WithChannel(Aws::String&& value) { SetChannel(std::move(value)); return *this;} /** *Channel type for the OTP message. Supported values: [SMS].
*/ inline SendOTPMessageRequestParameters& WithChannel(const char* value) { SetChannel(value); return *this;} /** *The number of characters in the generated OTP.
*/ inline int GetCodeLength() const{ return m_codeLength; } /** *The number of characters in the generated OTP.
*/ inline bool CodeLengthHasBeenSet() const { return m_codeLengthHasBeenSet; } /** *The number of characters in the generated OTP.
*/ inline void SetCodeLength(int value) { m_codeLengthHasBeenSet = true; m_codeLength = value; } /** *The number of characters in the generated OTP.
*/ inline SendOTPMessageRequestParameters& WithCodeLength(int value) { SetCodeLength(value); return *this;} /** *The destination identity to send OTP to.
*/ inline const Aws::String& GetDestinationIdentity() const{ return m_destinationIdentity; } /** *The destination identity to send OTP to.
*/ inline bool DestinationIdentityHasBeenSet() const { return m_destinationIdentityHasBeenSet; } /** *The destination identity to send OTP to.
*/ inline void SetDestinationIdentity(const Aws::String& value) { m_destinationIdentityHasBeenSet = true; m_destinationIdentity = value; } /** *The destination identity to send OTP to.
*/ inline void SetDestinationIdentity(Aws::String&& value) { m_destinationIdentityHasBeenSet = true; m_destinationIdentity = std::move(value); } /** *The destination identity to send OTP to.
*/ inline void SetDestinationIdentity(const char* value) { m_destinationIdentityHasBeenSet = true; m_destinationIdentity.assign(value); } /** *The destination identity to send OTP to.
*/ inline SendOTPMessageRequestParameters& WithDestinationIdentity(const Aws::String& value) { SetDestinationIdentity(value); return *this;} /** *The destination identity to send OTP to.
*/ inline SendOTPMessageRequestParameters& WithDestinationIdentity(Aws::String&& value) { SetDestinationIdentity(std::move(value)); return *this;} /** *The destination identity to send OTP to.
*/ inline SendOTPMessageRequestParameters& WithDestinationIdentity(const char* value) { SetDestinationIdentity(value); return *this;} /** *A unique Entity ID received from DLT after entity registration is * approved.
*/ inline const Aws::String& GetEntityId() const{ return m_entityId; } /** *A unique Entity ID received from DLT after entity registration is * approved.
*/ inline bool EntityIdHasBeenSet() const { return m_entityIdHasBeenSet; } /** *A unique Entity ID received from DLT after entity registration is * approved.
*/ inline void SetEntityId(const Aws::String& value) { m_entityIdHasBeenSet = true; m_entityId = value; } /** *A unique Entity ID received from DLT after entity registration is * approved.
*/ inline void SetEntityId(Aws::String&& value) { m_entityIdHasBeenSet = true; m_entityId = std::move(value); } /** *A unique Entity ID received from DLT after entity registration is * approved.
*/ inline void SetEntityId(const char* value) { m_entityIdHasBeenSet = true; m_entityId.assign(value); } /** *A unique Entity ID received from DLT after entity registration is * approved.
*/ inline SendOTPMessageRequestParameters& WithEntityId(const Aws::String& value) { SetEntityId(value); return *this;} /** *A unique Entity ID received from DLT after entity registration is * approved.
*/ inline SendOTPMessageRequestParameters& WithEntityId(Aws::String&& value) { SetEntityId(std::move(value)); return *this;} /** *A unique Entity ID received from DLT after entity registration is * approved.
*/ inline SendOTPMessageRequestParameters& WithEntityId(const char* value) { SetEntityId(value); return *this;} /** *The language to be used for the outgoing message body containing the OTP.
*/ inline const Aws::String& GetLanguage() const{ return m_language; } /** *The language to be used for the outgoing message body containing the OTP.
*/ inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; } /** *The language to be used for the outgoing message body containing the OTP.
*/ inline void SetLanguage(const Aws::String& value) { m_languageHasBeenSet = true; m_language = value; } /** *The language to be used for the outgoing message body containing the OTP.
*/ inline void SetLanguage(Aws::String&& value) { m_languageHasBeenSet = true; m_language = std::move(value); } /** *The language to be used for the outgoing message body containing the OTP.
*/ inline void SetLanguage(const char* value) { m_languageHasBeenSet = true; m_language.assign(value); } /** *The language to be used for the outgoing message body containing the OTP.
*/ inline SendOTPMessageRequestParameters& WithLanguage(const Aws::String& value) { SetLanguage(value); return *this;} /** *The language to be used for the outgoing message body containing the OTP.
*/ inline SendOTPMessageRequestParameters& WithLanguage(Aws::String&& value) { SetLanguage(std::move(value)); return *this;} /** *The language to be used for the outgoing message body containing the OTP.
*/ inline SendOTPMessageRequestParameters& WithLanguage(const char* value) { SetLanguage(value); return *this;} /** *The origination identity used to send OTP from.
*/ inline const Aws::String& GetOriginationIdentity() const{ return m_originationIdentity; } /** *The origination identity used to send OTP from.
*/ inline bool OriginationIdentityHasBeenSet() const { return m_originationIdentityHasBeenSet; } /** *The origination identity used to send OTP from.
*/ inline void SetOriginationIdentity(const Aws::String& value) { m_originationIdentityHasBeenSet = true; m_originationIdentity = value; } /** *The origination identity used to send OTP from.
*/ inline void SetOriginationIdentity(Aws::String&& value) { m_originationIdentityHasBeenSet = true; m_originationIdentity = std::move(value); } /** *The origination identity used to send OTP from.
*/ inline void SetOriginationIdentity(const char* value) { m_originationIdentityHasBeenSet = true; m_originationIdentity.assign(value); } /** *The origination identity used to send OTP from.
*/ inline SendOTPMessageRequestParameters& WithOriginationIdentity(const Aws::String& value) { SetOriginationIdentity(value); return *this;} /** *The origination identity used to send OTP from.
*/ inline SendOTPMessageRequestParameters& WithOriginationIdentity(Aws::String&& value) { SetOriginationIdentity(std::move(value)); return *this;} /** *The origination identity used to send OTP from.
*/ inline SendOTPMessageRequestParameters& WithOriginationIdentity(const char* value) { SetOriginationIdentity(value); return *this;} /** *Developer-specified reference identifier. Required to match during OTP * verification.
*/ inline const Aws::String& GetReferenceId() const{ return m_referenceId; } /** *Developer-specified reference identifier. Required to match during OTP * verification.
*/ inline bool ReferenceIdHasBeenSet() const { return m_referenceIdHasBeenSet; } /** *Developer-specified reference identifier. Required to match during OTP * verification.
*/ inline void SetReferenceId(const Aws::String& value) { m_referenceIdHasBeenSet = true; m_referenceId = value; } /** *Developer-specified reference identifier. Required to match during OTP * verification.
*/ inline void SetReferenceId(Aws::String&& value) { m_referenceIdHasBeenSet = true; m_referenceId = std::move(value); } /** *Developer-specified reference identifier. Required to match during OTP * verification.
*/ inline void SetReferenceId(const char* value) { m_referenceIdHasBeenSet = true; m_referenceId.assign(value); } /** *Developer-specified reference identifier. Required to match during OTP * verification.
*/ inline SendOTPMessageRequestParameters& WithReferenceId(const Aws::String& value) { SetReferenceId(value); return *this;} /** *Developer-specified reference identifier. Required to match during OTP * verification.
*/ inline SendOTPMessageRequestParameters& WithReferenceId(Aws::String&& value) { SetReferenceId(std::move(value)); return *this;} /** *Developer-specified reference identifier. Required to match during OTP * verification.
*/ inline SendOTPMessageRequestParameters& WithReferenceId(const char* value) { SetReferenceId(value); return *this;} /** *A unique Template ID received from DLT after entity registration is * approved.
*/ inline const Aws::String& GetTemplateId() const{ return m_templateId; } /** *A unique Template ID received from DLT after entity registration is * approved.
*/ inline bool TemplateIdHasBeenSet() const { return m_templateIdHasBeenSet; } /** *A unique Template ID received from DLT after entity registration is * approved.
*/ inline void SetTemplateId(const Aws::String& value) { m_templateIdHasBeenSet = true; m_templateId = value; } /** *A unique Template ID received from DLT after entity registration is * approved.
*/ inline void SetTemplateId(Aws::String&& value) { m_templateIdHasBeenSet = true; m_templateId = std::move(value); } /** *A unique Template ID received from DLT after entity registration is * approved.
*/ inline void SetTemplateId(const char* value) { m_templateIdHasBeenSet = true; m_templateId.assign(value); } /** *A unique Template ID received from DLT after entity registration is * approved.
*/ inline SendOTPMessageRequestParameters& WithTemplateId(const Aws::String& value) { SetTemplateId(value); return *this;} /** *A unique Template ID received from DLT after entity registration is * approved.
*/ inline SendOTPMessageRequestParameters& WithTemplateId(Aws::String&& value) { SetTemplateId(std::move(value)); return *this;} /** *A unique Template ID received from DLT after entity registration is * approved.
*/ inline SendOTPMessageRequestParameters& WithTemplateId(const char* value) { SetTemplateId(value); return *this;} /** *The time in minutes before the OTP is no longer valid.
*/ inline int GetValidityPeriod() const{ return m_validityPeriod; } /** *The time in minutes before the OTP is no longer valid.
*/ inline bool ValidityPeriodHasBeenSet() const { return m_validityPeriodHasBeenSet; } /** *The time in minutes before the OTP is no longer valid.
*/ inline void SetValidityPeriod(int value) { m_validityPeriodHasBeenSet = true; m_validityPeriod = value; } /** *The time in minutes before the OTP is no longer valid.
*/ inline SendOTPMessageRequestParameters& WithValidityPeriod(int value) { SetValidityPeriod(value); return *this;} private: int m_allowedAttempts; bool m_allowedAttemptsHasBeenSet = false; Aws::String m_brandName; bool m_brandNameHasBeenSet = false; Aws::String m_channel; bool m_channelHasBeenSet = false; int m_codeLength; bool m_codeLengthHasBeenSet = false; Aws::String m_destinationIdentity; bool m_destinationIdentityHasBeenSet = false; Aws::String m_entityId; bool m_entityIdHasBeenSet = false; Aws::String m_language; bool m_languageHasBeenSet = false; Aws::String m_originationIdentity; bool m_originationIdentityHasBeenSet = false; Aws::String m_referenceId; bool m_referenceIdHasBeenSet = false; Aws::String m_templateId; bool m_templateIdHasBeenSet = false; int m_validityPeriod; bool m_validityPeriodHasBeenSet = false; }; } // namespace Model } // namespace Pinpoint } // namespace Aws