AWS SDK for C++  1.9.16
AWS SDK for C++
InstanceState.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 Lightsail
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline int GetCode() const{ return m_code; }
45 
49  inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
50 
54  inline void SetCode(int value) { m_codeHasBeenSet = true; m_code = value; }
55 
59  inline InstanceState& WithCode(int value) { SetCode(value); return *this;}
60 
61 
66  inline const Aws::String& GetName() const{ return m_name; }
67 
72  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
73 
78  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
79 
84  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
85 
90  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
91 
96  inline InstanceState& WithName(const Aws::String& value) { SetName(value); return *this;}
97 
102  inline InstanceState& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
103 
108  inline InstanceState& WithName(const char* value) { SetName(value); return *this;}
109 
110  private:
111 
112  int m_code;
113  bool m_codeHasBeenSet;
114 
115  Aws::String m_name;
116  bool m_nameHasBeenSet;
117  };
118 
119 } // namespace Model
120 } // namespace Lightsail
121 } // namespace Aws
Aws::Lightsail::Model::InstanceState::NameHasBeenSet
bool NameHasBeenSet() const
Definition: InstanceState.h:72
Aws::Lightsail::Model::InstanceState::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lightsail::Model::InstanceState::SetName
void SetName(Aws::String &&value)
Definition: InstanceState.h:84
Aws::Lightsail::Model::InstanceState::GetName
const Aws::String & GetName() const
Definition: InstanceState.h:66
Aws::Lightsail::Model::InstanceState::CodeHasBeenSet
bool CodeHasBeenSet() const
Definition: InstanceState.h:49
Aws::Lightsail::Model::InstanceState::WithName
InstanceState & WithName(const Aws::String &value)
Definition: InstanceState.h:96
Aws::Lightsail::Model::InstanceState::WithName
InstanceState & WithName(const char *value)
Definition: InstanceState.h:108
Aws::Lightsail::Model::InstanceState
Definition: InstanceState.h:33
Aws::Lightsail::Model::InstanceState::InstanceState
InstanceState()
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Lightsail_EXPORTS.h
Aws::Lightsail::Model::InstanceState::operator=
InstanceState & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::InstanceState::SetName
void SetName(const Aws::String &value)
Definition: InstanceState.h:78
Aws::Lightsail::Model::InstanceState::WithCode
InstanceState & WithCode(int value)
Definition: InstanceState.h:59
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::InstanceState::SetCode
void SetCode(int value)
Definition: InstanceState.h:54
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::InstanceState::WithName
InstanceState & WithName(Aws::String &&value)
Definition: InstanceState.h:102
Aws::Lightsail::Model::InstanceState::SetName
void SetName(const char *value)
Definition: InstanceState.h:90
Aws::Lightsail::Model::InstanceState::InstanceState
InstanceState(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::InstanceState::GetCode
int GetCode() const
Definition: InstanceState.h:44