AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsEc2VolumeAttachment.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
32 {
33 public:
34 AWS_SECURITYHUB_API AwsEc2VolumeAttachment() = default;
35 AWS_SECURITYHUB_API AwsEc2VolumeAttachment(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetAttachTime() const { return m_attachTime; }
45 inline bool AttachTimeHasBeenSet() const { return m_attachTimeHasBeenSet; }
46 template<typename AttachTimeT = Aws::String>
47 void SetAttachTime(AttachTimeT&& value) { m_attachTimeHasBeenSet = true; m_attachTime = std::forward<AttachTimeT>(value); }
48 template<typename AttachTimeT = Aws::String>
49 AwsEc2VolumeAttachment& WithAttachTime(AttachTimeT&& value) { SetAttachTime(std::forward<AttachTimeT>(value)); return *this;}
51
53
56 inline bool GetDeleteOnTermination() const { return m_deleteOnTermination; }
57 inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; }
58 inline void SetDeleteOnTermination(bool value) { m_deleteOnTerminationHasBeenSet = true; m_deleteOnTermination = value; }
59 inline AwsEc2VolumeAttachment& WithDeleteOnTermination(bool value) { SetDeleteOnTermination(value); return *this;}
61
63
66 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
67 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
68 template<typename InstanceIdT = Aws::String>
69 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
70 template<typename InstanceIdT = Aws::String>
71 AwsEc2VolumeAttachment& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
73
75
81 inline const Aws::String& GetStatus() const { return m_status; }
82 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
83 template<typename StatusT = Aws::String>
84 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
85 template<typename StatusT = Aws::String>
86 AwsEc2VolumeAttachment& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
88 private:
89
90 Aws::String m_attachTime;
91 bool m_attachTimeHasBeenSet = false;
92
93 bool m_deleteOnTermination{false};
94 bool m_deleteOnTerminationHasBeenSet = false;
95
96 Aws::String m_instanceId;
97 bool m_instanceIdHasBeenSet = false;
98
99 Aws::String m_status;
100 bool m_statusHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace SecurityHub
105} // 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