AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AssociatedAccessPolicy.h
1
6#pragma once
7#include <aws/eks/EKS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/eks/model/AccessScope.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace EKS
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_EKS_API AssociatedAccessPolicy() = default;
40
41
43
46 inline const Aws::String& GetPolicyArn() const { return m_policyArn; }
47 inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
48 template<typename PolicyArnT = Aws::String>
49 void SetPolicyArn(PolicyArnT&& value) { m_policyArnHasBeenSet = true; m_policyArn = std::forward<PolicyArnT>(value); }
50 template<typename PolicyArnT = Aws::String>
51 AssociatedAccessPolicy& WithPolicyArn(PolicyArnT&& value) { SetPolicyArn(std::forward<PolicyArnT>(value)); return *this;}
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) { m_accessScopeHasBeenSet = true; m_accessScope = std::forward<AccessScopeT>(value); }
62 template<typename AccessScopeT = AccessScope>
63 AssociatedAccessPolicy& WithAccessScope(AccessScopeT&& value) { SetAccessScope(std::forward<AccessScopeT>(value)); return *this;}
65
67
71 inline const Aws::Utils::DateTime& GetAssociatedAt() const { return m_associatedAt; }
72 inline bool AssociatedAtHasBeenSet() const { return m_associatedAtHasBeenSet; }
73 template<typename AssociatedAtT = Aws::Utils::DateTime>
74 void SetAssociatedAt(AssociatedAtT&& value) { m_associatedAtHasBeenSet = true; m_associatedAt = std::forward<AssociatedAtT>(value); }
75 template<typename AssociatedAtT = Aws::Utils::DateTime>
76 AssociatedAccessPolicy& WithAssociatedAt(AssociatedAtT&& value) { SetAssociatedAt(std::forward<AssociatedAtT>(value)); return *this;}
78
80
83 inline const Aws::Utils::DateTime& GetModifiedAt() const { return m_modifiedAt; }
84 inline bool ModifiedAtHasBeenSet() const { return m_modifiedAtHasBeenSet; }
85 template<typename ModifiedAtT = Aws::Utils::DateTime>
86 void SetModifiedAt(ModifiedAtT&& value) { m_modifiedAtHasBeenSet = true; m_modifiedAt = std::forward<ModifiedAtT>(value); }
87 template<typename ModifiedAtT = Aws::Utils::DateTime>
88 AssociatedAccessPolicy& WithModifiedAt(ModifiedAtT&& value) { SetModifiedAt(std::forward<ModifiedAtT>(value)); return *this;}
90 private:
91
92 Aws::String m_policyArn;
93 bool m_policyArnHasBeenSet = false;
94
95 AccessScope m_accessScope;
96 bool m_accessScopeHasBeenSet = false;
97
98 Aws::Utils::DateTime m_associatedAt{};
99 bool m_associatedAtHasBeenSet = false;
100
101 Aws::Utils::DateTime m_modifiedAt{};
102 bool m_modifiedAtHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace EKS
107} // 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