AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
PrefixListAssociation.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
29 public:
30 AWS_EC2_API PrefixListAssociation() = default;
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::String& GetResourceId() const { return m_resourceId; }
42 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
43 template <typename ResourceIdT = Aws::String>
44 void SetResourceId(ResourceIdT&& value) {
45 m_resourceIdHasBeenSet = true;
46 m_resourceId = std::forward<ResourceIdT>(value);
47 }
48 template <typename ResourceIdT = Aws::String>
49 PrefixListAssociation& WithResourceId(ResourceIdT&& value) {
50 SetResourceId(std::forward<ResourceIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetResourceOwner() const { return m_resourceOwner; }
60 inline bool ResourceOwnerHasBeenSet() const { return m_resourceOwnerHasBeenSet; }
61 template <typename ResourceOwnerT = Aws::String>
62 void SetResourceOwner(ResourceOwnerT&& value) {
63 m_resourceOwnerHasBeenSet = true;
64 m_resourceOwner = std::forward<ResourceOwnerT>(value);
65 }
66 template <typename ResourceOwnerT = Aws::String>
67 PrefixListAssociation& WithResourceOwner(ResourceOwnerT&& value) {
68 SetResourceOwner(std::forward<ResourceOwnerT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_resourceId;
74
75 Aws::String m_resourceOwner;
76 bool m_resourceIdHasBeenSet = false;
77 bool m_resourceOwnerHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace EC2
82} // namespace Aws
const Aws::String & GetResourceOwner() const
AWS_EC2_API PrefixListAssociation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetResourceOwner(ResourceOwnerT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
PrefixListAssociation & WithResourceOwner(ResourceOwnerT &&value)
PrefixListAssociation & WithResourceId(ResourceIdT &&value)
AWS_EC2_API PrefixListAssociation(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_EC2_API PrefixListAssociation()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream