AWS SDK for C++  1.9.66
AWS SDK for C++
NotificationContext.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/sms/SMS_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace SMS
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetValidationId() const{ return m_validationId; }
46 
50  inline bool ValidationIdHasBeenSet() const { return m_validationIdHasBeenSet; }
51 
55  inline void SetValidationId(const Aws::String& value) { m_validationIdHasBeenSet = true; m_validationId = value; }
56 
60  inline void SetValidationId(Aws::String&& value) { m_validationIdHasBeenSet = true; m_validationId = std::move(value); }
61 
65  inline void SetValidationId(const char* value) { m_validationIdHasBeenSet = true; m_validationId.assign(value); }
66 
70  inline NotificationContext& WithValidationId(const Aws::String& value) { SetValidationId(value); return *this;}
71 
75  inline NotificationContext& WithValidationId(Aws::String&& value) { SetValidationId(std::move(value)); return *this;}
76 
80  inline NotificationContext& WithValidationId(const char* value) { SetValidationId(value); return *this;}
81 
82 
86  inline const ValidationStatus& GetStatus() const{ return m_status; }
87 
91  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
92 
96  inline void SetStatus(const ValidationStatus& value) { m_statusHasBeenSet = true; m_status = value; }
97 
101  inline void SetStatus(ValidationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
102 
106  inline NotificationContext& WithStatus(const ValidationStatus& value) { SetStatus(value); return *this;}
107 
111  inline NotificationContext& WithStatus(ValidationStatus&& value) { SetStatus(std::move(value)); return *this;}
112 
113 
117  inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
118 
122  inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
123 
127  inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
128 
132  inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
133 
137  inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
138 
142  inline NotificationContext& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
143 
147  inline NotificationContext& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
148 
152  inline NotificationContext& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
153 
154  private:
155 
156  Aws::String m_validationId;
157  bool m_validationIdHasBeenSet;
158 
159  ValidationStatus m_status;
160  bool m_statusHasBeenSet;
161 
162  Aws::String m_statusMessage;
163  bool m_statusMessageHasBeenSet;
164  };
165 
166 } // namespace Model
167 } // namespace SMS
168 } // namespace Aws
Aws::SMS::Model::NotificationContext::GetValidationId
const Aws::String & GetValidationId() const
Definition: NotificationContext.h:45
ValidationStatus.h
Aws::SMS::Model::NotificationContext
Definition: NotificationContext.h:34
Aws::SMS::Model::NotificationContext::WithStatusMessage
NotificationContext & WithStatusMessage(const Aws::String &value)
Definition: NotificationContext.h:142
Aws::SMS::Model::NotificationContext::SetValidationId
void SetValidationId(Aws::String &&value)
Definition: NotificationContext.h:60
Aws::SMS::Model::NotificationContext::SetStatusMessage
void SetStatusMessage(const Aws::String &value)
Definition: NotificationContext.h:127
Aws::SMS::Model::NotificationContext::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: NotificationContext.h:91
Aws::SMS::Model::NotificationContext::SetStatus
void SetStatus(const ValidationStatus &value)
Definition: NotificationContext.h:96
Aws::SMS::Model::NotificationContext::WithValidationId
NotificationContext & WithValidationId(const char *value)
Definition: NotificationContext.h:80
Aws::SMS::Model::NotificationContext::GetStatusMessage
const Aws::String & GetStatusMessage() const
Definition: NotificationContext.h:117
Aws::SMS::Model::NotificationContext::operator=
NotificationContext & operator=(Aws::Utils::Json::JsonView jsonValue)
SMS_EXPORTS.h
Aws::SMS::Model::NotificationContext::WithStatusMessage
NotificationContext & WithStatusMessage(Aws::String &&value)
Definition: NotificationContext.h:147
Aws::SMS::Model::NotificationContext::WithValidationId
NotificationContext & WithValidationId(Aws::String &&value)
Definition: NotificationContext.h:75
Aws::SMS::Model::NotificationContext::GetStatus
const ValidationStatus & GetStatus() const
Definition: NotificationContext.h:86
Aws::SMS::Model::NotificationContext::StatusMessageHasBeenSet
bool StatusMessageHasBeenSet() const
Definition: NotificationContext.h:122
Aws::SMS::Model::NotificationContext::WithValidationId
NotificationContext & WithValidationId(const Aws::String &value)
Definition: NotificationContext.h:70
Aws::SMS::Model::NotificationContext::WithStatusMessage
NotificationContext & WithStatusMessage(const char *value)
Definition: NotificationContext.h:152
Aws::AmplifyBackend::Model::DeliveryMethod::NOT_SET
@ NOT_SET
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::SMS::Model::NotificationContext::WithStatus
NotificationContext & WithStatus(ValidationStatus &&value)
Definition: NotificationContext.h:111
Aws::SMS::Model::NotificationContext::NotificationContext
NotificationContext()
Aws::SMS::Model::ValidationStatus
ValidationStatus
Definition: ValidationStatus.h:17
Aws::SMS::Model::NotificationContext::ValidationIdHasBeenSet
bool ValidationIdHasBeenSet() const
Definition: NotificationContext.h:50
Aws::SMS::Model::NotificationContext::SetStatus
void SetStatus(ValidationStatus &&value)
Definition: NotificationContext.h:101
Aws
Definition: AccessManagementClient.h:15
Aws::SMS::Model::NotificationContext::SetStatusMessage
void SetStatusMessage(const char *value)
Definition: NotificationContext.h:137
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SMS::Model::NotificationContext::SetStatusMessage
void SetStatusMessage(Aws::String &&value)
Definition: NotificationContext.h:132
Aws::SMS::Model::NotificationContext::SetValidationId
void SetValidationId(const char *value)
Definition: NotificationContext.h:65
Aws::SMS::Model::NotificationContext::SetValidationId
void SetValidationId(const Aws::String &value)
Definition: NotificationContext.h:55
AWS_SMS_API
#define AWS_SMS_API
Definition: SMS_EXPORTS.h:28
Aws::SMS::Model::NotificationContext::NotificationContext
NotificationContext(Aws::Utils::Json::JsonView jsonValue)
Aws::SMS::Model::NotificationContext::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SMS::Model::NotificationContext::WithStatus
NotificationContext & WithStatus(const ValidationStatus &value)
Definition: NotificationContext.h:106