AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CoverageEc2InstanceDetails.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/guardduty/model/AgentDetails.h>
10#include <aws/guardduty/model/ManagementType.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 GuardDuty
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_GUARDDUTY_API CoverageEc2InstanceDetails();
40 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
48 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
49 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
50 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
51 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
52 inline CoverageEc2InstanceDetails& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
53 inline CoverageEc2InstanceDetails& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
54 inline CoverageEc2InstanceDetails& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
56
58
61 inline const Aws::String& GetInstanceType() const{ return m_instanceType; }
62 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
63 inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
64 inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
65 inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
66 inline CoverageEc2InstanceDetails& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;}
67 inline CoverageEc2InstanceDetails& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
68 inline CoverageEc2InstanceDetails& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
70
72
76 inline const Aws::String& GetClusterArn() const{ return m_clusterArn; }
77 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
78 inline void SetClusterArn(const Aws::String& value) { m_clusterArnHasBeenSet = true; m_clusterArn = value; }
79 inline void SetClusterArn(Aws::String&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::move(value); }
80 inline void SetClusterArn(const char* value) { m_clusterArnHasBeenSet = true; m_clusterArn.assign(value); }
81 inline CoverageEc2InstanceDetails& WithClusterArn(const Aws::String& value) { SetClusterArn(value); return *this;}
82 inline CoverageEc2InstanceDetails& WithClusterArn(Aws::String&& value) { SetClusterArn(std::move(value)); return *this;}
83 inline CoverageEc2InstanceDetails& WithClusterArn(const char* value) { SetClusterArn(value); return *this;}
85
87
90 inline const AgentDetails& GetAgentDetails() const{ return m_agentDetails; }
91 inline bool AgentDetailsHasBeenSet() const { return m_agentDetailsHasBeenSet; }
92 inline void SetAgentDetails(const AgentDetails& value) { m_agentDetailsHasBeenSet = true; m_agentDetails = value; }
93 inline void SetAgentDetails(AgentDetails&& value) { m_agentDetailsHasBeenSet = true; m_agentDetails = std::move(value); }
94 inline CoverageEc2InstanceDetails& WithAgentDetails(const AgentDetails& value) { SetAgentDetails(value); return *this;}
95 inline CoverageEc2InstanceDetails& WithAgentDetails(AgentDetails&& value) { SetAgentDetails(std::move(value)); return *this;}
97
99
108 inline const ManagementType& GetManagementType() const{ return m_managementType; }
109 inline bool ManagementTypeHasBeenSet() const { return m_managementTypeHasBeenSet; }
110 inline void SetManagementType(const ManagementType& value) { m_managementTypeHasBeenSet = true; m_managementType = value; }
111 inline void SetManagementType(ManagementType&& value) { m_managementTypeHasBeenSet = true; m_managementType = std::move(value); }
113 inline CoverageEc2InstanceDetails& WithManagementType(ManagementType&& value) { SetManagementType(std::move(value)); return *this;}
115 private:
116
117 Aws::String m_instanceId;
118 bool m_instanceIdHasBeenSet = false;
119
120 Aws::String m_instanceType;
121 bool m_instanceTypeHasBeenSet = false;
122
123 Aws::String m_clusterArn;
124 bool m_clusterArnHasBeenSet = false;
125
126 AgentDetails m_agentDetails;
127 bool m_agentDetailsHasBeenSet = false;
128
129 ManagementType m_managementType;
130 bool m_managementTypeHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace GuardDuty
135} // namespace Aws
AWS_GUARDDUTY_API CoverageEc2InstanceDetails(Aws::Utils::Json::JsonView jsonValue)
CoverageEc2InstanceDetails & WithInstanceType(Aws::String &&value)
CoverageEc2InstanceDetails & WithManagementType(ManagementType &&value)
CoverageEc2InstanceDetails & WithInstanceId(Aws::String &&value)
CoverageEc2InstanceDetails & WithAgentDetails(const AgentDetails &value)
CoverageEc2InstanceDetails & WithInstanceType(const char *value)
CoverageEc2InstanceDetails & WithManagementType(const ManagementType &value)
CoverageEc2InstanceDetails & WithAgentDetails(AgentDetails &&value)
CoverageEc2InstanceDetails & WithInstanceId(const Aws::String &value)
CoverageEc2InstanceDetails & WithClusterArn(const char *value)
CoverageEc2InstanceDetails & WithInstanceType(const Aws::String &value)
AWS_GUARDDUTY_API CoverageEc2InstanceDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
CoverageEc2InstanceDetails & WithInstanceId(const char *value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
CoverageEc2InstanceDetails & WithClusterArn(const Aws::String &value)
CoverageEc2InstanceDetails & WithClusterArn(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue