AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AssociatedAccessPolicy.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/eks/EKS_EXPORTS.h>
10#include <aws/eks/model/AccessScope.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace EKS {
22namespace Model {
23
30 public:
31 AWS_EKS_API AssociatedAccessPolicy() = default;
35
37
40 inline const Aws::String& GetPolicyArn() const { return m_policyArn; }
41 inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
42 template <typename PolicyArnT = Aws::String>
43 void SetPolicyArn(PolicyArnT&& value) {
44 m_policyArnHasBeenSet = true;
45 m_policyArn = std::forward<PolicyArnT>(value);
46 }
47 template <typename PolicyArnT = Aws::String>
49 SetPolicyArn(std::forward<PolicyArnT>(value));
50 return *this;
51 }
53
55
58 inline const AccessScope& GetAccessScope() const { return m_accessScope; }
59 inline bool AccessScopeHasBeenSet() const { return m_accessScopeHasBeenSet; }
60 template <typename AccessScopeT = AccessScope>
61 void SetAccessScope(AccessScopeT&& value) {
62 m_accessScopeHasBeenSet = true;
63 m_accessScope = std::forward<AccessScopeT>(value);
64 }
65 template <typename AccessScopeT = AccessScope>
66 AssociatedAccessPolicy& WithAccessScope(AccessScopeT&& value) {
67 SetAccessScope(std::forward<AccessScopeT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::Utils::DateTime& GetAssociatedAt() const { return m_associatedAt; }
78 inline bool AssociatedAtHasBeenSet() const { return m_associatedAtHasBeenSet; }
79 template <typename AssociatedAtT = Aws::Utils::DateTime>
80 void SetAssociatedAt(AssociatedAtT&& value) {
81 m_associatedAtHasBeenSet = true;
82 m_associatedAt = std::forward<AssociatedAtT>(value);
83 }
84 template <typename AssociatedAtT = Aws::Utils::DateTime>
85 AssociatedAccessPolicy& WithAssociatedAt(AssociatedAtT&& value) {
86 SetAssociatedAt(std::forward<AssociatedAtT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
96 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
97 template <typename ModifiedAtT = Aws::Utils::DateTime>
98 void SetModifiedAt(ModifiedAtT&& value) {
99 m_modifiedAtHasBeenSet = true;
100 m_modifiedAt = std::forward<ModifiedAtT>(value);
101 }
102 template <typename ModifiedAtT = Aws::Utils::DateTime>
104 SetModifiedAt(std::forward<ModifiedAtT>(value));
105 return *this;
106 }
108 private:
109 Aws::String m_policyArn;
110
111 AccessScope m_accessScope;
112
113 Aws::Utils::DateTime m_associatedAt{};
114
115 Aws::Utils::DateTime m_modifiedAt{};
116 bool m_policyArnHasBeenSet = false;
117 bool m_accessScopeHasBeenSet = false;
118 bool m_associatedAtHasBeenSet = false;
119 bool m_modifiedAtHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace EKS
124} // namespace Aws
AWS_EKS_API Aws::Utils::Json::JsonValue Jsonize() const
AssociatedAccessPolicy & WithPolicyArn(PolicyArnT &&value)
AssociatedAccessPolicy & WithAccessScope(AccessScopeT &&value)
AWS_EKS_API AssociatedAccessPolicy(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetModifiedAt() const
AWS_EKS_API AssociatedAccessPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
AssociatedAccessPolicy & WithModifiedAt(ModifiedAtT &&value)
AWS_EKS_API AssociatedAccessPolicy()=default
const Aws::Utils::DateTime & GetAssociatedAt() const
AssociatedAccessPolicy & WithAssociatedAt(AssociatedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue