AWS SDK for C++  1.9.66
AWS SDK for C++
AddPrefixListEntry.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 
32  {
33  public:
37 
38  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39  void OutputToStream(Aws::OStream& oStream, const char* location) const;
40 
41 
45  inline const Aws::String& GetCidr() const{ return m_cidr; }
46 
50  inline bool CidrHasBeenSet() const { return m_cidrHasBeenSet; }
51 
55  inline void SetCidr(const Aws::String& value) { m_cidrHasBeenSet = true; m_cidr = value; }
56 
60  inline void SetCidr(Aws::String&& value) { m_cidrHasBeenSet = true; m_cidr = std::move(value); }
61 
65  inline void SetCidr(const char* value) { m_cidrHasBeenSet = true; m_cidr.assign(value); }
66 
70  inline AddPrefixListEntry& WithCidr(const Aws::String& value) { SetCidr(value); return *this;}
71 
75  inline AddPrefixListEntry& WithCidr(Aws::String&& value) { SetCidr(std::move(value)); return *this;}
76 
80  inline AddPrefixListEntry& WithCidr(const char* value) { SetCidr(value); return *this;}
81 
82 
87  inline const Aws::String& GetDescription() const{ return m_description; }
88 
93  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
94 
99  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
100 
105  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
106 
111  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
112 
117  inline AddPrefixListEntry& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
118 
123  inline AddPrefixListEntry& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
124 
129  inline AddPrefixListEntry& WithDescription(const char* value) { SetDescription(value); return *this;}
130 
131  private:
132 
133  Aws::String m_cidr;
134  bool m_cidrHasBeenSet;
135 
136  Aws::String m_description;
137  bool m_descriptionHasBeenSet;
138  };
139 
140 } // namespace Model
141 } // namespace EC2
142 } // namespace Aws
Aws::EC2::Model::AddPrefixListEntry::SetDescription
void SetDescription(const char *value)
Definition: AddPrefixListEntry.h:111
Aws::EC2::Model::AddPrefixListEntry::SetCidr
void SetCidr(const Aws::String &value)
Definition: AddPrefixListEntry.h:55
Aws::EC2::Model::AddPrefixListEntry::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: AddPrefixListEntry.h:93
Aws::EC2::Model::AddPrefixListEntry::WithCidr
AddPrefixListEntry & WithCidr(const char *value)
Definition: AddPrefixListEntry.h:80
Aws::EC2::Model::AddPrefixListEntry::GetDescription
const Aws::String & GetDescription() const
Definition: AddPrefixListEntry.h:87
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::AddPrefixListEntry::SetDescription
void SetDescription(const Aws::String &value)
Definition: AddPrefixListEntry.h:99
AWSStreamFwd.h
Aws::EC2::Model::AddPrefixListEntry::GetCidr
const Aws::String & GetCidr() const
Definition: AddPrefixListEntry.h:45
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::AddPrefixListEntry::WithDescription
AddPrefixListEntry & WithDescription(const Aws::String &value)
Definition: AddPrefixListEntry.h:117
Aws::EC2::Model::AddPrefixListEntry::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::AddPrefixListEntry::SetCidr
void SetCidr(Aws::String &&value)
Definition: AddPrefixListEntry.h:60
Aws::EC2::Model::AddPrefixListEntry::WithCidr
AddPrefixListEntry & WithCidr(Aws::String &&value)
Definition: AddPrefixListEntry.h:75
AWSString.h
Aws::EC2::Model::AddPrefixListEntry::AddPrefixListEntry
AddPrefixListEntry(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::AddPrefixListEntry::CidrHasBeenSet
bool CidrHasBeenSet() const
Definition: AddPrefixListEntry.h:50
Aws::EC2::Model::AddPrefixListEntry::WithCidr
AddPrefixListEntry & WithCidr(const Aws::String &value)
Definition: AddPrefixListEntry.h:70
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::AddPrefixListEntry::WithDescription
AddPrefixListEntry & WithDescription(Aws::String &&value)
Definition: AddPrefixListEntry.h:123
Aws::EC2::Model::AddPrefixListEntry::WithDescription
AddPrefixListEntry & WithDescription(const char *value)
Definition: AddPrefixListEntry.h:129
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
EC2_EXPORTS.h
Aws::EC2::Model::AddPrefixListEntry::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::AddPrefixListEntry::AddPrefixListEntry
AddPrefixListEntry()
Aws::EC2::Model::AddPrefixListEntry::SetDescription
void SetDescription(Aws::String &&value)
Definition: AddPrefixListEntry.h:105
Aws::EC2::Model::AddPrefixListEntry::operator=
AddPrefixListEntry & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::AddPrefixListEntry
Definition: AddPrefixListEntry.h:32
Aws::EC2::Model::AddPrefixListEntry::SetCidr
void SetCidr(const char *value)
Definition: AddPrefixListEntry.h:65