AWS SDK for C++  1.9.104
AWS SDK for C++
CheckIfPhoneNumberIsOptedOutRequest.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 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "CheckIfPhoneNumberIsOptedOut"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  protected:
39  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
40 
41  public:
42 
46  inline const Aws::String& GetPhoneNumber() const{ return m_phoneNumber; }
47 
51  inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; }
52 
56  inline void SetPhoneNumber(const Aws::String& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = value; }
57 
61  inline void SetPhoneNumber(Aws::String&& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = std::move(value); }
62 
66  inline void SetPhoneNumber(const char* value) { m_phoneNumberHasBeenSet = true; m_phoneNumber.assign(value); }
67 
71  inline CheckIfPhoneNumberIsOptedOutRequest& WithPhoneNumber(const Aws::String& value) { SetPhoneNumber(value); return *this;}
72 
76  inline CheckIfPhoneNumberIsOptedOutRequest& WithPhoneNumber(Aws::String&& value) { SetPhoneNumber(std::move(value)); return *this;}
77 
81  inline CheckIfPhoneNumberIsOptedOutRequest& WithPhoneNumber(const char* value) { SetPhoneNumber(value); return *this;}
82 
83  private:
84 
85  Aws::String m_phoneNumber;
86  bool m_phoneNumberHasBeenSet;
87  };
88 
89 } // namespace Model
90 } // namespace SNS
91 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::SNS::Model::CheckIfPhoneNumberIsOptedOutRequest::SetPhoneNumber
void SetPhoneNumber(const char *value)
Definition: CheckIfPhoneNumberIsOptedOutRequest.h:66
Aws::SNS::Model::CheckIfPhoneNumberIsOptedOutRequest::GetPhoneNumber
const Aws::String & GetPhoneNumber() const
Definition: CheckIfPhoneNumberIsOptedOutRequest.h:46
Aws::SNS::Model::CheckIfPhoneNumberIsOptedOutRequest::PhoneNumberHasBeenSet
bool PhoneNumberHasBeenSet() const
Definition: CheckIfPhoneNumberIsOptedOutRequest.h:51
Aws::SNS::Model::CheckIfPhoneNumberIsOptedOutRequest::CheckIfPhoneNumberIsOptedOutRequest
CheckIfPhoneNumberIsOptedOutRequest()
Aws::SNS::Model::CheckIfPhoneNumberIsOptedOutRequest
Definition: CheckIfPhoneNumberIsOptedOutRequest.h:26
SNSRequest.h
Aws::SNS::SNSRequest
Definition: SNSRequest.h:17
Aws::SNS::Model::CheckIfPhoneNumberIsOptedOutRequest::WithPhoneNumber
CheckIfPhoneNumberIsOptedOutRequest & WithPhoneNumber(const char *value)
Definition: CheckIfPhoneNumberIsOptedOutRequest.h:81
AWSString.h
Aws::SNS::Model::CheckIfPhoneNumberIsOptedOutRequest::WithPhoneNumber
CheckIfPhoneNumberIsOptedOutRequest & WithPhoneNumber(Aws::String &&value)
Definition: CheckIfPhoneNumberIsOptedOutRequest.h:76
Aws::CostExplorer::Model::SubscriberType::NOT_SET
@ NOT_SET
Aws::SNS::Model::CheckIfPhoneNumberIsOptedOutRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CheckIfPhoneNumberIsOptedOutRequest.h:34
AWS_SNS_API
#define AWS_SNS_API
Definition: SNS_EXPORTS.h:28
SNS_EXPORTS.h
Aws::SNS::Model::CheckIfPhoneNumberIsOptedOutRequest::SerializePayload
Aws::String SerializePayload() const override
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SNS::Model::CheckIfPhoneNumberIsOptedOutRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::SNS::Model::CheckIfPhoneNumberIsOptedOutRequest::WithPhoneNumber
CheckIfPhoneNumberIsOptedOutRequest & WithPhoneNumber(const Aws::String &value)
Definition: CheckIfPhoneNumberIsOptedOutRequest.h:71
Aws::SNS::Model::CheckIfPhoneNumberIsOptedOutRequest::SetPhoneNumber
void SetPhoneNumber(Aws::String &&value)
Definition: CheckIfPhoneNumberIsOptedOutRequest.h:61
Aws::SNS::Model::CheckIfPhoneNumberIsOptedOutRequest::SetPhoneNumber
void SetPhoneNumber(const Aws::String &value)
Definition: CheckIfPhoneNumberIsOptedOutRequest.h:56