AWS SDK for C++  1.9.104
AWS SDK for C++
OperationSummary.h
Go to the documentation of this file.
1 
6 #pragma once
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 ServiceDiscovery
23 {
24 namespace Model
25 {
26 
36  {
37  public:
42 
43 
47  inline const Aws::String& GetId() const{ return m_id; }
48 
52  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
53 
57  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
58 
62  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
63 
67  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
68 
72  inline OperationSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
73 
77  inline OperationSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
78 
82  inline OperationSummary& WithId(const char* value) { SetId(value); return *this;}
83 
84 
93  inline const OperationStatus& GetStatus() const{ return m_status; }
94 
103  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
104 
113  inline void SetStatus(const OperationStatus& value) { m_statusHasBeenSet = true; m_status = value; }
114 
123  inline void SetStatus(OperationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
124 
133  inline OperationSummary& WithStatus(const OperationStatus& value) { SetStatus(value); return *this;}
134 
143  inline OperationSummary& WithStatus(OperationStatus&& value) { SetStatus(std::move(value)); return *this;}
144 
145  private:
146 
147  Aws::String m_id;
148  bool m_idHasBeenSet;
149 
150  OperationStatus m_status;
151  bool m_statusHasBeenSet;
152  };
153 
154 } // namespace Model
155 } // namespace ServiceDiscovery
156 } // namespace Aws
Aws::ServiceDiscovery::Model::OperationSummary::IdHasBeenSet
bool IdHasBeenSet() const
Definition: OperationSummary.h:52
AWS_SERVICEDISCOVERY_API
#define AWS_SERVICEDISCOVERY_API
Definition: ServiceDiscovery_EXPORTS.h:28
Aws::ServiceDiscovery::Model::OperationSummary::operator=
OperationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceDiscovery_EXPORTS.h
Aws::ServiceDiscovery::Model::OperationSummary::OperationSummary
OperationSummary()
Aws::ServiceDiscovery::Model::OperationSummary::GetStatus
const OperationStatus & GetStatus() const
Definition: OperationSummary.h:93
Aws::ServiceDiscovery::Model::OperationSummary::SetStatus
void SetStatus(OperationStatus &&value)
Definition: OperationSummary.h:123
Aws::ServiceDiscovery::Model::OperationSummary::GetId
const Aws::String & GetId() const
Definition: OperationSummary.h:47
Aws::ServiceDiscovery::Model::OperationSummary::WithStatus
OperationSummary & WithStatus(OperationStatus &&value)
Definition: OperationSummary.h:143
Aws::ServiceDiscovery::Model::OperationSummary::WithId
OperationSummary & WithId(Aws::String &&value)
Definition: OperationSummary.h:77
Aws::ServiceDiscovery::Model::OperationSummary::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ServiceDiscovery::Model::OperationStatus
OperationStatus
Definition: OperationStatus.h:17
Aws::ServiceDiscovery::Model::OperationSummary::SetId
void SetId(Aws::String &&value)
Definition: OperationSummary.h:62
Aws::ServiceDiscovery::Model::OperationSummary::SetId
void SetId(const char *value)
Definition: OperationSummary.h:67
Aws::ServiceDiscovery::Model::OperationSummary::SetStatus
void SetStatus(const OperationStatus &value)
Definition: OperationSummary.h:113
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ServiceDiscovery::Model::OperationSummary::SetId
void SetId(const Aws::String &value)
Definition: OperationSummary.h:57
Aws::ServiceDiscovery::Model::OperationSummary::WithId
OperationSummary & WithId(const Aws::String &value)
Definition: OperationSummary.h:72
Aws::ServiceDiscovery::Model::OperationSummary
Definition: OperationSummary.h:36
Aws::ServiceDiscovery::Model::OperationSummary::WithStatus
OperationSummary & WithStatus(const OperationStatus &value)
Definition: OperationSummary.h:133
Aws::ServiceDiscovery::Model::OperationSummary::WithId
OperationSummary & WithId(const char *value)
Definition: OperationSummary.h:82
Aws
Definition: AccessManagementClient.h:15
OperationStatus.h
Aws::ServiceDiscovery::Model::OperationSummary::OperationSummary
OperationSummary(Aws::Utils::Json::JsonView jsonValue)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ServiceDiscovery::Model::OperationSummary::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: OperationSummary.h:103