AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AgentDetails.h
1
6#pragma once
7#include <aws/groundstation/GroundStation_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/groundstation/model/ComponentVersion.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GroundStation
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_GROUNDSTATION_API AgentDetails() = default;
37 AWS_GROUNDSTATION_API AgentDetails(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GROUNDSTATION_API AgentDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GROUNDSTATION_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<int>& GetAgentCpuCores() const { return m_agentCpuCores; }
47 inline bool AgentCpuCoresHasBeenSet() const { return m_agentCpuCoresHasBeenSet; }
48 template<typename AgentCpuCoresT = Aws::Vector<int>>
49 void SetAgentCpuCores(AgentCpuCoresT&& value) { m_agentCpuCoresHasBeenSet = true; m_agentCpuCores = std::forward<AgentCpuCoresT>(value); }
50 template<typename AgentCpuCoresT = Aws::Vector<int>>
51 AgentDetails& WithAgentCpuCores(AgentCpuCoresT&& value) { SetAgentCpuCores(std::forward<AgentCpuCoresT>(value)); return *this;}
52 inline AgentDetails& AddAgentCpuCores(int value) { m_agentCpuCoresHasBeenSet = true; m_agentCpuCores.push_back(value); return *this; }
54
56
59 inline const Aws::String& GetAgentVersion() const { return m_agentVersion; }
60 inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; }
61 template<typename AgentVersionT = Aws::String>
62 void SetAgentVersion(AgentVersionT&& value) { m_agentVersionHasBeenSet = true; m_agentVersion = std::forward<AgentVersionT>(value); }
63 template<typename AgentVersionT = Aws::String>
64 AgentDetails& WithAgentVersion(AgentVersionT&& value) { SetAgentVersion(std::forward<AgentVersionT>(value)); return *this;}
66
68
71 inline const Aws::Vector<ComponentVersion>& GetComponentVersions() const { return m_componentVersions; }
72 inline bool ComponentVersionsHasBeenSet() const { return m_componentVersionsHasBeenSet; }
73 template<typename ComponentVersionsT = Aws::Vector<ComponentVersion>>
74 void SetComponentVersions(ComponentVersionsT&& value) { m_componentVersionsHasBeenSet = true; m_componentVersions = std::forward<ComponentVersionsT>(value); }
75 template<typename ComponentVersionsT = Aws::Vector<ComponentVersion>>
76 AgentDetails& WithComponentVersions(ComponentVersionsT&& value) { SetComponentVersions(std::forward<ComponentVersionsT>(value)); return *this;}
77 template<typename ComponentVersionsT = ComponentVersion>
78 AgentDetails& AddComponentVersions(ComponentVersionsT&& value) { m_componentVersionsHasBeenSet = true; m_componentVersions.emplace_back(std::forward<ComponentVersionsT>(value)); return *this; }
80
82
85 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
86 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
87 template<typename InstanceIdT = Aws::String>
88 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
89 template<typename InstanceIdT = Aws::String>
90 AgentDetails& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
92
94
97 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
98 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
99 template<typename InstanceTypeT = Aws::String>
100 void SetInstanceType(InstanceTypeT&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::forward<InstanceTypeT>(value); }
101 template<typename InstanceTypeT = Aws::String>
102 AgentDetails& WithInstanceType(InstanceTypeT&& value) { SetInstanceType(std::forward<InstanceTypeT>(value)); return *this;}
104
106
111 inline const Aws::Vector<int>& GetReservedCpuCores() const { return m_reservedCpuCores; }
112 inline bool ReservedCpuCoresHasBeenSet() const { return m_reservedCpuCoresHasBeenSet; }
113 template<typename ReservedCpuCoresT = Aws::Vector<int>>
114 void SetReservedCpuCores(ReservedCpuCoresT&& value) { m_reservedCpuCoresHasBeenSet = true; m_reservedCpuCores = std::forward<ReservedCpuCoresT>(value); }
115 template<typename ReservedCpuCoresT = Aws::Vector<int>>
116 AgentDetails& WithReservedCpuCores(ReservedCpuCoresT&& value) { SetReservedCpuCores(std::forward<ReservedCpuCoresT>(value)); return *this;}
117 inline AgentDetails& AddReservedCpuCores(int value) { m_reservedCpuCoresHasBeenSet = true; m_reservedCpuCores.push_back(value); return *this; }
119 private:
120
121 Aws::Vector<int> m_agentCpuCores;
122 bool m_agentCpuCoresHasBeenSet = false;
123
124 Aws::String m_agentVersion;
125 bool m_agentVersionHasBeenSet = false;
126
127 Aws::Vector<ComponentVersion> m_componentVersions;
128 bool m_componentVersionsHasBeenSet = false;
129
130 Aws::String m_instanceId;
131 bool m_instanceIdHasBeenSet = false;
132
133 Aws::String m_instanceType;
134 bool m_instanceTypeHasBeenSet = false;
135
136 Aws::Vector<int> m_reservedCpuCores;
137 bool m_reservedCpuCoresHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace GroundStation
142} // namespace Aws
void SetReservedCpuCores(ReservedCpuCoresT &&value)
const Aws::Vector< ComponentVersion > & GetComponentVersions() const
AWS_GROUNDSTATION_API AgentDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< int > & GetReservedCpuCores() const
void SetAgentVersion(AgentVersionT &&value)
AgentDetails & WithInstanceType(InstanceTypeT &&value)
AWS_GROUNDSTATION_API AgentDetails()=default
AgentDetails & AddComponentVersions(ComponentVersionsT &&value)
AgentDetails & WithAgentVersion(AgentVersionT &&value)
AgentDetails & WithComponentVersions(ComponentVersionsT &&value)
void SetInstanceType(InstanceTypeT &&value)
void SetInstanceId(InstanceIdT &&value)
const Aws::String & GetInstanceType() const
const Aws::String & GetAgentVersion() const
AWS_GROUNDSTATION_API AgentDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_GROUNDSTATION_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< int > & GetAgentCpuCores() const
AgentDetails & WithInstanceId(InstanceIdT &&value)
AgentDetails & AddAgentCpuCores(int value)
AgentDetails & AddReservedCpuCores(int value)
AgentDetails & WithReservedCpuCores(ReservedCpuCoresT &&value)
void SetComponentVersions(ComponentVersionsT &&value)
const Aws::String & GetInstanceId() const
void SetAgentCpuCores(AgentCpuCoresT &&value)
AgentDetails & WithAgentCpuCores(AgentCpuCoresT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue