AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
GetEndpointPolicyResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sagemaker/SageMaker_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace SageMaker {
23namespace Model {
25 public:
26 AWS_SAGEMAKER_API GetEndpointPolicyResult() = default;
29
31
34 inline const Aws::String& GetEndpointName() const { return m_endpointName; }
35 template <typename EndpointNameT = Aws::String>
36 void SetEndpointName(EndpointNameT&& value) {
37 m_endpointNameHasBeenSet = true;
38 m_endpointName = std::forward<EndpointNameT>(value);
39 }
40 template <typename EndpointNameT = Aws::String>
41 GetEndpointPolicyResult& WithEndpointName(EndpointNameT&& value) {
42 SetEndpointName(std::forward<EndpointNameT>(value));
43 return *this;
44 }
46
48
51 inline const Aws::String& GetEndpointArn() const { return m_endpointArn; }
52 template <typename EndpointArnT = Aws::String>
53 void SetEndpointArn(EndpointArnT&& value) {
54 m_endpointArnHasBeenSet = true;
55 m_endpointArn = std::forward<EndpointArnT>(value);
56 }
57 template <typename EndpointArnT = Aws::String>
59 SetEndpointArn(std::forward<EndpointArnT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::String& GetResourcePolicy() const { return m_resourcePolicy; }
69 template <typename ResourcePolicyT = Aws::String>
70 void SetResourcePolicy(ResourcePolicyT&& value) {
71 m_resourcePolicyHasBeenSet = true;
72 m_resourcePolicy = std::forward<ResourcePolicyT>(value);
73 }
74 template <typename ResourcePolicyT = Aws::String>
75 GetEndpointPolicyResult& WithResourcePolicy(ResourcePolicyT&& value) {
76 SetResourcePolicy(std::forward<ResourcePolicyT>(value));
77 return *this;
78 }
80
82
83 inline const Aws::String& GetRequestId() const { return m_requestId; }
84 template <typename RequestIdT = Aws::String>
85 void SetRequestId(RequestIdT&& value) {
86 m_requestIdHasBeenSet = true;
87 m_requestId = std::forward<RequestIdT>(value);
88 }
89 template <typename RequestIdT = Aws::String>
91 SetRequestId(std::forward<RequestIdT>(value));
92 return *this;
93 }
95 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
96
97 private:
98 Aws::String m_endpointName;
99
100 Aws::String m_endpointArn;
101
102 Aws::String m_resourcePolicy;
103
104 Aws::String m_requestId;
105 Aws::Http::HttpResponseCode m_HttpResponseCode;
106 bool m_endpointNameHasBeenSet = false;
107 bool m_endpointArnHasBeenSet = false;
108 bool m_resourcePolicyHasBeenSet = false;
109 bool m_requestIdHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace SageMaker
114} // namespace Aws
AWS_SAGEMAKER_API GetEndpointPolicyResult()=default
GetEndpointPolicyResult & WithEndpointArn(EndpointArnT &&value)
GetEndpointPolicyResult & WithEndpointName(EndpointNameT &&value)
GetEndpointPolicyResult & WithRequestId(RequestIdT &&value)
GetEndpointPolicyResult & WithResourcePolicy(ResourcePolicyT &&value)
AWS_SAGEMAKER_API GetEndpointPolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_SAGEMAKER_API GetEndpointPolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue