AWS SDK for C++  1.9.154
AWS SDK for C++
InstanceStatusReason.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace Connect
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetMessage() const{ return m_message; }
45 
49  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
50 
54  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
55 
59  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
60 
64  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
65 
69  inline InstanceStatusReason& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
70 
74  inline InstanceStatusReason& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
75 
79  inline InstanceStatusReason& WithMessage(const char* value) { SetMessage(value); return *this;}
80 
81  private:
82 
83  Aws::String m_message;
84  bool m_messageHasBeenSet;
85  };
86 
87 } // namespace Model
88 } // namespace Connect
89 } // namespace Aws
Aws::Connect::Model::InstanceStatusReason::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Connect::Model::InstanceStatusReason::WithMessage
InstanceStatusReason & WithMessage(Aws::String &&value)
Definition: InstanceStatusReason.h:74
Aws::Connect::Model::InstanceStatusReason::WithMessage
InstanceStatusReason & WithMessage(const char *value)
Definition: InstanceStatusReason.h:79
Aws::Connect::Model::InstanceStatusReason::InstanceStatusReason
InstanceStatusReason()
Aws::Connect::Model::InstanceStatusReason::operator=
InstanceStatusReason & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Connect::Model::InstanceStatusReason::SetMessage
void SetMessage(Aws::String &&value)
Definition: InstanceStatusReason.h:59
Aws::Connect::Model::InstanceStatusReason
Definition: InstanceStatusReason.h:33
Aws::Connect::Model::InstanceStatusReason::SetMessage
void SetMessage(const char *value)
Definition: InstanceStatusReason.h:64
Aws::Connect::Model::InstanceStatusReason::SetMessage
void SetMessage(const Aws::String &value)
Definition: InstanceStatusReason.h:54
Aws::Connect::Model::InstanceStatusReason::WithMessage
InstanceStatusReason & WithMessage(const Aws::String &value)
Definition: InstanceStatusReason.h:69
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Connect::Model::InstanceStatusReason::InstanceStatusReason
InstanceStatusReason(Aws::Utils::Json::JsonView jsonValue)
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Connect::Model::InstanceStatusReason::MessageHasBeenSet
bool MessageHasBeenSet() const
Definition: InstanceStatusReason.h:49
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_CONNECT_API
#define AWS_CONNECT_API
Definition: Connect_EXPORTS.h:28
Connect_EXPORTS.h
Aws::Connect::Model::InstanceStatusReason::GetMessage
const Aws::String & GetMessage() const
Definition: InstanceStatusReason.h:44