AWS SDK for C++

AWS SDK for C++ Version 1.11.782

Loading...
Searching...
No Matches
GetEnabledIpamPolicyResponse.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/IpamPolicyManagedBy.h>
11#include <aws/ec2/model/ResponseMetadata.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Xml {
21class XmlDocument;
22} // namespace Xml
23} // namespace Utils
24namespace EC2 {
25namespace Model {
27 public:
28 AWS_EC2_API GetEnabledIpamPolicyResponse() = default;
31
33
36 inline bool GetIpamPolicyEnabled() const { return m_ipamPolicyEnabled; }
37 inline void SetIpamPolicyEnabled(bool value) {
38 m_ipamPolicyEnabledHasBeenSet = true;
39 m_ipamPolicyEnabled = value;
40 }
43 return *this;
44 }
46
48
51 inline const Aws::String& GetIpamPolicyId() const { return m_ipamPolicyId; }
52 template <typename IpamPolicyIdT = Aws::String>
53 void SetIpamPolicyId(IpamPolicyIdT&& value) {
54 m_ipamPolicyIdHasBeenSet = true;
55 m_ipamPolicyId = std::forward<IpamPolicyIdT>(value);
56 }
57 template <typename IpamPolicyIdT = Aws::String>
59 SetIpamPolicyId(std::forward<IpamPolicyIdT>(value));
60 return *this;
61 }
63
65
68 inline IpamPolicyManagedBy GetManagedBy() const { return m_managedBy; }
69 inline void SetManagedBy(IpamPolicyManagedBy value) {
70 m_managedByHasBeenSet = true;
71 m_managedBy = value;
72 }
74 SetManagedBy(value);
75 return *this;
76 }
78
80
81 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
82 template <typename ResponseMetadataT = ResponseMetadata>
83 void SetResponseMetadata(ResponseMetadataT&& value) {
84 m_responseMetadataHasBeenSet = true;
85 m_responseMetadata = std::forward<ResponseMetadataT>(value);
86 }
87 template <typename ResponseMetadataT = ResponseMetadata>
89 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
90 return *this;
91 }
93 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
94
95 private:
96 bool m_ipamPolicyEnabled{false};
97
98 Aws::String m_ipamPolicyId;
99
101
102 ResponseMetadata m_responseMetadata;
103 Aws::Http::HttpResponseCode m_HttpResponseCode;
104 bool m_ipamPolicyEnabledHasBeenSet = false;
105 bool m_ipamPolicyIdHasBeenSet = false;
106 bool m_managedByHasBeenSet = false;
107 bool m_responseMetadataHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace EC2
112} // namespace Aws
AWS_EC2_API GetEnabledIpamPolicyResponse()=default
AWS_EC2_API GetEnabledIpamPolicyResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
GetEnabledIpamPolicyResponse & WithManagedBy(IpamPolicyManagedBy value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetEnabledIpamPolicyResponse & WithResponseMetadata(ResponseMetadataT &&value)
AWS_EC2_API GetEnabledIpamPolicyResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
GetEnabledIpamPolicyResponse & WithIpamPolicyId(IpamPolicyIdT &&value)
GetEnabledIpamPolicyResponse & WithIpamPolicyEnabled(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument