AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ScheduledInstancesPrivateIpAddressConfig.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 <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2
22{
23namespace Model
24{
25
33 {
34 public:
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
48 inline bool GetPrimary() const { return m_primary; }
49 inline bool PrimaryHasBeenSet() const { return m_primaryHasBeenSet; }
50 inline void SetPrimary(bool value) { m_primaryHasBeenSet = true; m_primary = value; }
51 inline ScheduledInstancesPrivateIpAddressConfig& WithPrimary(bool value) { SetPrimary(value); return *this;}
53
55
58 inline const Aws::String& GetPrivateIpAddress() const { return m_privateIpAddress; }
59 inline bool PrivateIpAddressHasBeenSet() const { return m_privateIpAddressHasBeenSet; }
60 template<typename PrivateIpAddressT = Aws::String>
61 void SetPrivateIpAddress(PrivateIpAddressT&& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = std::forward<PrivateIpAddressT>(value); }
62 template<typename PrivateIpAddressT = Aws::String>
63 ScheduledInstancesPrivateIpAddressConfig& WithPrivateIpAddress(PrivateIpAddressT&& value) { SetPrivateIpAddress(std::forward<PrivateIpAddressT>(value)); return *this;}
65 private:
66
67 bool m_primary{false};
68 bool m_primaryHasBeenSet = false;
69
70 Aws::String m_privateIpAddress;
71 bool m_privateIpAddressHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace EC2
76} // namespace Aws
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API ScheduledInstancesPrivateIpAddressConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API ScheduledInstancesPrivateIpAddressConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ScheduledInstancesPrivateIpAddressConfig & WithPrimary(bool value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ScheduledInstancesPrivateIpAddressConfig & WithPrivateIpAddress(PrivateIpAddressT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream