AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
SelfGrantStatusDetail.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/datazone/DataZone_EXPORTS.h>
9#include <aws/datazone/model/SelfGrantStatus.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DataZone {
21namespace Model {
22
29 public:
30 AWS_DATAZONE_API SelfGrantStatusDetail() = default;
33 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
40 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
41 template <typename DatabaseNameT = Aws::String>
42 void SetDatabaseName(DatabaseNameT&& value) {
43 m_databaseNameHasBeenSet = true;
44 m_databaseName = std::forward<DatabaseNameT>(value);
45 }
46 template <typename DatabaseNameT = Aws::String>
47 SelfGrantStatusDetail& WithDatabaseName(DatabaseNameT&& value) {
48 SetDatabaseName(std::forward<DatabaseNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetSchemaName() const { return m_schemaName; }
58 inline bool SchemaNameHasBeenSet() const { return m_schemaNameHasBeenSet; }
59 template <typename SchemaNameT = Aws::String>
60 void SetSchemaName(SchemaNameT&& value) {
61 m_schemaNameHasBeenSet = true;
62 m_schemaName = std::forward<SchemaNameT>(value);
63 }
64 template <typename SchemaNameT = Aws::String>
65 SelfGrantStatusDetail& WithSchemaName(SchemaNameT&& value) {
66 SetSchemaName(std::forward<SchemaNameT>(value));
67 return *this;
68 }
70
72
75 inline SelfGrantStatus GetStatus() const { return m_status; }
76 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
77 inline void SetStatus(SelfGrantStatus value) {
78 m_statusHasBeenSet = true;
79 m_status = value;
80 }
82 SetStatus(value);
83 return *this;
84 }
86
88
91 inline const Aws::String& GetFailureCause() const { return m_failureCause; }
92 inline bool FailureCauseHasBeenSet() const { return m_failureCauseHasBeenSet; }
93 template <typename FailureCauseT = Aws::String>
94 void SetFailureCause(FailureCauseT&& value) {
95 m_failureCauseHasBeenSet = true;
96 m_failureCause = std::forward<FailureCauseT>(value);
97 }
98 template <typename FailureCauseT = Aws::String>
99 SelfGrantStatusDetail& WithFailureCause(FailureCauseT&& value) {
100 SetFailureCause(std::forward<FailureCauseT>(value));
101 return *this;
102 }
104 private:
105 Aws::String m_databaseName;
106
107 Aws::String m_schemaName;
108
110
111 Aws::String m_failureCause;
112 bool m_databaseNameHasBeenSet = false;
113 bool m_schemaNameHasBeenSet = false;
114 bool m_statusHasBeenSet = false;
115 bool m_failureCauseHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace DataZone
120} // namespace Aws
AWS_DATAZONE_API SelfGrantStatusDetail(Aws::Utils::Json::JsonView jsonValue)
SelfGrantStatusDetail & WithStatus(SelfGrantStatus value)
SelfGrantStatusDetail & WithFailureCause(FailureCauseT &&value)
AWS_DATAZONE_API SelfGrantStatusDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
SelfGrantStatusDetail & WithDatabaseName(DatabaseNameT &&value)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
SelfGrantStatusDetail & WithSchemaName(SchemaNameT &&value)
AWS_DATAZONE_API SelfGrantStatusDetail()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue