AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
IpamPoolSourceResourceRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/IpamPoolSourceResourceType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
34 {
35 public:
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
49 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
50 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
51 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
52 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
53 inline IpamPoolSourceResourceRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
54 inline IpamPoolSourceResourceRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
55 inline IpamPoolSourceResourceRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
57
59
62 inline const IpamPoolSourceResourceType& GetResourceType() const{ return m_resourceType; }
63 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
64 inline void SetResourceType(const IpamPoolSourceResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
65 inline void SetResourceType(IpamPoolSourceResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
69
71
74 inline const Aws::String& GetResourceRegion() const{ return m_resourceRegion; }
75 inline bool ResourceRegionHasBeenSet() const { return m_resourceRegionHasBeenSet; }
76 inline void SetResourceRegion(const Aws::String& value) { m_resourceRegionHasBeenSet = true; m_resourceRegion = value; }
77 inline void SetResourceRegion(Aws::String&& value) { m_resourceRegionHasBeenSet = true; m_resourceRegion = std::move(value); }
78 inline void SetResourceRegion(const char* value) { m_resourceRegionHasBeenSet = true; m_resourceRegion.assign(value); }
80 inline IpamPoolSourceResourceRequest& WithResourceRegion(Aws::String&& value) { SetResourceRegion(std::move(value)); return *this;}
81 inline IpamPoolSourceResourceRequest& WithResourceRegion(const char* value) { SetResourceRegion(value); return *this;}
83
85
88 inline const Aws::String& GetResourceOwner() const{ return m_resourceOwner; }
89 inline bool ResourceOwnerHasBeenSet() const { return m_resourceOwnerHasBeenSet; }
90 inline void SetResourceOwner(const Aws::String& value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner = value; }
91 inline void SetResourceOwner(Aws::String&& value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner = std::move(value); }
92 inline void SetResourceOwner(const char* value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner.assign(value); }
93 inline IpamPoolSourceResourceRequest& WithResourceOwner(const Aws::String& value) { SetResourceOwner(value); return *this;}
94 inline IpamPoolSourceResourceRequest& WithResourceOwner(Aws::String&& value) { SetResourceOwner(std::move(value)); return *this;}
95 inline IpamPoolSourceResourceRequest& WithResourceOwner(const char* value) { SetResourceOwner(value); return *this;}
97 private:
98
99 Aws::String m_resourceId;
100 bool m_resourceIdHasBeenSet = false;
101
102 IpamPoolSourceResourceType m_resourceType;
103 bool m_resourceTypeHasBeenSet = false;
104
105 Aws::String m_resourceRegion;
106 bool m_resourceRegionHasBeenSet = false;
107
108 Aws::String m_resourceOwner;
109 bool m_resourceOwnerHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace EC2
114} // namespace Aws
IpamPoolSourceResourceRequest & WithResourceRegion(Aws::String &&value)
IpamPoolSourceResourceRequest & WithResourceId(const char *value)
IpamPoolSourceResourceRequest & WithResourceId(Aws::String &&value)
IpamPoolSourceResourceRequest & WithResourceType(IpamPoolSourceResourceType &&value)
IpamPoolSourceResourceRequest & WithResourceRegion(const char *value)
const IpamPoolSourceResourceType & GetResourceType() const
IpamPoolSourceResourceRequest & WithResourceOwner(const char *value)
IpamPoolSourceResourceRequest & WithResourceOwner(const Aws::String &value)
void SetResourceType(const IpamPoolSourceResourceType &value)
AWS_EC2_API IpamPoolSourceResourceRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
IpamPoolSourceResourceRequest & WithResourceOwner(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetResourceType(IpamPoolSourceResourceType &&value)
IpamPoolSourceResourceRequest & WithResourceType(const IpamPoolSourceResourceType &value)
IpamPoolSourceResourceRequest & WithResourceId(const Aws::String &value)
IpamPoolSourceResourceRequest & WithResourceRegion(const Aws::String &value)
AWS_EC2_API IpamPoolSourceResourceRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream