AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ComponentStatusData.h
1
6#pragma once
7#include <aws/groundstation/GroundStation_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/groundstation/model/AgentStatus.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 GroundStation
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_GROUNDSTATION_API ComponentStatusData() = default;
36 AWS_GROUNDSTATION_API ComponentStatusData(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GROUNDSTATION_API ComponentStatusData& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GROUNDSTATION_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline long long GetBytesReceived() const { return m_bytesReceived; }
46 inline bool BytesReceivedHasBeenSet() const { return m_bytesReceivedHasBeenSet; }
47 inline void SetBytesReceived(long long value) { m_bytesReceivedHasBeenSet = true; m_bytesReceived = value; }
48 inline ComponentStatusData& WithBytesReceived(long long value) { SetBytesReceived(value); return *this;}
50
52
55 inline long long GetBytesSent() const { return m_bytesSent; }
56 inline bool BytesSentHasBeenSet() const { return m_bytesSentHasBeenSet; }
57 inline void SetBytesSent(long long value) { m_bytesSentHasBeenSet = true; m_bytesSent = value; }
58 inline ComponentStatusData& WithBytesSent(long long value) { SetBytesSent(value); return *this;}
60
62
65 inline const Aws::String& GetCapabilityArn() const { return m_capabilityArn; }
66 inline bool CapabilityArnHasBeenSet() const { return m_capabilityArnHasBeenSet; }
67 template<typename CapabilityArnT = Aws::String>
68 void SetCapabilityArn(CapabilityArnT&& value) { m_capabilityArnHasBeenSet = true; m_capabilityArn = std::forward<CapabilityArnT>(value); }
69 template<typename CapabilityArnT = Aws::String>
70 ComponentStatusData& WithCapabilityArn(CapabilityArnT&& value) { SetCapabilityArn(std::forward<CapabilityArnT>(value)); return *this;}
72
74
77 inline const Aws::String& GetComponentType() const { return m_componentType; }
78 inline bool ComponentTypeHasBeenSet() const { return m_componentTypeHasBeenSet; }
79 template<typename ComponentTypeT = Aws::String>
80 void SetComponentType(ComponentTypeT&& value) { m_componentTypeHasBeenSet = true; m_componentType = std::forward<ComponentTypeT>(value); }
81 template<typename ComponentTypeT = Aws::String>
82 ComponentStatusData& WithComponentType(ComponentTypeT&& value) { SetComponentType(std::forward<ComponentTypeT>(value)); return *this;}
84
86
89 inline const Aws::String& GetDataflowId() const { return m_dataflowId; }
90 inline bool DataflowIdHasBeenSet() const { return m_dataflowIdHasBeenSet; }
91 template<typename DataflowIdT = Aws::String>
92 void SetDataflowId(DataflowIdT&& value) { m_dataflowIdHasBeenSet = true; m_dataflowId = std::forward<DataflowIdT>(value); }
93 template<typename DataflowIdT = Aws::String>
94 ComponentStatusData& WithDataflowId(DataflowIdT&& value) { SetDataflowId(std::forward<DataflowIdT>(value)); return *this;}
96
98
101 inline long long GetPacketsDropped() const { return m_packetsDropped; }
102 inline bool PacketsDroppedHasBeenSet() const { return m_packetsDroppedHasBeenSet; }
103 inline void SetPacketsDropped(long long value) { m_packetsDroppedHasBeenSet = true; m_packetsDropped = value; }
104 inline ComponentStatusData& WithPacketsDropped(long long value) { SetPacketsDropped(value); return *this;}
106
108
111 inline AgentStatus GetStatus() const { return m_status; }
112 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
113 inline void SetStatus(AgentStatus value) { m_statusHasBeenSet = true; m_status = value; }
114 inline ComponentStatusData& WithStatus(AgentStatus value) { SetStatus(value); return *this;}
116 private:
117
118 long long m_bytesReceived{0};
119 bool m_bytesReceivedHasBeenSet = false;
120
121 long long m_bytesSent{0};
122 bool m_bytesSentHasBeenSet = false;
123
124 Aws::String m_capabilityArn;
125 bool m_capabilityArnHasBeenSet = false;
126
127 Aws::String m_componentType;
128 bool m_componentTypeHasBeenSet = false;
129
130 Aws::String m_dataflowId;
131 bool m_dataflowIdHasBeenSet = false;
132
133 long long m_packetsDropped{0};
134 bool m_packetsDroppedHasBeenSet = false;
135
137 bool m_statusHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace GroundStation
142} // 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