AWS SDK for C++  1.9.109
AWS SDK for C++
CreateSMSSandboxPhoneNumberRequest.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>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace SNS
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "CreateSMSSandboxPhoneNumber"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
45  inline const Aws::String& GetPhoneNumber() const{ return m_phoneNumber; }
46 
52  inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; }
53 
59  inline void SetPhoneNumber(const Aws::String& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = value; }
60 
66  inline void SetPhoneNumber(Aws::String&& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = std::move(value); }
67 
73  inline void SetPhoneNumber(const char* value) { m_phoneNumberHasBeenSet = true; m_phoneNumber.assign(value); }
74 
80  inline CreateSMSSandboxPhoneNumberRequest& WithPhoneNumber(const Aws::String& value) { SetPhoneNumber(value); return *this;}
81 
87  inline CreateSMSSandboxPhoneNumberRequest& WithPhoneNumber(Aws::String&& value) { SetPhoneNumber(std::move(value)); return *this;}
88 
94  inline CreateSMSSandboxPhoneNumberRequest& WithPhoneNumber(const char* value) { SetPhoneNumber(value); return *this;}
95 
96 
101  inline const LanguageCodeString& GetLanguageCode() const{ return m_languageCode; }
102 
107  inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
108 
113  inline void SetLanguageCode(const LanguageCodeString& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; }
114 
119  inline void SetLanguageCode(LanguageCodeString&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); }
120 
125  inline CreateSMSSandboxPhoneNumberRequest& WithLanguageCode(const LanguageCodeString& value) { SetLanguageCode(value); return *this;}
126 
131  inline CreateSMSSandboxPhoneNumberRequest& WithLanguageCode(LanguageCodeString&& value) { SetLanguageCode(std::move(value)); return *this;}
132 
133  private:
134 
135  Aws::String m_phoneNumber;
136  bool m_phoneNumberHasBeenSet;
137 
138  LanguageCodeString m_languageCode;
139  bool m_languageCodeHasBeenSet;
140  };
141 
142 } // namespace Model
143 } // namespace SNS
144 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::SNS::Model::CreateSMSSandboxPhoneNumberRequest::WithLanguageCode
CreateSMSSandboxPhoneNumberRequest & WithLanguageCode(const LanguageCodeString &value)
Definition: CreateSMSSandboxPhoneNumberRequest.h:125
Aws::SNS::Model::LanguageCodeString
LanguageCodeString
Definition: LanguageCodeString.h:17
Aws::SNS::Model::CreateSMSSandboxPhoneNumberRequest::GetPhoneNumber
const Aws::String & GetPhoneNumber() const
Definition: CreateSMSSandboxPhoneNumberRequest.h:45
Aws::SNS::Model::CreateSMSSandboxPhoneNumberRequest::SetLanguageCode
void SetLanguageCode(LanguageCodeString &&value)
Definition: CreateSMSSandboxPhoneNumberRequest.h:119
Aws::SNS::Model::CreateSMSSandboxPhoneNumberRequest::WithPhoneNumber
CreateSMSSandboxPhoneNumberRequest & WithPhoneNumber(const Aws::String &value)
Definition: CreateSMSSandboxPhoneNumberRequest.h:80
Aws::SNS::Model::CreateSMSSandboxPhoneNumberRequest::LanguageCodeHasBeenSet
bool LanguageCodeHasBeenSet() const
Definition: CreateSMSSandboxPhoneNumberRequest.h:107
Aws::SNS::Model::CreateSMSSandboxPhoneNumberRequest::PhoneNumberHasBeenSet
bool PhoneNumberHasBeenSet() const
Definition: CreateSMSSandboxPhoneNumberRequest.h:52
Aws::SNS::Model::CreateSMSSandboxPhoneNumberRequest::SetPhoneNumber
void SetPhoneNumber(Aws::String &&value)
Definition: CreateSMSSandboxPhoneNumberRequest.h:66
LanguageCodeString.h
Aws::SNS::Model::CreateSMSSandboxPhoneNumberRequest::WithLanguageCode
CreateSMSSandboxPhoneNumberRequest & WithLanguageCode(LanguageCodeString &&value)
Definition: CreateSMSSandboxPhoneNumberRequest.h:131
Aws::SNS::Model::CreateSMSSandboxPhoneNumberRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
SNSRequest.h
Aws::SNS::Model::CreateSMSSandboxPhoneNumberRequest::WithPhoneNumber
CreateSMSSandboxPhoneNumberRequest & WithPhoneNumber(Aws::String &&value)
Definition: CreateSMSSandboxPhoneNumberRequest.h:87
Aws::SNS::SNSRequest
Definition: SNSRequest.h:17
Aws::SNS::Model::CreateSMSSandboxPhoneNumberRequest::CreateSMSSandboxPhoneNumberRequest
CreateSMSSandboxPhoneNumberRequest()
AWSString.h
Aws::SNS::Model::CreateSMSSandboxPhoneNumberRequest::SetPhoneNumber
void SetPhoneNumber(const Aws::String &value)
Definition: CreateSMSSandboxPhoneNumberRequest.h:59
Aws::SNS::Model::CreateSMSSandboxPhoneNumberRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateSMSSandboxPhoneNumberRequest.h:31
Aws::CostExplorer::Model::SubscriberType::NOT_SET
@ NOT_SET
Aws::SNS::Model::CreateSMSSandboxPhoneNumberRequest::SetPhoneNumber
void SetPhoneNumber(const char *value)
Definition: CreateSMSSandboxPhoneNumberRequest.h:73
Aws::SNS::Model::CreateSMSSandboxPhoneNumberRequest::GetLanguageCode
const LanguageCodeString & GetLanguageCode() const
Definition: CreateSMSSandboxPhoneNumberRequest.h:101
AWS_SNS_API
#define AWS_SNS_API
Definition: SNS_EXPORTS.h:28
SNS_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::SNS::Model::CreateSMSSandboxPhoneNumberRequest
Definition: CreateSMSSandboxPhoneNumberRequest.h:23
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SNS::Model::CreateSMSSandboxPhoneNumberRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SNS::Model::CreateSMSSandboxPhoneNumberRequest::WithPhoneNumber
CreateSMSSandboxPhoneNumberRequest & WithPhoneNumber(const char *value)
Definition: CreateSMSSandboxPhoneNumberRequest.h:94
Aws::SNS::Model::CreateSMSSandboxPhoneNumberRequest::SetLanguageCode
void SetLanguageCode(const LanguageCodeString &value)
Definition: CreateSMSSandboxPhoneNumberRequest.h:113