AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
38 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
47 inline const Aws::String& GetAttachTime() const { return m_attachTime; }
48 inline bool AttachTimeHasBeenSet() const { return m_attachTimeHasBeenSet; }
49 template<typename AttachTimeT = Aws::String>
50 void SetAttachTime(AttachTimeT&& value) { m_attachTimeHasBeenSet = true; m_attachTime = std::forward<AttachTimeT>(value); }
51 template<typename AttachTimeT = Aws::String>
52 AwsEc2NetworkInterfaceAttachment& WithAttachTime(AttachTimeT&& value) { SetAttachTime(std::forward<AttachTimeT>(value)); return *this;}
54
56
59 inline const Aws::String& GetAttachmentId() const { return m_attachmentId; }
60 inline bool AttachmentIdHasBeenSet() const { return m_attachmentIdHasBeenSet; }
61 template<typename AttachmentIdT = Aws::String>
62 void SetAttachmentId(AttachmentIdT&& value) { m_attachmentIdHasBeenSet = true; m_attachmentId = std::forward<AttachmentIdT>(value); }
63 template<typename AttachmentIdT = Aws::String>
64 AwsEc2NetworkInterfaceAttachment& WithAttachmentId(AttachmentIdT&& value) { SetAttachmentId(std::forward<AttachmentIdT>(value)); return *this;}
66
68
72 inline bool GetDeleteOnTermination() const { return m_deleteOnTermination; }
73 inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; }
74 inline void SetDeleteOnTermination(bool value) { m_deleteOnTerminationHasBeenSet = true; m_deleteOnTermination = value; }
77
79
82 inline int GetDeviceIndex() const { return m_deviceIndex; }
83 inline bool DeviceIndexHasBeenSet() const { return m_deviceIndexHasBeenSet; }
84 inline void SetDeviceIndex(int value) { m_deviceIndexHasBeenSet = true; m_deviceIndex = value; }
85 inline AwsEc2NetworkInterfaceAttachment& WithDeviceIndex(int value) { SetDeviceIndex(value); return *this;}
87
89
92 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
93 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
94 template<typename InstanceIdT = Aws::String>
95 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
96 template<typename InstanceIdT = Aws::String>
97 AwsEc2NetworkInterfaceAttachment& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
99
101
104 inline const Aws::String& GetInstanceOwnerId() const { return m_instanceOwnerId; }
105 inline bool InstanceOwnerIdHasBeenSet() const { return m_instanceOwnerIdHasBeenSet; }
106 template<typename InstanceOwnerIdT = Aws::String>
107 void SetInstanceOwnerId(InstanceOwnerIdT&& value) { m_instanceOwnerIdHasBeenSet = true; m_instanceOwnerId = std::forward<InstanceOwnerIdT>(value); }
108 template<typename InstanceOwnerIdT = Aws::String>
109 AwsEc2NetworkInterfaceAttachment& WithInstanceOwnerId(InstanceOwnerIdT&& value) { SetInstanceOwnerId(std::forward<InstanceOwnerIdT>(value)); return *this;}
111
113
117 inline const Aws::String& GetStatus() const { return m_status; }
118 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
119 template<typename StatusT = Aws::String>
120 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
121 template<typename StatusT = Aws::String>
122 AwsEc2NetworkInterfaceAttachment& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
124 private:
125
126 Aws::String m_attachTime;
127 bool m_attachTimeHasBeenSet = false;
128
129 Aws::String m_attachmentId;
130 bool m_attachmentIdHasBeenSet = false;
131
132 bool m_deleteOnTermination{false};
133 bool m_deleteOnTerminationHasBeenSet = false;
134
135 int m_deviceIndex{0};
136 bool m_deviceIndexHasBeenSet = false;
137
138 Aws::String m_instanceId;
139 bool m_instanceIdHasBeenSet = false;
140
141 Aws::String m_instanceOwnerId;
142 bool m_instanceOwnerIdHasBeenSet = false;
143
144 Aws::String m_status;
145 bool m_statusHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace SecurityHub
150} // namespace Aws
AwsEc2NetworkInterfaceAttachment & WithAttachTime(AttachTimeT &&value)
AwsEc2NetworkInterfaceAttachment & WithStatus(StatusT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API AwsEc2NetworkInterfaceAttachment(Aws::Utils::Json::JsonView jsonValue)
AwsEc2NetworkInterfaceAttachment & WithInstanceOwnerId(InstanceOwnerIdT &&value)
AwsEc2NetworkInterfaceAttachment & WithDeleteOnTermination(bool value)
AWS_SECURITYHUB_API AwsEc2NetworkInterfaceAttachment()=default
AwsEc2NetworkInterfaceAttachment & WithInstanceId(InstanceIdT &&value)
AWS_SECURITYHUB_API AwsEc2NetworkInterfaceAttachment & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsEc2NetworkInterfaceAttachment & WithAttachmentId(AttachmentIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue