AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AwsEc2NetworkInterfaceAttachment.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityHub
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_SECURITYHUB_API AwsEc2NetworkInterfaceAttachment();
38 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
59 inline const Aws::String& GetAttachTime() const{ return m_attachTime; }
60 inline bool AttachTimeHasBeenSet() const { return m_attachTimeHasBeenSet; }
61 inline void SetAttachTime(const Aws::String& value) { m_attachTimeHasBeenSet = true; m_attachTime = value; }
62 inline void SetAttachTime(Aws::String&& value) { m_attachTimeHasBeenSet = true; m_attachTime = std::move(value); }
63 inline void SetAttachTime(const char* value) { m_attachTimeHasBeenSet = true; m_attachTime.assign(value); }
64 inline AwsEc2NetworkInterfaceAttachment& WithAttachTime(const Aws::String& value) { SetAttachTime(value); return *this;}
65 inline AwsEc2NetworkInterfaceAttachment& WithAttachTime(Aws::String&& value) { SetAttachTime(std::move(value)); return *this;}
66 inline AwsEc2NetworkInterfaceAttachment& WithAttachTime(const char* value) { SetAttachTime(value); return *this;}
68
70
73 inline const Aws::String& GetAttachmentId() const{ return m_attachmentId; }
74 inline bool AttachmentIdHasBeenSet() const { return m_attachmentIdHasBeenSet; }
75 inline void SetAttachmentId(const Aws::String& value) { m_attachmentIdHasBeenSet = true; m_attachmentId = value; }
76 inline void SetAttachmentId(Aws::String&& value) { m_attachmentIdHasBeenSet = true; m_attachmentId = std::move(value); }
77 inline void SetAttachmentId(const char* value) { m_attachmentIdHasBeenSet = true; m_attachmentId.assign(value); }
79 inline AwsEc2NetworkInterfaceAttachment& WithAttachmentId(Aws::String&& value) { SetAttachmentId(std::move(value)); return *this;}
80 inline AwsEc2NetworkInterfaceAttachment& WithAttachmentId(const char* value) { SetAttachmentId(value); return *this;}
82
84
88 inline bool GetDeleteOnTermination() const{ return m_deleteOnTermination; }
89 inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; }
90 inline void SetDeleteOnTermination(bool value) { m_deleteOnTerminationHasBeenSet = true; m_deleteOnTermination = value; }
93
95
98 inline int GetDeviceIndex() const{ return m_deviceIndex; }
99 inline bool DeviceIndexHasBeenSet() const { return m_deviceIndexHasBeenSet; }
100 inline void SetDeviceIndex(int value) { m_deviceIndexHasBeenSet = true; m_deviceIndex = value; }
101 inline AwsEc2NetworkInterfaceAttachment& WithDeviceIndex(int value) { SetDeviceIndex(value); return *this;}
103
105
108 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
109 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
110 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
111 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
112 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
113 inline AwsEc2NetworkInterfaceAttachment& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
114 inline AwsEc2NetworkInterfaceAttachment& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
115 inline AwsEc2NetworkInterfaceAttachment& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
117
119
122 inline const Aws::String& GetInstanceOwnerId() const{ return m_instanceOwnerId; }
123 inline bool InstanceOwnerIdHasBeenSet() const { return m_instanceOwnerIdHasBeenSet; }
124 inline void SetInstanceOwnerId(const Aws::String& value) { m_instanceOwnerIdHasBeenSet = true; m_instanceOwnerId = value; }
125 inline void SetInstanceOwnerId(Aws::String&& value) { m_instanceOwnerIdHasBeenSet = true; m_instanceOwnerId = std::move(value); }
126 inline void SetInstanceOwnerId(const char* value) { m_instanceOwnerIdHasBeenSet = true; m_instanceOwnerId.assign(value); }
128 inline AwsEc2NetworkInterfaceAttachment& WithInstanceOwnerId(Aws::String&& value) { SetInstanceOwnerId(std::move(value)); return *this;}
129 inline AwsEc2NetworkInterfaceAttachment& WithInstanceOwnerId(const char* value) { SetInstanceOwnerId(value); return *this;}
131
133
137 inline const Aws::String& GetStatus() const{ return m_status; }
138 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
139 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
140 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
141 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
142 inline AwsEc2NetworkInterfaceAttachment& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
143 inline AwsEc2NetworkInterfaceAttachment& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
144 inline AwsEc2NetworkInterfaceAttachment& WithStatus(const char* value) { SetStatus(value); return *this;}
146 private:
147
148 Aws::String m_attachTime;
149 bool m_attachTimeHasBeenSet = false;
150
151 Aws::String m_attachmentId;
152 bool m_attachmentIdHasBeenSet = false;
153
154 bool m_deleteOnTermination;
155 bool m_deleteOnTerminationHasBeenSet = false;
156
157 int m_deviceIndex;
158 bool m_deviceIndexHasBeenSet = false;
159
160 Aws::String m_instanceId;
161 bool m_instanceIdHasBeenSet = false;
162
163 Aws::String m_instanceOwnerId;
164 bool m_instanceOwnerIdHasBeenSet = false;
165
166 Aws::String m_status;
167 bool m_statusHasBeenSet = false;
168 };
169
170} // namespace Model
171} // namespace SecurityHub
172} // namespace Aws
AwsEc2NetworkInterfaceAttachment & WithAttachmentId(const char *value)
AwsEc2NetworkInterfaceAttachment & WithAttachmentId(Aws::String &&value)
AwsEc2NetworkInterfaceAttachment & WithAttachTime(const Aws::String &value)
AwsEc2NetworkInterfaceAttachment & WithInstanceOwnerId(const char *value)
AwsEc2NetworkInterfaceAttachment & WithStatus(const Aws::String &value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API AwsEc2NetworkInterfaceAttachment(Aws::Utils::Json::JsonView jsonValue)
AwsEc2NetworkInterfaceAttachment & WithStatus(const char *value)
AwsEc2NetworkInterfaceAttachment & WithDeleteOnTermination(bool value)
AwsEc2NetworkInterfaceAttachment & WithInstanceId(const char *value)
AwsEc2NetworkInterfaceAttachment & WithStatus(Aws::String &&value)
AwsEc2NetworkInterfaceAttachment & WithAttachTime(const char *value)
AwsEc2NetworkInterfaceAttachment & WithAttachTime(Aws::String &&value)
AWS_SECURITYHUB_API AwsEc2NetworkInterfaceAttachment & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsEc2NetworkInterfaceAttachment & WithInstanceOwnerId(const Aws::String &value)
AwsEc2NetworkInterfaceAttachment & WithInstanceId(Aws::String &&value)
AwsEc2NetworkInterfaceAttachment & WithInstanceId(const Aws::String &value)
AwsEc2NetworkInterfaceAttachment & WithInstanceOwnerId(Aws::String &&value)
AwsEc2NetworkInterfaceAttachment & WithAttachmentId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue