AWS SDK for C++  1.9.71
AWS SDK for C++
PrefixListId.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 
47  inline const Aws::String& GetDescription() const{ return m_description; }
48 
54  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
55 
61  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
62 
68  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
69 
75  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
76 
82  inline PrefixListId& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
83 
89  inline PrefixListId& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
90 
96  inline PrefixListId& WithDescription(const char* value) { SetDescription(value); return *this;}
97 
98 
102  inline const Aws::String& GetPrefixListId() const{ return m_prefixListId; }
103 
107  inline bool PrefixListIdHasBeenSet() const { return m_prefixListIdHasBeenSet; }
108 
112  inline void SetPrefixListId(const Aws::String& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = value; }
113 
117  inline void SetPrefixListId(Aws::String&& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = std::move(value); }
118 
122  inline void SetPrefixListId(const char* value) { m_prefixListIdHasBeenSet = true; m_prefixListId.assign(value); }
123 
127  inline PrefixListId& WithPrefixListId(const Aws::String& value) { SetPrefixListId(value); return *this;}
128 
132  inline PrefixListId& WithPrefixListId(Aws::String&& value) { SetPrefixListId(std::move(value)); return *this;}
133 
137  inline PrefixListId& WithPrefixListId(const char* value) { SetPrefixListId(value); return *this;}
138 
139  private:
140 
141  Aws::String m_description;
142  bool m_descriptionHasBeenSet;
143 
144  Aws::String m_prefixListId;
145  bool m_prefixListIdHasBeenSet;
146  };
147 
148 } // namespace Model
149 } // namespace EC2
150 } // namespace Aws
Aws::EC2::Model::PrefixListId::operator=
PrefixListId & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::PrefixListId::WithDescription
PrefixListId & WithDescription(const char *value)
Definition: PrefixListId.h:96
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::PrefixListId::SetPrefixListId
void SetPrefixListId(const Aws::String &value)
Definition: PrefixListId.h:112
AWSStreamFwd.h
Aws::EC2::Model::PrefixListId
Definition: PrefixListId.h:32
Aws::EC2::Model::PrefixListId::GetDescription
const Aws::String & GetDescription() const
Definition: PrefixListId.h:47
Aws::EC2::Model::PrefixListId::SetDescription
void SetDescription(const Aws::String &value)
Definition: PrefixListId.h:61
Aws::EC2::Model::PrefixListId::WithPrefixListId
PrefixListId & WithPrefixListId(Aws::String &&value)
Definition: PrefixListId.h:132
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::PrefixListId::WithDescription
PrefixListId & WithDescription(const Aws::String &value)
Definition: PrefixListId.h:82
Aws::EC2::Model::PrefixListId::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: PrefixListId.h:54
Aws::EC2::Model::PrefixListId::PrefixListId
PrefixListId()
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::PrefixListId::GetPrefixListId
const Aws::String & GetPrefixListId() const
Definition: PrefixListId.h:102
Aws::EC2::Model::PrefixListId::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::PrefixListId::PrefixListId
PrefixListId(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSString.h
Aws::EC2::Model::PrefixListId::WithPrefixListId
PrefixListId & WithPrefixListId(const Aws::String &value)
Definition: PrefixListId.h:127
Aws::EC2::Model::PrefixListId::PrefixListIdHasBeenSet
bool PrefixListIdHasBeenSet() const
Definition: PrefixListId.h:107
Aws::EC2::Model::PrefixListId::SetDescription
void SetDescription(Aws::String &&value)
Definition: PrefixListId.h:68
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::PrefixListId::SetDescription
void SetDescription(const char *value)
Definition: PrefixListId.h:75
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::PrefixListId::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::PrefixListId::WithDescription
PrefixListId & WithDescription(Aws::String &&value)
Definition: PrefixListId.h:89
Aws::EC2::Model::PrefixListId::SetPrefixListId
void SetPrefixListId(const char *value)
Definition: PrefixListId.h:122
EC2_EXPORTS.h
Aws::EC2::Model::PrefixListId::SetPrefixListId
void SetPrefixListId(Aws::String &&value)
Definition: PrefixListId.h:117
Aws::EC2::Model::PrefixListId::WithPrefixListId
PrefixListId & WithPrefixListId(const char *value)
Definition: PrefixListId.h:137