AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateSubscriptionGrantStatusRequest.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/datazone/DataZoneRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/datazone/model/FailureCause.h>
11#include <aws/datazone/model/SubscriptionGrantStatus.h>
12#include <utility>
13
14namespace Aws
15{
16namespace DataZone
17{
18namespace Model
19{
20
24 {
25 public:
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateSubscriptionGrantStatus"; }
33
34 AWS_DATAZONE_API Aws::String SerializePayload() const override;
35
36
38
42 inline const Aws::String& GetAssetIdentifier() const{ return m_assetIdentifier; }
43 inline bool AssetIdentifierHasBeenSet() const { return m_assetIdentifierHasBeenSet; }
44 inline void SetAssetIdentifier(const Aws::String& value) { m_assetIdentifierHasBeenSet = true; m_assetIdentifier = value; }
45 inline void SetAssetIdentifier(Aws::String&& value) { m_assetIdentifierHasBeenSet = true; m_assetIdentifier = std::move(value); }
46 inline void SetAssetIdentifier(const char* value) { m_assetIdentifierHasBeenSet = true; m_assetIdentifier.assign(value); }
49 inline UpdateSubscriptionGrantStatusRequest& WithAssetIdentifier(const char* value) { SetAssetIdentifier(value); return *this;}
51
53
57 inline const Aws::String& GetDomainIdentifier() const{ return m_domainIdentifier; }
58 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
59 inline void SetDomainIdentifier(const Aws::String& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = value; }
60 inline void SetDomainIdentifier(Aws::String&& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = std::move(value); }
61 inline void SetDomainIdentifier(const char* value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier.assign(value); }
64 inline UpdateSubscriptionGrantStatusRequest& WithDomainIdentifier(const char* value) { SetDomainIdentifier(value); return *this;}
66
68
72 inline const FailureCause& GetFailureCause() const{ return m_failureCause; }
73 inline bool FailureCauseHasBeenSet() const { return m_failureCauseHasBeenSet; }
74 inline void SetFailureCause(const FailureCause& value) { m_failureCauseHasBeenSet = true; m_failureCause = value; }
75 inline void SetFailureCause(FailureCause&& value) { m_failureCauseHasBeenSet = true; m_failureCause = std::move(value); }
77 inline UpdateSubscriptionGrantStatusRequest& WithFailureCause(FailureCause&& value) { SetFailureCause(std::move(value)); return *this;}
79
81
85 inline const Aws::String& GetIdentifier() const{ return m_identifier; }
86 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
87 inline void SetIdentifier(const Aws::String& value) { m_identifierHasBeenSet = true; m_identifier = value; }
88 inline void SetIdentifier(Aws::String&& value) { m_identifierHasBeenSet = true; m_identifier = std::move(value); }
89 inline void SetIdentifier(const char* value) { m_identifierHasBeenSet = true; m_identifier.assign(value); }
91 inline UpdateSubscriptionGrantStatusRequest& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;}
92 inline UpdateSubscriptionGrantStatusRequest& WithIdentifier(const char* value) { SetIdentifier(value); return *this;}
94
96
100 inline const SubscriptionGrantStatus& GetStatus() const{ return m_status; }
101 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
102 inline void SetStatus(const SubscriptionGrantStatus& value) { m_statusHasBeenSet = true; m_status = value; }
103 inline void SetStatus(SubscriptionGrantStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
105 inline UpdateSubscriptionGrantStatusRequest& WithStatus(SubscriptionGrantStatus&& value) { SetStatus(std::move(value)); return *this;}
107
109
113 inline const Aws::String& GetTargetName() const{ return m_targetName; }
114 inline bool TargetNameHasBeenSet() const { return m_targetNameHasBeenSet; }
115 inline void SetTargetName(const Aws::String& value) { m_targetNameHasBeenSet = true; m_targetName = value; }
116 inline void SetTargetName(Aws::String&& value) { m_targetNameHasBeenSet = true; m_targetName = std::move(value); }
117 inline void SetTargetName(const char* value) { m_targetNameHasBeenSet = true; m_targetName.assign(value); }
119 inline UpdateSubscriptionGrantStatusRequest& WithTargetName(Aws::String&& value) { SetTargetName(std::move(value)); return *this;}
120 inline UpdateSubscriptionGrantStatusRequest& WithTargetName(const char* value) { SetTargetName(value); return *this;}
122 private:
123
124 Aws::String m_assetIdentifier;
125 bool m_assetIdentifierHasBeenSet = false;
126
127 Aws::String m_domainIdentifier;
128 bool m_domainIdentifierHasBeenSet = false;
129
130 FailureCause m_failureCause;
131 bool m_failureCauseHasBeenSet = false;
132
133 Aws::String m_identifier;
134 bool m_identifierHasBeenSet = false;
135
137 bool m_statusHasBeenSet = false;
138
139 Aws::String m_targetName;
140 bool m_targetNameHasBeenSet = false;
141 };
142
143} // namespace Model
144} // namespace DataZone
145} // namespace Aws
UpdateSubscriptionGrantStatusRequest & WithIdentifier(Aws::String &&value)
UpdateSubscriptionGrantStatusRequest & WithTargetName(const Aws::String &value)
AWS_DATAZONE_API Aws::String SerializePayload() const override
UpdateSubscriptionGrantStatusRequest & WithFailureCause(FailureCause &&value)
UpdateSubscriptionGrantStatusRequest & WithAssetIdentifier(const Aws::String &value)
UpdateSubscriptionGrantStatusRequest & WithFailureCause(const FailureCause &value)
UpdateSubscriptionGrantStatusRequest & WithIdentifier(const Aws::String &value)
UpdateSubscriptionGrantStatusRequest & WithDomainIdentifier(Aws::String &&value)
UpdateSubscriptionGrantStatusRequest & WithTargetName(Aws::String &&value)
UpdateSubscriptionGrantStatusRequest & WithStatus(const SubscriptionGrantStatus &value)
UpdateSubscriptionGrantStatusRequest & WithDomainIdentifier(const Aws::String &value)
UpdateSubscriptionGrantStatusRequest & WithStatus(SubscriptionGrantStatus &&value)
UpdateSubscriptionGrantStatusRequest & WithDomainIdentifier(const char *value)
UpdateSubscriptionGrantStatusRequest & WithTargetName(const char *value)
UpdateSubscriptionGrantStatusRequest & WithAssetIdentifier(Aws::String &&value)
UpdateSubscriptionGrantStatusRequest & WithIdentifier(const char *value)
UpdateSubscriptionGrantStatusRequest & WithAssetIdentifier(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String