AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
AwsEc2VolumeAttachment.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SecurityHub {
20namespace Model {
21
28 public:
29 AWS_SECURITYHUB_API AwsEc2VolumeAttachment() = default;
30 AWS_SECURITYHUB_API AwsEc2VolumeAttachment(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetAttachTime() const { return m_attachTime; }
39 inline bool AttachTimeHasBeenSet() const { return m_attachTimeHasBeenSet; }
40 template <typename AttachTimeT = Aws::String>
41 void SetAttachTime(AttachTimeT&& value) {
42 m_attachTimeHasBeenSet = true;
43 m_attachTime = std::forward<AttachTimeT>(value);
44 }
45 template <typename AttachTimeT = Aws::String>
46 AwsEc2VolumeAttachment& WithAttachTime(AttachTimeT&& value) {
47 SetAttachTime(std::forward<AttachTimeT>(value));
48 return *this;
49 }
51
53
56 inline bool GetDeleteOnTermination() const { return m_deleteOnTermination; }
57 inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; }
58 inline void SetDeleteOnTermination(bool value) {
59 m_deleteOnTerminationHasBeenSet = true;
60 m_deleteOnTermination = value;
61 }
64 return *this;
65 }
67
69
72 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
73 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
74 template <typename InstanceIdT = Aws::String>
75 void SetInstanceId(InstanceIdT&& value) {
76 m_instanceIdHasBeenSet = true;
77 m_instanceId = std::forward<InstanceIdT>(value);
78 }
79 template <typename InstanceIdT = Aws::String>
80 AwsEc2VolumeAttachment& WithInstanceId(InstanceIdT&& value) {
81 SetInstanceId(std::forward<InstanceIdT>(value));
82 return *this;
83 }
85
87
93 inline const Aws::String& GetStatus() const { return m_status; }
94 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
95 template <typename StatusT = Aws::String>
96 void SetStatus(StatusT&& value) {
97 m_statusHasBeenSet = true;
98 m_status = std::forward<StatusT>(value);
99 }
100 template <typename StatusT = Aws::String>
102 SetStatus(std::forward<StatusT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_attachTime;
108
109 bool m_deleteOnTermination{false};
110
111 Aws::String m_instanceId;
112
113 Aws::String m_status;
114 bool m_attachTimeHasBeenSet = false;
115 bool m_deleteOnTerminationHasBeenSet = false;
116 bool m_instanceIdHasBeenSet = false;
117 bool m_statusHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace SecurityHub
122} // namespace Aws
AWS_SECURITYHUB_API AwsEc2VolumeAttachment(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API AwsEc2VolumeAttachment & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API AwsEc2VolumeAttachment()=default
AwsEc2VolumeAttachment & WithInstanceId(InstanceIdT &&value)
AwsEc2VolumeAttachment & WithAttachTime(AttachTimeT &&value)
AwsEc2VolumeAttachment & WithDeleteOnTermination(bool value)
AwsEc2VolumeAttachment & WithStatus(StatusT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue