AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PrivateIpAddressSpecification.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2 {
20namespace Model {
21
29 public:
30 AWS_EC2_API PrivateIpAddressSpecification() = default;
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
42 inline bool GetPrimary() const { return m_primary; }
43 inline bool PrimaryHasBeenSet() const { return m_primaryHasBeenSet; }
44 inline void SetPrimary(bool value) {
45 m_primaryHasBeenSet = true;
46 m_primary = value;
47 }
49 SetPrimary(value);
50 return *this;
51 }
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) {
62 m_privateIpAddressHasBeenSet = true;
63 m_privateIpAddress = std::forward<PrivateIpAddressT>(value);
64 }
65 template <typename PrivateIpAddressT = Aws::String>
67 SetPrivateIpAddress(std::forward<PrivateIpAddressT>(value));
68 return *this;
69 }
71 private:
72 bool m_primary{false};
73
74 Aws::String m_privateIpAddress;
75 bool m_primaryHasBeenSet = false;
76 bool m_privateIpAddressHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace EC2
81} // namespace Aws
AWS_EC2_API PrivateIpAddressSpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API PrivateIpAddressSpecification(const Aws::Utils::Xml::XmlNode &xmlNode)
PrivateIpAddressSpecification & WithPrimary(bool value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
PrivateIpAddressSpecification & WithPrivateIpAddress(PrivateIpAddressT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream