AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
49 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
50 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
51 inline ResourceInfo& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
52 inline ResourceInfo& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
53 inline ResourceInfo& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
55
57
60 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
61 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
62 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
63 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
64 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
65 inline ResourceInfo& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
66 inline ResourceInfo& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
67 inline ResourceInfo& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
69
71
74 inline const Aws::Utils::DateTime& GetLastModified() const{ return m_lastModified; }
75 inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; }
76 inline void SetLastModified(const Aws::Utils::DateTime& value) { m_lastModifiedHasBeenSet = true; m_lastModified = value; }
77 inline void SetLastModified(Aws::Utils::DateTime&& value) { m_lastModifiedHasBeenSet = true; m_lastModified = std::move(value); }
78 inline ResourceInfo& WithLastModified(const Aws::Utils::DateTime& value) { SetLastModified(value); return *this;}
79 inline ResourceInfo& WithLastModified(Aws::Utils::DateTime&& value) { SetLastModified(std::move(value)); return *this;}
81
83
86 inline bool GetWithFederation() const{ return m_withFederation; }
87 inline bool WithFederationHasBeenSet() const { return m_withFederationHasBeenSet; }
88 inline void SetWithFederation(bool value) { m_withFederationHasBeenSet = true; m_withFederation = value; }
89 inline ResourceInfo& WithWithFederation(bool value) { SetWithFederation(value); return *this;}
91
93
98 inline bool GetHybridAccessEnabled() const{ return m_hybridAccessEnabled; }
99 inline bool HybridAccessEnabledHasBeenSet() const { return m_hybridAccessEnabledHasBeenSet; }
100 inline void SetHybridAccessEnabled(bool value) { m_hybridAccessEnabledHasBeenSet = true; m_hybridAccessEnabled = value; }
101 inline ResourceInfo& WithHybridAccessEnabled(bool value) { SetHybridAccessEnabled(value); return *this;}
103 private:
104
105 Aws::String m_resourceArn;
106 bool m_resourceArnHasBeenSet = false;
107
108 Aws::String m_roleArn;
109 bool m_roleArnHasBeenSet = false;
110
111 Aws::Utils::DateTime m_lastModified;
112 bool m_lastModifiedHasBeenSet = false;
113
114 bool m_withFederation;
115 bool m_withFederationHasBeenSet = false;
116
117 bool m_hybridAccessEnabled;
118 bool m_hybridAccessEnabledHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace LakeFormation
123} // namespace Aws
ResourceInfo & WithLastModified(const Aws::Utils::DateTime &value)
ResourceInfo & WithWithFederation(bool value)
void SetResourceArn(const Aws::String &value)
void SetResourceArn(Aws::String &&value)
ResourceInfo & WithRoleArn(const char *value)
ResourceInfo & WithRoleArn(const Aws::String &value)
ResourceInfo & WithRoleArn(Aws::String &&value)
AWS_LAKEFORMATION_API ResourceInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceInfo & WithResourceArn(const Aws::String &value)
const Aws::Utils::DateTime & GetLastModified() const
ResourceInfo & WithLastModified(Aws::Utils::DateTime &&value)
AWS_LAKEFORMATION_API ResourceInfo()
ResourceInfo & WithResourceArn(Aws::String &&value)
ResourceInfo & WithResourceArn(const char *value)
AWS_LAKEFORMATION_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LAKEFORMATION_API ResourceInfo(Aws::Utils::Json::JsonView jsonValue)
void SetResourceArn(const char *value)
void SetLastModified(Aws::Utils::DateTime &&value)
const Aws::String & GetResourceArn() const
ResourceInfo & WithHybridAccessEnabled(bool value)
void SetRoleArn(Aws::String &&value)
const Aws::String & GetRoleArn() const
void SetRoleArn(const Aws::String &value)
void SetLastModified(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue