AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OperationSummary.h
1
6#pragma once
7#include <aws/servicediscovery/ServiceDiscovery_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/servicediscovery/model/OperationStatus.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ServiceDiscovery
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_SERVICEDISCOVERY_API OperationSummary();
39 AWS_SERVICEDISCOVERY_API OperationSummary(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SERVICEDISCOVERY_API OperationSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetId() const{ return m_id; }
49 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
51 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
52 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
53 inline OperationSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
54 inline OperationSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
55 inline OperationSummary& WithId(const char* value) { SetId(value); return *this;}
57
59
67 inline const OperationStatus& GetStatus() const{ return m_status; }
68 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
69 inline void SetStatus(const OperationStatus& value) { m_statusHasBeenSet = true; m_status = value; }
70 inline void SetStatus(OperationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
71 inline OperationSummary& WithStatus(const OperationStatus& value) { SetStatus(value); return *this;}
72 inline OperationSummary& WithStatus(OperationStatus&& value) { SetStatus(std::move(value)); return *this;}
74 private:
75
76 Aws::String m_id;
77 bool m_idHasBeenSet = false;
78
79 OperationStatus m_status;
80 bool m_statusHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace ServiceDiscovery
85} // namespace Aws
const OperationStatus & GetStatus() const
OperationSummary & WithId(const Aws::String &value)
AWS_SERVICEDISCOVERY_API OperationSummary(Aws::Utils::Json::JsonView jsonValue)
OperationSummary & WithId(Aws::String &&value)
OperationSummary & WithId(const char *value)
AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(const OperationStatus &value)
AWS_SERVICEDISCOVERY_API OperationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
OperationSummary & WithStatus(const OperationStatus &value)
OperationSummary & WithStatus(OperationStatus &&value)
AWS_SERVICEDISCOVERY_API OperationSummary()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue