AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
ComponentStatusData.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/groundstation/GroundStation_EXPORTS.h>
9#include <aws/groundstation/model/AgentStatus.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GroundStation {
21namespace Model {
22
29 public:
30 AWS_GROUNDSTATION_API ComponentStatusData() = default;
31 AWS_GROUNDSTATION_API ComponentStatusData(Aws::Utils::Json::JsonView jsonValue);
32 AWS_GROUNDSTATION_API ComponentStatusData& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GROUNDSTATION_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetComponentType() const { return m_componentType; }
40 inline bool ComponentTypeHasBeenSet() const { return m_componentTypeHasBeenSet; }
41 template <typename ComponentTypeT = Aws::String>
42 void SetComponentType(ComponentTypeT&& value) {
43 m_componentTypeHasBeenSet = true;
44 m_componentType = std::forward<ComponentTypeT>(value);
45 }
46 template <typename ComponentTypeT = Aws::String>
47 ComponentStatusData& WithComponentType(ComponentTypeT&& value) {
48 SetComponentType(std::forward<ComponentTypeT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetCapabilityArn() const { return m_capabilityArn; }
58 inline bool CapabilityArnHasBeenSet() const { return m_capabilityArnHasBeenSet; }
59 template <typename CapabilityArnT = Aws::String>
60 void SetCapabilityArn(CapabilityArnT&& value) {
61 m_capabilityArnHasBeenSet = true;
62 m_capabilityArn = std::forward<CapabilityArnT>(value);
63 }
64 template <typename CapabilityArnT = Aws::String>
65 ComponentStatusData& WithCapabilityArn(CapabilityArnT&& value) {
66 SetCapabilityArn(std::forward<CapabilityArnT>(value));
67 return *this;
68 }
70
72
75 inline AgentStatus GetStatus() const { return m_status; }
76 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
77 inline void SetStatus(AgentStatus value) {
78 m_statusHasBeenSet = true;
79 m_status = value;
80 }
82 SetStatus(value);
83 return *this;
84 }
86
88
91 inline long long GetBytesSent() const { return m_bytesSent; }
92 inline bool BytesSentHasBeenSet() const { return m_bytesSentHasBeenSet; }
93 inline void SetBytesSent(long long value) {
94 m_bytesSentHasBeenSet = true;
95 m_bytesSent = value;
96 }
97 inline ComponentStatusData& WithBytesSent(long long value) {
98 SetBytesSent(value);
99 return *this;
100 }
102
104
107 inline long long GetBytesReceived() const { return m_bytesReceived; }
108 inline bool BytesReceivedHasBeenSet() const { return m_bytesReceivedHasBeenSet; }
109 inline void SetBytesReceived(long long value) {
110 m_bytesReceivedHasBeenSet = true;
111 m_bytesReceived = value;
112 }
113 inline ComponentStatusData& WithBytesReceived(long long value) {
114 SetBytesReceived(value);
115 return *this;
116 }
118
120
123 inline long long GetPacketsDropped() const { return m_packetsDropped; }
124 inline bool PacketsDroppedHasBeenSet() const { return m_packetsDroppedHasBeenSet; }
125 inline void SetPacketsDropped(long long value) {
126 m_packetsDroppedHasBeenSet = true;
127 m_packetsDropped = value;
128 }
129 inline ComponentStatusData& WithPacketsDropped(long long value) {
130 SetPacketsDropped(value);
131 return *this;
132 }
134
136
139 inline const Aws::String& GetDataflowId() const { return m_dataflowId; }
140 inline bool DataflowIdHasBeenSet() const { return m_dataflowIdHasBeenSet; }
141 template <typename DataflowIdT = Aws::String>
142 void SetDataflowId(DataflowIdT&& value) {
143 m_dataflowIdHasBeenSet = true;
144 m_dataflowId = std::forward<DataflowIdT>(value);
145 }
146 template <typename DataflowIdT = Aws::String>
147 ComponentStatusData& WithDataflowId(DataflowIdT&& value) {
148 SetDataflowId(std::forward<DataflowIdT>(value));
149 return *this;
150 }
152 private:
153 Aws::String m_componentType;
154
155 Aws::String m_capabilityArn;
156
158
159 long long m_bytesSent{0};
160
161 long long m_bytesReceived{0};
162
163 long long m_packetsDropped{0};
164
165 Aws::String m_dataflowId;
166 bool m_componentTypeHasBeenSet = false;
167 bool m_capabilityArnHasBeenSet = false;
168 bool m_statusHasBeenSet = false;
169 bool m_bytesSentHasBeenSet = false;
170 bool m_bytesReceivedHasBeenSet = false;
171 bool m_packetsDroppedHasBeenSet = false;
172 bool m_dataflowIdHasBeenSet = false;
173};
174
175} // namespace Model
176} // namespace GroundStation
177} // namespace Aws
AWS_GROUNDSTATION_API ComponentStatusData()=default
AWS_GROUNDSTATION_API Aws::Utils::Json::JsonValue Jsonize() const
ComponentStatusData & WithBytesSent(long long value)
ComponentStatusData & WithCapabilityArn(CapabilityArnT &&value)
ComponentStatusData & WithStatus(AgentStatus value)
AWS_GROUNDSTATION_API ComponentStatusData(Aws::Utils::Json::JsonView jsonValue)
AWS_GROUNDSTATION_API ComponentStatusData & operator=(Aws::Utils::Json::JsonView jsonValue)
ComponentStatusData & WithComponentType(ComponentTypeT &&value)
ComponentStatusData & WithBytesReceived(long long value)
ComponentStatusData & WithDataflowId(DataflowIdT &&value)
ComponentStatusData & WithPacketsDropped(long long value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue