AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TargetSummary.h
1
6#pragma once
7#include <aws/vpc-lattice/VPCLattice_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/vpc-lattice/model/TargetStatus.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 VPCLattice
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_VPCLATTICE_API TargetSummary();
36 AWS_VPCLATTICE_API TargetSummary(Aws::Utils::Json::JsonView jsonValue);
37 AWS_VPCLATTICE_API TargetSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
49 inline const Aws::String& GetId() const{ return m_id; }
50 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
51 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
52 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
53 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
54 inline TargetSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
55 inline TargetSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
56 inline TargetSummary& WithId(const char* value) { SetId(value); return *this;}
58
60
63 inline int GetPort() const{ return m_port; }
64 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
65 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
66 inline TargetSummary& WithPort(int value) { SetPort(value); return *this;}
68
70
73 inline const Aws::String& GetReasonCode() const{ return m_reasonCode; }
74 inline bool ReasonCodeHasBeenSet() const { return m_reasonCodeHasBeenSet; }
75 inline void SetReasonCode(const Aws::String& value) { m_reasonCodeHasBeenSet = true; m_reasonCode = value; }
76 inline void SetReasonCode(Aws::String&& value) { m_reasonCodeHasBeenSet = true; m_reasonCode = std::move(value); }
77 inline void SetReasonCode(const char* value) { m_reasonCodeHasBeenSet = true; m_reasonCode.assign(value); }
78 inline TargetSummary& WithReasonCode(const Aws::String& value) { SetReasonCode(value); return *this;}
79 inline TargetSummary& WithReasonCode(Aws::String&& value) { SetReasonCode(std::move(value)); return *this;}
80 inline TargetSummary& WithReasonCode(const char* value) { SetReasonCode(value); return *this;}
82
84
95 inline const TargetStatus& GetStatus() const{ return m_status; }
96 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
97 inline void SetStatus(const TargetStatus& value) { m_statusHasBeenSet = true; m_status = value; }
98 inline void SetStatus(TargetStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
99 inline TargetSummary& WithStatus(const TargetStatus& value) { SetStatus(value); return *this;}
100 inline TargetSummary& WithStatus(TargetStatus&& value) { SetStatus(std::move(value)); return *this;}
102 private:
103
104 Aws::String m_id;
105 bool m_idHasBeenSet = false;
106
107 int m_port;
108 bool m_portHasBeenSet = false;
109
110 Aws::String m_reasonCode;
111 bool m_reasonCodeHasBeenSet = false;
112
113 TargetStatus m_status;
114 bool m_statusHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace VPCLattice
119} // namespace Aws
TargetSummary & WithPort(int value)
const TargetStatus & GetStatus() const
void SetId(const Aws::String &value)
void SetId(Aws::String &&value)
const Aws::String & GetReasonCode() const
void SetStatus(const TargetStatus &value)
const Aws::String & GetId() const
AWS_VPCLATTICE_API TargetSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_VPCLATTICE_API TargetSummary(Aws::Utils::Json::JsonView jsonValue)
TargetSummary & WithStatus(TargetStatus &&value)
void SetReasonCode(const Aws::String &value)
TargetSummary & WithId(const char *value)
void SetStatus(TargetStatus &&value)
void SetReasonCode(const char *value)
TargetSummary & WithStatus(const TargetStatus &value)
TargetSummary & WithId(const Aws::String &value)
AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetReasonCode(Aws::String &&value)
TargetSummary & WithReasonCode(const char *value)
TargetSummary & WithReasonCode(const Aws::String &value)
TargetSummary & WithId(Aws::String &&value)
TargetSummary & WithReasonCode(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue