AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PrefixListId.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
28 public:
29 AWS_EC2_API PrefixListId() = default;
30 AWS_EC2_API PrefixListId(const Aws::Utils::Xml::XmlNode& xmlNode);
31 AWS_EC2_API PrefixListId& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
34 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
35
37
42 inline const Aws::String& GetDescription() const { return m_description; }
43 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
44 template <typename DescriptionT = Aws::String>
45 void SetDescription(DescriptionT&& value) {
46 m_descriptionHasBeenSet = true;
47 m_description = std::forward<DescriptionT>(value);
48 }
49 template <typename DescriptionT = Aws::String>
50 PrefixListId& WithDescription(DescriptionT&& value) {
51 SetDescription(std::forward<DescriptionT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetPrefixListId() const { return m_prefixListId; }
61 inline bool PrefixListIdHasBeenSet() const { return m_prefixListIdHasBeenSet; }
62 template <typename PrefixListIdT = Aws::String>
63 void SetPrefixListId(PrefixListIdT&& value) {
64 m_prefixListIdHasBeenSet = true;
65 m_prefixListId = std::forward<PrefixListIdT>(value);
66 }
67 template <typename PrefixListIdT = Aws::String>
68 PrefixListId& WithPrefixListId(PrefixListIdT&& value) {
69 SetPrefixListId(std::forward<PrefixListIdT>(value));
70 return *this;
71 }
73 private:
74 Aws::String m_description;
75
76 Aws::String m_prefixListId;
77 bool m_descriptionHasBeenSet = false;
78 bool m_prefixListIdHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace EC2
83} // namespace Aws
void SetDescription(DescriptionT &&value)
AWS_EC2_API PrefixListId()=default
AWS_EC2_API PrefixListId & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetDescription() const
void SetPrefixListId(PrefixListIdT &&value)
PrefixListId & WithPrefixListId(PrefixListIdT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetPrefixListId() const
AWS_EC2_API PrefixListId(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
PrefixListId & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream