AWS SDK for C++  1.9.103
AWS SDK for C++
Ipv4PrefixSpecificationRequest.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 
49  inline const Aws::String& GetIpv4Prefix() const{ return m_ipv4Prefix; }
50 
57  inline bool Ipv4PrefixHasBeenSet() const { return m_ipv4PrefixHasBeenSet; }
58 
65  inline void SetIpv4Prefix(const Aws::String& value) { m_ipv4PrefixHasBeenSet = true; m_ipv4Prefix = value; }
66 
73  inline void SetIpv4Prefix(Aws::String&& value) { m_ipv4PrefixHasBeenSet = true; m_ipv4Prefix = std::move(value); }
74 
81  inline void SetIpv4Prefix(const char* value) { m_ipv4PrefixHasBeenSet = true; m_ipv4Prefix.assign(value); }
82 
89  inline Ipv4PrefixSpecificationRequest& WithIpv4Prefix(const Aws::String& value) { SetIpv4Prefix(value); return *this;}
90 
97  inline Ipv4PrefixSpecificationRequest& WithIpv4Prefix(Aws::String&& value) { SetIpv4Prefix(std::move(value)); return *this;}
98 
105  inline Ipv4PrefixSpecificationRequest& WithIpv4Prefix(const char* value) { SetIpv4Prefix(value); return *this;}
106 
107  private:
108 
109  Aws::String m_ipv4Prefix;
110  bool m_ipv4PrefixHasBeenSet;
111  };
112 
113 } // namespace Model
114 } // namespace EC2
115 } // namespace Aws
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
AWSStreamFwd.h
Aws::EC2::Model::Ipv4PrefixSpecificationRequest::operator=
Ipv4PrefixSpecificationRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::Ipv4PrefixSpecificationRequest::SetIpv4Prefix
void SetIpv4Prefix(const Aws::String &value)
Definition: Ipv4PrefixSpecificationRequest.h:65
Aws::EC2::Model::Ipv4PrefixSpecificationRequest::SetIpv4Prefix
void SetIpv4Prefix(const char *value)
Definition: Ipv4PrefixSpecificationRequest.h:81
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::Ipv4PrefixSpecificationRequest::GetIpv4Prefix
const Aws::String & GetIpv4Prefix() const
Definition: Ipv4PrefixSpecificationRequest.h:49
Aws::EC2::Model::Ipv4PrefixSpecificationRequest::WithIpv4Prefix
Ipv4PrefixSpecificationRequest & WithIpv4Prefix(Aws::String &&value)
Definition: Ipv4PrefixSpecificationRequest.h:97
Aws::EC2::Model::Ipv4PrefixSpecificationRequest::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::Ipv4PrefixSpecificationRequest
Definition: Ipv4PrefixSpecificationRequest.h:33
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::Ipv4PrefixSpecificationRequest::Ipv4PrefixHasBeenSet
bool Ipv4PrefixHasBeenSet() const
Definition: Ipv4PrefixSpecificationRequest.h:57
Aws::EC2::Model::Ipv4PrefixSpecificationRequest::SetIpv4Prefix
void SetIpv4Prefix(Aws::String &&value)
Definition: Ipv4PrefixSpecificationRequest.h:73
AWSString.h
Aws::EC2::Model::Ipv4PrefixSpecificationRequest::Ipv4PrefixSpecificationRequest
Ipv4PrefixSpecificationRequest()
Aws::EC2::Model::Ipv4PrefixSpecificationRequest::WithIpv4Prefix
Ipv4PrefixSpecificationRequest & WithIpv4Prefix(const char *value)
Definition: Ipv4PrefixSpecificationRequest.h:105
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::Ipv4PrefixSpecificationRequest::WithIpv4Prefix
Ipv4PrefixSpecificationRequest & WithIpv4Prefix(const Aws::String &value)
Definition: Ipv4PrefixSpecificationRequest.h:89
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::Ipv4PrefixSpecificationRequest::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
EC2_EXPORTS.h
Aws::EC2::Model::Ipv4PrefixSpecificationRequest::Ipv4PrefixSpecificationRequest
Ipv4PrefixSpecificationRequest(const Aws::Utils::Xml::XmlNode &xmlNode)