AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ResourceInfo.h
1
6#pragma once
7#include <aws/lakeformation/LakeFormation_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace LakeFormation
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_LAKEFORMATION_API ResourceInfo() = default;
37 AWS_LAKEFORMATION_API ResourceInfo(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LAKEFORMATION_API ResourceInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LAKEFORMATION_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
47 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
48 template<typename ResourceArnT = Aws::String>
49 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::forward<ResourceArnT>(value); }
50 template<typename ResourceArnT = Aws::String>
51 ResourceInfo& WithResourceArn(ResourceArnT&& value) { SetResourceArn(std::forward<ResourceArnT>(value)); return *this;}
53
55
58 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
59 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
60 template<typename RoleArnT = Aws::String>
61 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
62 template<typename RoleArnT = Aws::String>
63 ResourceInfo& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
65
67
70 inline const Aws::Utils::DateTime& GetLastModified() const { return m_lastModified; }
71 inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
72 template<typename LastModifiedT = Aws::Utils::DateTime>
73 void SetLastModified(LastModifiedT&& value) { m_lastModifiedHasBeenSet = true; m_lastModified = std::forward<LastModifiedT>(value); }
74 template<typename LastModifiedT = Aws::Utils::DateTime>
75 ResourceInfo& WithLastModified(LastModifiedT&& value) { SetLastModified(std::forward<LastModifiedT>(value)); return *this;}
77
79
82 inline bool GetWithFederation() const { return m_withFederation; }
83 inline bool WithFederationHasBeenSet() const { return m_withFederationHasBeenSet; }
84 inline void SetWithFederation(bool value) { m_withFederationHasBeenSet = true; m_withFederation = value; }
85 inline ResourceInfo& WithWithFederation(bool value) { SetWithFederation(value); return *this;}
87
89
94 inline bool GetHybridAccessEnabled() const { return m_hybridAccessEnabled; }
95 inline bool HybridAccessEnabledHasBeenSet() const { return m_hybridAccessEnabledHasBeenSet; }
96 inline void SetHybridAccessEnabled(bool value) { m_hybridAccessEnabledHasBeenSet = true; m_hybridAccessEnabled = value; }
97 inline ResourceInfo& WithHybridAccessEnabled(bool value) { SetHybridAccessEnabled(value); return *this;}
99
101
105 inline bool GetWithPrivilegedAccess() const { return m_withPrivilegedAccess; }
106 inline bool WithPrivilegedAccessHasBeenSet() const { return m_withPrivilegedAccessHasBeenSet; }
107 inline void SetWithPrivilegedAccess(bool value) { m_withPrivilegedAccessHasBeenSet = true; m_withPrivilegedAccess = value; }
108 inline ResourceInfo& WithWithPrivilegedAccess(bool value) { SetWithPrivilegedAccess(value); return *this;}
110 private:
111
112 Aws::String m_resourceArn;
113 bool m_resourceArnHasBeenSet = false;
114
115 Aws::String m_roleArn;
116 bool m_roleArnHasBeenSet = false;
117
118 Aws::Utils::DateTime m_lastModified{};
119 bool m_lastModifiedHasBeenSet = false;
120
121 bool m_withFederation{false};
122 bool m_withFederationHasBeenSet = false;
123
124 bool m_hybridAccessEnabled{false};
125 bool m_hybridAccessEnabledHasBeenSet = false;
126
127 bool m_withPrivilegedAccess{false};
128 bool m_withPrivilegedAccessHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace LakeFormation
133} // namespace Aws
void SetLastModified(LastModifiedT &&value)
ResourceInfo & WithWithFederation(bool value)
ResourceInfo & WithResourceArn(ResourceArnT &&value)
ResourceInfo & WithWithPrivilegedAccess(bool value)
AWS_LAKEFORMATION_API ResourceInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastModified() const
ResourceInfo & WithLastModified(LastModifiedT &&value)
ResourceInfo & WithRoleArn(RoleArnT &&value)
AWS_LAKEFORMATION_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LAKEFORMATION_API ResourceInfo(Aws::Utils::Json::JsonView jsonValue)
AWS_LAKEFORMATION_API ResourceInfo()=default
const Aws::String & GetResourceArn() const
void SetResourceArn(ResourceArnT &&value)
ResourceInfo & WithHybridAccessEnabled(bool value)
const Aws::String & GetRoleArn() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue