AWS SDK for C++  1.9.104
AWS SDK for C++
VerifySMSSandboxPhoneNumberRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/sns/SNS_EXPORTS.h>
8 #include <aws/sns/SNSRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace SNS
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "VerifySMSSandboxPhoneNumber"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
42  inline const Aws::String& GetPhoneNumber() const{ return m_phoneNumber; }
43 
47  inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; }
48 
52  inline void SetPhoneNumber(const Aws::String& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = value; }
53 
57  inline void SetPhoneNumber(Aws::String&& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = std::move(value); }
58 
62  inline void SetPhoneNumber(const char* value) { m_phoneNumberHasBeenSet = true; m_phoneNumber.assign(value); }
63 
67  inline VerifySMSSandboxPhoneNumberRequest& WithPhoneNumber(const Aws::String& value) { SetPhoneNumber(value); return *this;}
68 
72  inline VerifySMSSandboxPhoneNumberRequest& WithPhoneNumber(Aws::String&& value) { SetPhoneNumber(std::move(value)); return *this;}
73 
77  inline VerifySMSSandboxPhoneNumberRequest& WithPhoneNumber(const char* value) { SetPhoneNumber(value); return *this;}
78 
79 
84  inline const Aws::String& GetOneTimePassword() const{ return m_oneTimePassword; }
85 
90  inline bool OneTimePasswordHasBeenSet() const { return m_oneTimePasswordHasBeenSet; }
91 
96  inline void SetOneTimePassword(const Aws::String& value) { m_oneTimePasswordHasBeenSet = true; m_oneTimePassword = value; }
97 
102  inline void SetOneTimePassword(Aws::String&& value) { m_oneTimePasswordHasBeenSet = true; m_oneTimePassword = std::move(value); }
103 
108  inline void SetOneTimePassword(const char* value) { m_oneTimePasswordHasBeenSet = true; m_oneTimePassword.assign(value); }
109 
114  inline VerifySMSSandboxPhoneNumberRequest& WithOneTimePassword(const Aws::String& value) { SetOneTimePassword(value); return *this;}
115 
120  inline VerifySMSSandboxPhoneNumberRequest& WithOneTimePassword(Aws::String&& value) { SetOneTimePassword(std::move(value)); return *this;}
121 
126  inline VerifySMSSandboxPhoneNumberRequest& WithOneTimePassword(const char* value) { SetOneTimePassword(value); return *this;}
127 
128  private:
129 
130  Aws::String m_phoneNumber;
131  bool m_phoneNumberHasBeenSet;
132 
133  Aws::String m_oneTimePassword;
134  bool m_oneTimePasswordHasBeenSet;
135  };
136 
137 } // namespace Model
138 } // namespace SNS
139 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::SNS::Model::VerifySMSSandboxPhoneNumberRequest
Definition: VerifySMSSandboxPhoneNumberRequest.h:22
Aws::SNS::Model::VerifySMSSandboxPhoneNumberRequest::WithPhoneNumber
VerifySMSSandboxPhoneNumberRequest & WithPhoneNumber(const char *value)
Definition: VerifySMSSandboxPhoneNumberRequest.h:77
Aws::SNS::Model::VerifySMSSandboxPhoneNumberRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SNS::Model::VerifySMSSandboxPhoneNumberRequest::WithPhoneNumber
VerifySMSSandboxPhoneNumberRequest & WithPhoneNumber(Aws::String &&value)
Definition: VerifySMSSandboxPhoneNumberRequest.h:72
Aws::SNS::Model::VerifySMSSandboxPhoneNumberRequest::GetOneTimePassword
const Aws::String & GetOneTimePassword() const
Definition: VerifySMSSandboxPhoneNumberRequest.h:84
SNSRequest.h
Aws::SNS::SNSRequest
Definition: SNSRequest.h:17
Aws::SNS::Model::VerifySMSSandboxPhoneNumberRequest::GetPhoneNumber
const Aws::String & GetPhoneNumber() const
Definition: VerifySMSSandboxPhoneNumberRequest.h:42
Aws::SNS::Model::VerifySMSSandboxPhoneNumberRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::SNS::Model::VerifySMSSandboxPhoneNumberRequest::WithOneTimePassword
VerifySMSSandboxPhoneNumberRequest & WithOneTimePassword(const Aws::String &value)
Definition: VerifySMSSandboxPhoneNumberRequest.h:114
Aws::SNS::Model::VerifySMSSandboxPhoneNumberRequest::SetOneTimePassword
void SetOneTimePassword(const Aws::String &value)
Definition: VerifySMSSandboxPhoneNumberRequest.h:96
Aws::SNS::Model::VerifySMSSandboxPhoneNumberRequest::SetPhoneNumber
void SetPhoneNumber(const Aws::String &value)
Definition: VerifySMSSandboxPhoneNumberRequest.h:52
AWSString.h
Aws::SNS::Model::VerifySMSSandboxPhoneNumberRequest::PhoneNumberHasBeenSet
bool PhoneNumberHasBeenSet() const
Definition: VerifySMSSandboxPhoneNumberRequest.h:47
Aws::SNS::Model::VerifySMSSandboxPhoneNumberRequest::OneTimePasswordHasBeenSet
bool OneTimePasswordHasBeenSet() const
Definition: VerifySMSSandboxPhoneNumberRequest.h:90
Aws::SNS::Model::VerifySMSSandboxPhoneNumberRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: VerifySMSSandboxPhoneNumberRequest.h:30
Aws::SNS::Model::VerifySMSSandboxPhoneNumberRequest::WithOneTimePassword
VerifySMSSandboxPhoneNumberRequest & WithOneTimePassword(Aws::String &&value)
Definition: VerifySMSSandboxPhoneNumberRequest.h:120
Aws::CostExplorer::Model::SubscriberType::NOT_SET
@ NOT_SET
AWS_SNS_API
#define AWS_SNS_API
Definition: SNS_EXPORTS.h:28
SNS_EXPORTS.h
Aws::SNS::Model::VerifySMSSandboxPhoneNumberRequest::VerifySMSSandboxPhoneNumberRequest
VerifySMSSandboxPhoneNumberRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::SNS::Model::VerifySMSSandboxPhoneNumberRequest::SetPhoneNumber
void SetPhoneNumber(Aws::String &&value)
Definition: VerifySMSSandboxPhoneNumberRequest.h:57
Aws::SNS::Model::VerifySMSSandboxPhoneNumberRequest::SetOneTimePassword
void SetOneTimePassword(const char *value)
Definition: VerifySMSSandboxPhoneNumberRequest.h:108
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SNS::Model::VerifySMSSandboxPhoneNumberRequest::SetOneTimePassword
void SetOneTimePassword(Aws::String &&value)
Definition: VerifySMSSandboxPhoneNumberRequest.h:102
Aws::SNS::Model::VerifySMSSandboxPhoneNumberRequest::WithPhoneNumber
VerifySMSSandboxPhoneNumberRequest & WithPhoneNumber(const Aws::String &value)
Definition: VerifySMSSandboxPhoneNumberRequest.h:67
Aws::SNS::Model::VerifySMSSandboxPhoneNumberRequest::WithOneTimePassword
VerifySMSSandboxPhoneNumberRequest & WithOneTimePassword(const char *value)
Definition: VerifySMSSandboxPhoneNumberRequest.h:126
Aws::SNS::Model::VerifySMSSandboxPhoneNumberRequest::SetPhoneNumber
void SetPhoneNumber(const char *value)
Definition: VerifySMSSandboxPhoneNumberRequest.h:62