AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetAuthPolicyResult.h
1
6#pragma once
7#include <aws/vpc-lattice/VPCLattice_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/vpc-lattice/model/AuthPolicyState.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace VPCLattice
26{
27namespace Model
28{
30 {
31 public:
32 AWS_VPCLATTICE_API GetAuthPolicyResult() = default;
35
36
38
41 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
42 template<typename CreatedAtT = Aws::Utils::DateTime>
43 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
44 template<typename CreatedAtT = Aws::Utils::DateTime>
45 GetAuthPolicyResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
47
49
53 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
54 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
55 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
56 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
57 GetAuthPolicyResult& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
59
61
64 inline const Aws::String& GetPolicy() const { return m_policy; }
65 template<typename PolicyT = Aws::String>
66 void SetPolicy(PolicyT&& value) { m_policyHasBeenSet = true; m_policy = std::forward<PolicyT>(value); }
67 template<typename PolicyT = Aws::String>
68 GetAuthPolicyResult& WithPolicy(PolicyT&& value) { SetPolicy(std::forward<PolicyT>(value)); return *this;}
70
72
81 inline AuthPolicyState GetState() const { return m_state; }
82 inline void SetState(AuthPolicyState value) { m_stateHasBeenSet = true; m_state = value; }
83 inline GetAuthPolicyResult& WithState(AuthPolicyState value) { SetState(value); return *this;}
85
87
88 inline const Aws::String& GetRequestId() const { return m_requestId; }
89 template<typename RequestIdT = Aws::String>
90 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
91 template<typename RequestIdT = Aws::String>
92 GetAuthPolicyResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
94 private:
95
96 Aws::Utils::DateTime m_createdAt{};
97 bool m_createdAtHasBeenSet = false;
98
99 Aws::Utils::DateTime m_lastUpdatedAt{};
100 bool m_lastUpdatedAtHasBeenSet = false;
101
102 Aws::String m_policy;
103 bool m_policyHasBeenSet = false;
104
106 bool m_stateHasBeenSet = false;
107
108 Aws::String m_requestId;
109 bool m_requestIdHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace VPCLattice
114} // namespace Aws
GetAuthPolicyResult & WithLastUpdatedAt(LastUpdatedAtT &&value)
AWS_VPCLATTICE_API GetAuthPolicyResult()=default
GetAuthPolicyResult & WithState(AuthPolicyState value)
AWS_VPCLATTICE_API GetAuthPolicyResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_VPCLATTICE_API GetAuthPolicyResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetAuthPolicyResult & WithPolicy(PolicyT &&value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
GetAuthPolicyResult & WithCreatedAt(CreatedAtT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
GetAuthPolicyResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue