AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SubscribedAsset.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/datazone/model/AssetScope.h>
10#include <aws/datazone/model/FailureCause.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/datazone/model/SubscriptionGrantStatus.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace DataZone
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_DATAZONE_API SubscribedAsset();
40 AWS_DATAZONE_API SubscribedAsset(Aws::Utils::Json::JsonView jsonValue);
42 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetAssetId() const{ return m_assetId; }
50 inline bool AssetIdHasBeenSet() const { return m_assetIdHasBeenSet; }
51 inline void SetAssetId(const Aws::String& value) { m_assetIdHasBeenSet = true; m_assetId = value; }
52 inline void SetAssetId(Aws::String&& value) { m_assetIdHasBeenSet = true; m_assetId = std::move(value); }
53 inline void SetAssetId(const char* value) { m_assetIdHasBeenSet = true; m_assetId.assign(value); }
54 inline SubscribedAsset& WithAssetId(const Aws::String& value) { SetAssetId(value); return *this;}
55 inline SubscribedAsset& WithAssetId(Aws::String&& value) { SetAssetId(std::move(value)); return *this;}
56 inline SubscribedAsset& WithAssetId(const char* value) { SetAssetId(value); return *this;}
58
60
63 inline const Aws::String& GetAssetRevision() const{ return m_assetRevision; }
64 inline bool AssetRevisionHasBeenSet() const { return m_assetRevisionHasBeenSet; }
65 inline void SetAssetRevision(const Aws::String& value) { m_assetRevisionHasBeenSet = true; m_assetRevision = value; }
66 inline void SetAssetRevision(Aws::String&& value) { m_assetRevisionHasBeenSet = true; m_assetRevision = std::move(value); }
67 inline void SetAssetRevision(const char* value) { m_assetRevisionHasBeenSet = true; m_assetRevision.assign(value); }
68 inline SubscribedAsset& WithAssetRevision(const Aws::String& value) { SetAssetRevision(value); return *this;}
69 inline SubscribedAsset& WithAssetRevision(Aws::String&& value) { SetAssetRevision(std::move(value)); return *this;}
70 inline SubscribedAsset& WithAssetRevision(const char* value) { SetAssetRevision(value); return *this;}
72
74
77 inline const AssetScope& GetAssetScope() const{ return m_assetScope; }
78 inline bool AssetScopeHasBeenSet() const { return m_assetScopeHasBeenSet; }
79 inline void SetAssetScope(const AssetScope& value) { m_assetScopeHasBeenSet = true; m_assetScope = value; }
80 inline void SetAssetScope(AssetScope&& value) { m_assetScopeHasBeenSet = true; m_assetScope = std::move(value); }
81 inline SubscribedAsset& WithAssetScope(const AssetScope& value) { SetAssetScope(value); return *this;}
82 inline SubscribedAsset& WithAssetScope(AssetScope&& value) { SetAssetScope(std::move(value)); return *this;}
84
86
90 inline const FailureCause& GetFailureCause() const{ return m_failureCause; }
91 inline bool FailureCauseHasBeenSet() const { return m_failureCauseHasBeenSet; }
92 inline void SetFailureCause(const FailureCause& value) { m_failureCauseHasBeenSet = true; m_failureCause = value; }
93 inline void SetFailureCause(FailureCause&& value) { m_failureCauseHasBeenSet = true; m_failureCause = std::move(value); }
94 inline SubscribedAsset& WithFailureCause(const FailureCause& value) { SetFailureCause(value); return *this;}
95 inline SubscribedAsset& WithFailureCause(FailureCause&& value) { SetFailureCause(std::move(value)); return *this;}
97
99
103 inline const Aws::Utils::DateTime& GetFailureTimestamp() const{ return m_failureTimestamp; }
104 inline bool FailureTimestampHasBeenSet() const { return m_failureTimestampHasBeenSet; }
105 inline void SetFailureTimestamp(const Aws::Utils::DateTime& value) { m_failureTimestampHasBeenSet = true; m_failureTimestamp = value; }
106 inline void SetFailureTimestamp(Aws::Utils::DateTime&& value) { m_failureTimestampHasBeenSet = true; m_failureTimestamp = std::move(value); }
108 inline SubscribedAsset& WithFailureTimestamp(Aws::Utils::DateTime&& value) { SetFailureTimestamp(std::move(value)); return *this;}
110
112
115 inline const Aws::Utils::DateTime& GetGrantedTimestamp() const{ return m_grantedTimestamp; }
116 inline bool GrantedTimestampHasBeenSet() const { return m_grantedTimestampHasBeenSet; }
117 inline void SetGrantedTimestamp(const Aws::Utils::DateTime& value) { m_grantedTimestampHasBeenSet = true; m_grantedTimestamp = value; }
118 inline void SetGrantedTimestamp(Aws::Utils::DateTime&& value) { m_grantedTimestampHasBeenSet = true; m_grantedTimestamp = std::move(value); }
120 inline SubscribedAsset& WithGrantedTimestamp(Aws::Utils::DateTime&& value) { SetGrantedTimestamp(std::move(value)); return *this;}
122
124
127 inline const SubscriptionGrantStatus& GetStatus() const{ return m_status; }
128 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
129 inline void SetStatus(const SubscriptionGrantStatus& value) { m_statusHasBeenSet = true; m_status = value; }
130 inline void SetStatus(SubscriptionGrantStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
131 inline SubscribedAsset& WithStatus(const SubscriptionGrantStatus& value) { SetStatus(value); return *this;}
132 inline SubscribedAsset& WithStatus(SubscriptionGrantStatus&& value) { SetStatus(std::move(value)); return *this;}
134
136
139 inline const Aws::String& GetTargetName() const{ return m_targetName; }
140 inline bool TargetNameHasBeenSet() const { return m_targetNameHasBeenSet; }
141 inline void SetTargetName(const Aws::String& value) { m_targetNameHasBeenSet = true; m_targetName = value; }
142 inline void SetTargetName(Aws::String&& value) { m_targetNameHasBeenSet = true; m_targetName = std::move(value); }
143 inline void SetTargetName(const char* value) { m_targetNameHasBeenSet = true; m_targetName.assign(value); }
144 inline SubscribedAsset& WithTargetName(const Aws::String& value) { SetTargetName(value); return *this;}
145 inline SubscribedAsset& WithTargetName(Aws::String&& value) { SetTargetName(std::move(value)); return *this;}
146 inline SubscribedAsset& WithTargetName(const char* value) { SetTargetName(value); return *this;}
148 private:
149
150 Aws::String m_assetId;
151 bool m_assetIdHasBeenSet = false;
152
153 Aws::String m_assetRevision;
154 bool m_assetRevisionHasBeenSet = false;
155
156 AssetScope m_assetScope;
157 bool m_assetScopeHasBeenSet = false;
158
159 FailureCause m_failureCause;
160 bool m_failureCauseHasBeenSet = false;
161
162 Aws::Utils::DateTime m_failureTimestamp;
163 bool m_failureTimestampHasBeenSet = false;
164
165 Aws::Utils::DateTime m_grantedTimestamp;
166 bool m_grantedTimestampHasBeenSet = false;
167
169 bool m_statusHasBeenSet = false;
170
171 Aws::String m_targetName;
172 bool m_targetNameHasBeenSet = false;
173 };
174
175} // namespace Model
176} // namespace DataZone
177} // namespace Aws
void SetAssetScope(AssetScope &&value)
SubscribedAsset & WithTargetName(const char *value)
void SetAssetId(Aws::String &&value)
void SetAssetScope(const AssetScope &value)
SubscribedAsset & WithAssetId(const Aws::String &value)
const Aws::String & GetTargetName() const
void SetFailureTimestamp(Aws::Utils::DateTime &&value)
void SetStatus(SubscriptionGrantStatus &&value)
const SubscriptionGrantStatus & GetStatus() const
void SetFailureCause(const FailureCause &value)
AWS_DATAZONE_API SubscribedAsset & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAssetId() const
void SetTargetName(const Aws::String &value)
void SetTargetName(Aws::String &&value)
void SetAssetId(const Aws::String &value)
const FailureCause & GetFailureCause() const
void SetGrantedTimestamp(const Aws::Utils::DateTime &value)
SubscribedAsset & WithAssetId(Aws::String &&value)
void SetAssetRevision(const Aws::String &value)
AWS_DATAZONE_API SubscribedAsset(Aws::Utils::Json::JsonView jsonValue)
void SetFailureCause(FailureCause &&value)
SubscribedAsset & WithGrantedTimestamp(Aws::Utils::DateTime &&value)
SubscribedAsset & WithAssetScope(const AssetScope &value)
SubscribedAsset & WithStatus(SubscriptionGrantStatus &&value)
SubscribedAsset & WithAssetRevision(const char *value)
void SetFailureTimestamp(const Aws::Utils::DateTime &value)
void SetAssetRevision(const char *value)
SubscribedAsset & WithFailureCause(FailureCause &&value)
const Aws::Utils::DateTime & GetGrantedTimestamp() const
SubscribedAsset & WithFailureCause(const FailureCause &value)
SubscribedAsset & WithTargetName(Aws::String &&value)
SubscribedAsset & WithFailureTimestamp(Aws::Utils::DateTime &&value)
SubscribedAsset & WithAssetRevision(Aws::String &&value)
SubscribedAsset & WithGrantedTimestamp(const Aws::Utils::DateTime &value)
void SetGrantedTimestamp(Aws::Utils::DateTime &&value)
SubscribedAsset & WithStatus(const SubscriptionGrantStatus &value)
const Aws::Utils::DateTime & GetFailureTimestamp() const
SubscribedAsset & WithFailureTimestamp(const Aws::Utils::DateTime &value)
SubscribedAsset & WithAssetRevision(const Aws::String &value)
SubscribedAsset & WithTargetName(const Aws::String &value)
SubscribedAsset & WithAssetId(const char *value)
const AssetScope & GetAssetScope() const
void SetStatus(const SubscriptionGrantStatus &value)
SubscribedAsset & WithAssetScope(AssetScope &&value)
const Aws::String & GetAssetRevision() const
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAssetRevision(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue