AWS SDK for C++  1.9.156
AWS SDK for C++
SMSSandboxPhoneNumber.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/sns/SNS_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace SNS
23 {
24 namespace Model
25 {
26 
43  {
44  public:
48 
49  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
50  void OutputToStream(Aws::OStream& oStream, const char* location) const;
51 
52 
56  inline const Aws::String& GetPhoneNumber() const{ return m_phoneNumber; }
57 
61  inline bool PhoneNumberHasBeenSet() const { return m_phoneNumberHasBeenSet; }
62 
66  inline void SetPhoneNumber(const Aws::String& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = value; }
67 
71  inline void SetPhoneNumber(Aws::String&& value) { m_phoneNumberHasBeenSet = true; m_phoneNumber = std::move(value); }
72 
76  inline void SetPhoneNumber(const char* value) { m_phoneNumberHasBeenSet = true; m_phoneNumber.assign(value); }
77 
81  inline SMSSandboxPhoneNumber& WithPhoneNumber(const Aws::String& value) { SetPhoneNumber(value); return *this;}
82 
86  inline SMSSandboxPhoneNumber& WithPhoneNumber(Aws::String&& value) { SetPhoneNumber(std::move(value)); return *this;}
87 
91  inline SMSSandboxPhoneNumber& WithPhoneNumber(const char* value) { SetPhoneNumber(value); return *this;}
92 
93 
97  inline const SMSSandboxPhoneNumberVerificationStatus& GetStatus() const{ return m_status; }
98 
102  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
103 
107  inline void SetStatus(const SMSSandboxPhoneNumberVerificationStatus& value) { m_statusHasBeenSet = true; m_status = value; }
108 
112  inline void SetStatus(SMSSandboxPhoneNumberVerificationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
113 
117  inline SMSSandboxPhoneNumber& WithStatus(const SMSSandboxPhoneNumberVerificationStatus& value) { SetStatus(value); return *this;}
118 
122  inline SMSSandboxPhoneNumber& WithStatus(SMSSandboxPhoneNumberVerificationStatus&& value) { SetStatus(std::move(value)); return *this;}
123 
124  private:
125 
126  Aws::String m_phoneNumber;
127  bool m_phoneNumberHasBeenSet;
128 
130  bool m_statusHasBeenSet;
131  };
132 
133 } // namespace Model
134 } // namespace SNS
135 } // namespace Aws
Aws::SNS::Model::SMSSandboxPhoneNumber::operator=
SMSSandboxPhoneNumber & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SNS::Model::SMSSandboxPhoneNumber::WithStatus
SMSSandboxPhoneNumber & WithStatus(const SMSSandboxPhoneNumberVerificationStatus &value)
Definition: SMSSandboxPhoneNumber.h:117
Aws::SNS::Model::SMSSandboxPhoneNumber::PhoneNumberHasBeenSet
bool PhoneNumberHasBeenSet() const
Definition: SMSSandboxPhoneNumber.h:61
Aws::SNS::Model::SMSSandboxPhoneNumber::SMSSandboxPhoneNumber
SMSSandboxPhoneNumber(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SNS::Model::SMSSandboxPhoneNumber::GetStatus
const SMSSandboxPhoneNumberVerificationStatus & GetStatus() const
Definition: SMSSandboxPhoneNumber.h:97
SMSSandboxPhoneNumberVerificationStatus.h
Aws::SNS::Model::SMSSandboxPhoneNumber::SetStatus
void SetStatus(SMSSandboxPhoneNumberVerificationStatus &&value)
Definition: SMSSandboxPhoneNumber.h:112
AWSStreamFwd.h
Aws::SNS::Model::SMSSandboxPhoneNumber::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: SMSSandboxPhoneNumber.h:102
Aws::SNS::Model::SMSSandboxPhoneNumber::WithStatus
SMSSandboxPhoneNumber & WithStatus(SMSSandboxPhoneNumberVerificationStatus &&value)
Definition: SMSSandboxPhoneNumber.h:122
Aws::SNS::Model::SMSSandboxPhoneNumber::SMSSandboxPhoneNumber
SMSSandboxPhoneNumber()
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::SNS::Model::SMSSandboxPhoneNumberVerificationStatus
SMSSandboxPhoneNumberVerificationStatus
Definition: SMSSandboxPhoneNumberVerificationStatus.h:17
Aws::SNS::Model::SMSSandboxPhoneNumber::WithPhoneNumber
SMSSandboxPhoneNumber & WithPhoneNumber(Aws::String &&value)
Definition: SMSSandboxPhoneNumber.h:86
Aws::SNS::Model::SMSSandboxPhoneNumber::SetStatus
void SetStatus(const SMSSandboxPhoneNumberVerificationStatus &value)
Definition: SMSSandboxPhoneNumber.h:107
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::SNS::Model::SMSSandboxPhoneNumber::WithPhoneNumber
SMSSandboxPhoneNumber & WithPhoneNumber(const Aws::String &value)
Definition: SMSSandboxPhoneNumber.h:81
Aws::SNS::Model::SMSSandboxPhoneNumber
Definition: SMSSandboxPhoneNumber.h:43
AWSString.h
Aws::SNS::Model::SMSSandboxPhoneNumber::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::CostExplorer::Model::SubscriberType::NOT_SET
@ NOT_SET
AWS_SNS_API
#define AWS_SNS_API
Definition: SNS_EXPORTS.h:28
SNS_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::SNS::Model::SMSSandboxPhoneNumber::SetPhoneNumber
void SetPhoneNumber(const char *value)
Definition: SMSSandboxPhoneNumber.h:76
Aws::SNS::Model::SMSSandboxPhoneNumber::WithPhoneNumber
SMSSandboxPhoneNumber & WithPhoneNumber(const char *value)
Definition: SMSSandboxPhoneNumber.h:91
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::SNS::Model::SMSSandboxPhoneNumber::SetPhoneNumber
void SetPhoneNumber(Aws::String &&value)
Definition: SMSSandboxPhoneNumber.h:71
Aws::SNS::Model::SMSSandboxPhoneNumber::SetPhoneNumber
void SetPhoneNumber(const Aws::String &value)
Definition: SMSSandboxPhoneNumber.h:66
Aws::SNS::Model::SMSSandboxPhoneNumber::GetPhoneNumber
const Aws::String & GetPhoneNumber() const
Definition: SMSSandboxPhoneNumber.h:56
Aws::SNS::Model::SMSSandboxPhoneNumber::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const