AWS SDK for C++  1.9.129
AWS SDK for C++
NetworkInterfaceAttachmentChanges.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace EC2
22 {
23 namespace Model
24 {
25 
32  {
33  public:
37 
38  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39  void OutputToStream(Aws::OStream& oStream, const char* location) const;
40 
41 
45  inline const Aws::String& GetAttachmentId() const{ return m_attachmentId; }
46 
50  inline bool AttachmentIdHasBeenSet() const { return m_attachmentIdHasBeenSet; }
51 
55  inline void SetAttachmentId(const Aws::String& value) { m_attachmentIdHasBeenSet = true; m_attachmentId = value; }
56 
60  inline void SetAttachmentId(Aws::String&& value) { m_attachmentIdHasBeenSet = true; m_attachmentId = std::move(value); }
61 
65  inline void SetAttachmentId(const char* value) { m_attachmentIdHasBeenSet = true; m_attachmentId.assign(value); }
66 
70  inline NetworkInterfaceAttachmentChanges& WithAttachmentId(const Aws::String& value) { SetAttachmentId(value); return *this;}
71 
75  inline NetworkInterfaceAttachmentChanges& WithAttachmentId(Aws::String&& value) { SetAttachmentId(std::move(value)); return *this;}
76 
80  inline NetworkInterfaceAttachmentChanges& WithAttachmentId(const char* value) { SetAttachmentId(value); return *this;}
81 
82 
87  inline bool GetDeleteOnTermination() const{ return m_deleteOnTermination; }
88 
93  inline bool DeleteOnTerminationHasBeenSet() const { return m_deleteOnTerminationHasBeenSet; }
94 
99  inline void SetDeleteOnTermination(bool value) { m_deleteOnTerminationHasBeenSet = true; m_deleteOnTermination = value; }
100 
105  inline NetworkInterfaceAttachmentChanges& WithDeleteOnTermination(bool value) { SetDeleteOnTermination(value); return *this;}
106 
107  private:
108 
109  Aws::String m_attachmentId;
110  bool m_attachmentIdHasBeenSet;
111 
112  bool m_deleteOnTermination;
113  bool m_deleteOnTerminationHasBeenSet;
114  };
115 
116 } // namespace Model
117 } // namespace EC2
118 } // namespace Aws
Aws::EC2::Model::NetworkInterfaceAttachmentChanges::WithDeleteOnTermination
NetworkInterfaceAttachmentChanges & WithDeleteOnTermination(bool value)
Definition: NetworkInterfaceAttachmentChanges.h:105
Aws::EC2::Model::NetworkInterfaceAttachmentChanges::WithAttachmentId
NetworkInterfaceAttachmentChanges & WithAttachmentId(const Aws::String &value)
Definition: NetworkInterfaceAttachmentChanges.h:70
Aws::EC2::Model::NetworkInterfaceAttachmentChanges::SetAttachmentId
void SetAttachmentId(const char *value)
Definition: NetworkInterfaceAttachmentChanges.h:65
Aws::EC2::Model::NetworkInterfaceAttachmentChanges::NetworkInterfaceAttachmentChanges
NetworkInterfaceAttachmentChanges(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::NetworkInterfaceAttachmentChanges::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::NetworkInterfaceAttachmentChanges::GetDeleteOnTermination
bool GetDeleteOnTermination() const
Definition: NetworkInterfaceAttachmentChanges.h:87
AWSStreamFwd.h
Aws::EC2::Model::NetworkInterfaceAttachmentChanges::SetAttachmentId
void SetAttachmentId(const Aws::String &value)
Definition: NetworkInterfaceAttachmentChanges.h:55
Aws::EC2::Model::NetworkInterfaceAttachmentChanges::GetAttachmentId
const Aws::String & GetAttachmentId() const
Definition: NetworkInterfaceAttachmentChanges.h:45
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::NetworkInterfaceAttachmentChanges::NetworkInterfaceAttachmentChanges
NetworkInterfaceAttachmentChanges()
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::NetworkInterfaceAttachmentChanges
Definition: NetworkInterfaceAttachmentChanges.h:32
AWSString.h
Aws::EC2::Model::NetworkInterfaceAttachmentChanges::SetAttachmentId
void SetAttachmentId(Aws::String &&value)
Definition: NetworkInterfaceAttachmentChanges.h:60
Aws::EC2::Model::NetworkInterfaceAttachmentChanges::DeleteOnTerminationHasBeenSet
bool DeleteOnTerminationHasBeenSet() const
Definition: NetworkInterfaceAttachmentChanges.h:93
Aws::EC2::Model::NetworkInterfaceAttachmentChanges::SetDeleteOnTermination
void SetDeleteOnTermination(bool value)
Definition: NetworkInterfaceAttachmentChanges.h:99
Aws::EC2::Model::NetworkInterfaceAttachmentChanges::AttachmentIdHasBeenSet
bool AttachmentIdHasBeenSet() const
Definition: NetworkInterfaceAttachmentChanges.h:50
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::NetworkInterfaceAttachmentChanges::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::NetworkInterfaceAttachmentChanges::WithAttachmentId
NetworkInterfaceAttachmentChanges & WithAttachmentId(const char *value)
Definition: NetworkInterfaceAttachmentChanges.h:80
EC2_EXPORTS.h
Aws::EC2::Model::NetworkInterfaceAttachmentChanges::WithAttachmentId
NetworkInterfaceAttachmentChanges & WithAttachmentId(Aws::String &&value)
Definition: NetworkInterfaceAttachmentChanges.h:75
Aws::EC2::Model::NetworkInterfaceAttachmentChanges::operator=
NetworkInterfaceAttachmentChanges & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)