AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAttachTime(const Aws::String& value) { m_attachTimeHasBeenSet = true; m_attachTime = value; }
47 inline void SetAttachTime(Aws::String&& value) { m_attachTimeHasBeenSet = true; m_attachTime = std::move(value); }
48 inline void SetAttachTime(const char* value) { m_attachTimeHasBeenSet = true; m_attachTime.assign(value); }
49 inline AwsEc2VolumeAttachment& WithAttachTime(const Aws::String& value) { SetAttachTime(value); return *this;}
50 inline AwsEc2VolumeAttachment& WithAttachTime(Aws::String&& value) { SetAttachTime(std::move(value)); return *this;}
51 inline AwsEc2VolumeAttachment& WithAttachTime(const char* value) { SetAttachTime(value); return *this;}
53
55
58 inline bool GetDeleteOnTermination() const{ return m_deleteOnTermination; }
59 inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; }
60 inline void SetDeleteOnTermination(bool value) { m_deleteOnTerminationHasBeenSet = true; m_deleteOnTermination = value; }
61 inline AwsEc2VolumeAttachment& WithDeleteOnTermination(bool value) { SetDeleteOnTermination(value); return *this;}
63
65
68 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
69 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
70 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
71 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
72 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
73 inline AwsEc2VolumeAttachment& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
74 inline AwsEc2VolumeAttachment& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
75 inline AwsEc2VolumeAttachment& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
77
79
85 inline const Aws::String& GetStatus() const{ return m_status; }
86 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
87 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
88 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
89 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
90 inline AwsEc2VolumeAttachment& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
91 inline AwsEc2VolumeAttachment& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
92 inline AwsEc2VolumeAttachment& WithStatus(const char* value) { SetStatus(value); return *this;}
94 private:
95
96 Aws::String m_attachTime;
97 bool m_attachTimeHasBeenSet = false;
98
99 bool m_deleteOnTermination;
100 bool m_deleteOnTerminationHasBeenSet = false;
101
102 Aws::String m_instanceId;
103 bool m_instanceIdHasBeenSet = false;
104
105 Aws::String m_status;
106 bool m_statusHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace SecurityHub
111} // namespace Aws
AWS_SECURITYHUB_API AwsEc2VolumeAttachment(Aws::Utils::Json::JsonView jsonValue)
AwsEc2VolumeAttachment & WithInstanceId(const char *value)
AWS_SECURITYHUB_API AwsEc2VolumeAttachment & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsEc2VolumeAttachment & WithAttachTime(const Aws::String &value)
AwsEc2VolumeAttachment & WithStatus(Aws::String &&value)
AwsEc2VolumeAttachment & WithStatus(const Aws::String &value)
AwsEc2VolumeAttachment & WithAttachTime(Aws::String &&value)
AwsEc2VolumeAttachment & WithDeleteOnTermination(bool value)
AwsEc2VolumeAttachment & WithAttachTime(const char *value)
AwsEc2VolumeAttachment & WithInstanceId(const Aws::String &value)
AwsEc2VolumeAttachment & WithInstanceId(Aws::String &&value)
AwsEc2VolumeAttachment & WithStatus(const char *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