AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
CoverageEc2InstanceDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/guardduty/GuardDuty_EXPORTS.h>
9#include <aws/guardduty/model/AgentDetails.h>
10#include <aws/guardduty/model/ManagementType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GuardDuty {
22namespace Model {
23
31 public:
32 AWS_GUARDDUTY_API CoverageEc2InstanceDetails() = default;
35 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
42 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
43 template <typename InstanceIdT = Aws::String>
44 void SetInstanceId(InstanceIdT&& value) {
45 m_instanceIdHasBeenSet = true;
46 m_instanceId = std::forward<InstanceIdT>(value);
47 }
48 template <typename InstanceIdT = Aws::String>
50 SetInstanceId(std::forward<InstanceIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
60 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
61 template <typename InstanceTypeT = Aws::String>
62 void SetInstanceType(InstanceTypeT&& value) {
63 m_instanceTypeHasBeenSet = true;
64 m_instanceType = std::forward<InstanceTypeT>(value);
65 }
66 template <typename InstanceTypeT = Aws::String>
68 SetInstanceType(std::forward<InstanceTypeT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
79 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
80 template <typename ClusterArnT = Aws::String>
81 void SetClusterArn(ClusterArnT&& value) {
82 m_clusterArnHasBeenSet = true;
83 m_clusterArn = std::forward<ClusterArnT>(value);
84 }
85 template <typename ClusterArnT = Aws::String>
87 SetClusterArn(std::forward<ClusterArnT>(value));
88 return *this;
89 }
91
93
96 inline const AgentDetails& GetAgentDetails() const { return m_agentDetails; }
97 inline bool AgentDetailsHasBeenSet() const { return m_agentDetailsHasBeenSet; }
98 template <typename AgentDetailsT = AgentDetails>
99 void SetAgentDetails(AgentDetailsT&& value) {
100 m_agentDetailsHasBeenSet = true;
101 m_agentDetails = std::forward<AgentDetailsT>(value);
102 }
103 template <typename AgentDetailsT = AgentDetails>
105 SetAgentDetails(std::forward<AgentDetailsT>(value));
106 return *this;
107 }
109
111
120 inline ManagementType GetManagementType() const { return m_managementType; }
121 inline bool ManagementTypeHasBeenSet() const { return m_managementTypeHasBeenSet; }
123 m_managementTypeHasBeenSet = true;
124 m_managementType = value;
125 }
127 SetManagementType(value);
128 return *this;
129 }
131 private:
132 Aws::String m_instanceId;
133
134 Aws::String m_instanceType;
135
136 Aws::String m_clusterArn;
137
138 AgentDetails m_agentDetails;
139
140 ManagementType m_managementType{ManagementType::NOT_SET};
141 bool m_instanceIdHasBeenSet = false;
142 bool m_instanceTypeHasBeenSet = false;
143 bool m_clusterArnHasBeenSet = false;
144 bool m_agentDetailsHasBeenSet = false;
145 bool m_managementTypeHasBeenSet = false;
146};
147
148} // namespace Model
149} // namespace GuardDuty
150} // namespace Aws
AWS_GUARDDUTY_API CoverageEc2InstanceDetails(Aws::Utils::Json::JsonView jsonValue)
CoverageEc2InstanceDetails & WithClusterArn(ClusterArnT &&value)
CoverageEc2InstanceDetails & WithInstanceType(InstanceTypeT &&value)
CoverageEc2InstanceDetails & WithAgentDetails(AgentDetailsT &&value)
AWS_GUARDDUTY_API CoverageEc2InstanceDetails()=default
CoverageEc2InstanceDetails & WithManagementType(ManagementType value)
AWS_GUARDDUTY_API CoverageEc2InstanceDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
CoverageEc2InstanceDetails & WithInstanceId(InstanceIdT &&value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue