AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
AuthorizeVpcEndpointAccessResult.h
1
6#pragma once
7#include <aws/es/ElasticsearchService_EXPORTS.h>
8#include <aws/es/model/AuthorizedPrincipal.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14template<typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace ElasticsearchService
25{
26namespace Model
27{
37 {
38 public:
39 AWS_ELASTICSEARCHSERVICE_API AuthorizeVpcEndpointAccessResult() = default;
42
43
45
49 inline const AuthorizedPrincipal& GetAuthorizedPrincipal() const { return m_authorizedPrincipal; }
50 template<typename AuthorizedPrincipalT = AuthorizedPrincipal>
51 void SetAuthorizedPrincipal(AuthorizedPrincipalT&& value) { m_authorizedPrincipalHasBeenSet = true; m_authorizedPrincipal = std::forward<AuthorizedPrincipalT>(value); }
52 template<typename AuthorizedPrincipalT = AuthorizedPrincipal>
53 AuthorizeVpcEndpointAccessResult& WithAuthorizedPrincipal(AuthorizedPrincipalT&& value) { SetAuthorizedPrincipal(std::forward<AuthorizedPrincipalT>(value)); return *this;}
55
57
58 inline const Aws::String& GetRequestId() const { return m_requestId; }
59 template<typename RequestIdT = Aws::String>
60 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
61 template<typename RequestIdT = Aws::String>
62 AuthorizeVpcEndpointAccessResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
64 private:
65
66 AuthorizedPrincipal m_authorizedPrincipal;
67 bool m_authorizedPrincipalHasBeenSet = false;
68
69 Aws::String m_requestId;
70 bool m_requestIdHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace ElasticsearchService
75} // namespace Aws
AWS_ELASTICSEARCHSERVICE_API AuthorizeVpcEndpointAccessResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_ELASTICSEARCHSERVICE_API AuthorizeVpcEndpointAccessResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_ELASTICSEARCHSERVICE_API AuthorizeVpcEndpointAccessResult()=default
AuthorizeVpcEndpointAccessResult & WithAuthorizedPrincipal(AuthorizedPrincipalT &&value)
AuthorizeVpcEndpointAccessResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue