AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceSpecification.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_EC2_API InstanceSpecification();
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
49 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
50 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
51 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
52 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
53 inline InstanceSpecification& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
54 inline InstanceSpecification& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
55 inline InstanceSpecification& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
57
59
62 inline bool GetExcludeBootVolume() const{ return m_excludeBootVolume; }
63 inline bool ExcludeBootVolumeHasBeenSet() const { return m_excludeBootVolumeHasBeenSet; }
64 inline void SetExcludeBootVolume(bool value) { m_excludeBootVolumeHasBeenSet = true; m_excludeBootVolume = value; }
65 inline InstanceSpecification& WithExcludeBootVolume(bool value) { SetExcludeBootVolume(value); return *this;}
67
69
75 inline const Aws::Vector<Aws::String>& GetExcludeDataVolumeIds() const{ return m_excludeDataVolumeIds; }
76 inline bool ExcludeDataVolumeIdsHasBeenSet() const { return m_excludeDataVolumeIdsHasBeenSet; }
77 inline void SetExcludeDataVolumeIds(const Aws::Vector<Aws::String>& value) { m_excludeDataVolumeIdsHasBeenSet = true; m_excludeDataVolumeIds = value; }
78 inline void SetExcludeDataVolumeIds(Aws::Vector<Aws::String>&& value) { m_excludeDataVolumeIdsHasBeenSet = true; m_excludeDataVolumeIds = std::move(value); }
81 inline InstanceSpecification& AddExcludeDataVolumeIds(const Aws::String& value) { m_excludeDataVolumeIdsHasBeenSet = true; m_excludeDataVolumeIds.push_back(value); return *this; }
82 inline InstanceSpecification& AddExcludeDataVolumeIds(Aws::String&& value) { m_excludeDataVolumeIdsHasBeenSet = true; m_excludeDataVolumeIds.push_back(std::move(value)); return *this; }
83 inline InstanceSpecification& AddExcludeDataVolumeIds(const char* value) { m_excludeDataVolumeIdsHasBeenSet = true; m_excludeDataVolumeIds.push_back(value); return *this; }
85 private:
86
87 Aws::String m_instanceId;
88 bool m_instanceIdHasBeenSet = false;
89
90 bool m_excludeBootVolume;
91 bool m_excludeBootVolumeHasBeenSet = false;
92
93 Aws::Vector<Aws::String> m_excludeDataVolumeIds;
94 bool m_excludeDataVolumeIdsHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace EC2
99} // namespace Aws
AWS_EC2_API InstanceSpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceSpecification & AddExcludeDataVolumeIds(Aws::String &&value)
void SetInstanceId(const Aws::String &value)
InstanceSpecification & WithInstanceId(const Aws::String &value)
void SetExcludeDataVolumeIds(Aws::Vector< Aws::String > &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
InstanceSpecification & AddExcludeDataVolumeIds(const Aws::String &value)
const Aws::Vector< Aws::String > & GetExcludeDataVolumeIds() const
AWS_EC2_API InstanceSpecification(const Aws::Utils::Xml::XmlNode &xmlNode)
InstanceSpecification & WithExcludeDataVolumeIds(const Aws::Vector< Aws::String > &value)
InstanceSpecification & WithInstanceId(Aws::String &&value)
InstanceSpecification & WithInstanceId(const char *value)
InstanceSpecification & AddExcludeDataVolumeIds(const char *value)
InstanceSpecification & WithExcludeBootVolume(bool value)
void SetExcludeDataVolumeIds(const Aws::Vector< Aws::String > &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
InstanceSpecification & WithExcludeDataVolumeIds(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream