AWS SDK for C++  1.9.71
AWS SDK for C++
PrivateIpAddressSpecification.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 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
47  inline bool GetPrimary() const{ return m_primary; }
48 
53  inline bool PrimaryHasBeenSet() const { return m_primaryHasBeenSet; }
54 
59  inline void SetPrimary(bool value) { m_primaryHasBeenSet = true; m_primary = value; }
60 
65  inline PrivateIpAddressSpecification& WithPrimary(bool value) { SetPrimary(value); return *this;}
66 
67 
71  inline const Aws::String& GetPrivateIpAddress() const{ return m_privateIpAddress; }
72 
76  inline bool PrivateIpAddressHasBeenSet() const { return m_privateIpAddressHasBeenSet; }
77 
81  inline void SetPrivateIpAddress(const Aws::String& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = value; }
82 
86  inline void SetPrivateIpAddress(Aws::String&& value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress = std::move(value); }
87 
91  inline void SetPrivateIpAddress(const char* value) { m_privateIpAddressHasBeenSet = true; m_privateIpAddress.assign(value); }
92 
96  inline PrivateIpAddressSpecification& WithPrivateIpAddress(const Aws::String& value) { SetPrivateIpAddress(value); return *this;}
97 
101  inline PrivateIpAddressSpecification& WithPrivateIpAddress(Aws::String&& value) { SetPrivateIpAddress(std::move(value)); return *this;}
102 
106  inline PrivateIpAddressSpecification& WithPrivateIpAddress(const char* value) { SetPrivateIpAddress(value); return *this;}
107 
108  private:
109 
110  bool m_primary;
111  bool m_primaryHasBeenSet;
112 
113  Aws::String m_privateIpAddress;
114  bool m_privateIpAddressHasBeenSet;
115  };
116 
117 } // namespace Model
118 } // namespace EC2
119 } // namespace Aws
Aws::EC2::Model::PrivateIpAddressSpecification::SetPrivateIpAddress
void SetPrivateIpAddress(Aws::String &&value)
Definition: PrivateIpAddressSpecification.h:86
Aws::EC2::Model::PrivateIpAddressSpecification
Definition: PrivateIpAddressSpecification.h:33
Aws::EC2::Model::PrivateIpAddressSpecification::PrivateIpAddressSpecification
PrivateIpAddressSpecification(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::PrivateIpAddressSpecification::operator=
PrivateIpAddressSpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
AWSStreamFwd.h
Aws::EC2::Model::PrivateIpAddressSpecification::WithPrimary
PrivateIpAddressSpecification & WithPrimary(bool value)
Definition: PrivateIpAddressSpecification.h:65
Aws::EC2::Model::PrivateIpAddressSpecification::GetPrivateIpAddress
const Aws::String & GetPrivateIpAddress() const
Definition: PrivateIpAddressSpecification.h:71
Aws::EC2::Model::PrivateIpAddressSpecification::PrivateIpAddressHasBeenSet
bool PrivateIpAddressHasBeenSet() const
Definition: PrivateIpAddressSpecification.h:76
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::PrivateIpAddressSpecification::WithPrivateIpAddress
PrivateIpAddressSpecification & WithPrivateIpAddress(Aws::String &&value)
Definition: PrivateIpAddressSpecification.h:101
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::PrivateIpAddressSpecification::GetPrimary
bool GetPrimary() const
Definition: PrivateIpAddressSpecification.h:47
Aws::EC2::Model::PrivateIpAddressSpecification::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
AWSString.h
Aws::EC2::Model::PrivateIpAddressSpecification::SetPrivateIpAddress
void SetPrivateIpAddress(const char *value)
Definition: PrivateIpAddressSpecification.h:91
Aws::EC2::Model::PrivateIpAddressSpecification::WithPrivateIpAddress
PrivateIpAddressSpecification & WithPrivateIpAddress(const Aws::String &value)
Definition: PrivateIpAddressSpecification.h:96
Aws::EC2::Model::PrivateIpAddressSpecification::SetPrimary
void SetPrimary(bool value)
Definition: PrivateIpAddressSpecification.h:59
Aws::EC2::Model::PrivateIpAddressSpecification::PrimaryHasBeenSet
bool PrimaryHasBeenSet() const
Definition: PrivateIpAddressSpecification.h:53
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::PrivateIpAddressSpecification::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::PrivateIpAddressSpecification::SetPrivateIpAddress
void SetPrivateIpAddress(const Aws::String &value)
Definition: PrivateIpAddressSpecification.h:81
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::PrivateIpAddressSpecification::WithPrivateIpAddress
PrivateIpAddressSpecification & WithPrivateIpAddress(const char *value)
Definition: PrivateIpAddressSpecification.h:106
EC2_EXPORTS.h
Aws::EC2::Model::PrivateIpAddressSpecification::PrivateIpAddressSpecification
PrivateIpAddressSpecification()