AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
26 AWS_DATAZONE_API UpdateSubscriptionGrantStatusRequest() = default;
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 template<typename AssetIdentifierT = Aws::String>
45 void SetAssetIdentifier(AssetIdentifierT&& value) { m_assetIdentifierHasBeenSet = true; m_assetIdentifier = std::forward<AssetIdentifierT>(value); }
46 template<typename AssetIdentifierT = Aws::String>
47 UpdateSubscriptionGrantStatusRequest& WithAssetIdentifier(AssetIdentifierT&& value) { SetAssetIdentifier(std::forward<AssetIdentifierT>(value)); return *this;}
49
51
55 inline const Aws::String& GetDomainIdentifier() const { return m_domainIdentifier; }
56 inline bool DomainIdentifierHasBeenSet() const { return m_domainIdentifierHasBeenSet; }
57 template<typename DomainIdentifierT = Aws::String>
58 void SetDomainIdentifier(DomainIdentifierT&& value) { m_domainIdentifierHasBeenSet = true; m_domainIdentifier = std::forward<DomainIdentifierT>(value); }
59 template<typename DomainIdentifierT = Aws::String>
60 UpdateSubscriptionGrantStatusRequest& WithDomainIdentifier(DomainIdentifierT&& value) { SetDomainIdentifier(std::forward<DomainIdentifierT>(value)); return *this;}
62
64
68 inline const FailureCause& GetFailureCause() const { return m_failureCause; }
69 inline bool FailureCauseHasBeenSet() const { return m_failureCauseHasBeenSet; }
70 template<typename FailureCauseT = FailureCause>
71 void SetFailureCause(FailureCauseT&& value) { m_failureCauseHasBeenSet = true; m_failureCause = std::forward<FailureCauseT>(value); }
72 template<typename FailureCauseT = FailureCause>
73 UpdateSubscriptionGrantStatusRequest& WithFailureCause(FailureCauseT&& value) { SetFailureCause(std::forward<FailureCauseT>(value)); return *this;}
75
77
81 inline const Aws::String& GetIdentifier() const { return m_identifier; }
82 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
83 template<typename IdentifierT = Aws::String>
84 void SetIdentifier(IdentifierT&& value) { m_identifierHasBeenSet = true; m_identifier = std::forward<IdentifierT>(value); }
85 template<typename IdentifierT = Aws::String>
86 UpdateSubscriptionGrantStatusRequest& WithIdentifier(IdentifierT&& value) { SetIdentifier(std::forward<IdentifierT>(value)); return *this;}
88
90
94 inline SubscriptionGrantStatus GetStatus() const { return m_status; }
95 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
96 inline void SetStatus(SubscriptionGrantStatus value) { m_statusHasBeenSet = true; m_status = value; }
99
101
105 inline const Aws::String& GetTargetName() const { return m_targetName; }
106 inline bool TargetNameHasBeenSet() const { return m_targetNameHasBeenSet; }
107 template<typename TargetNameT = Aws::String>
108 void SetTargetName(TargetNameT&& value) { m_targetNameHasBeenSet = true; m_targetName = std::forward<TargetNameT>(value); }
109 template<typename TargetNameT = Aws::String>
110 UpdateSubscriptionGrantStatusRequest& WithTargetName(TargetNameT&& value) { SetTargetName(std::forward<TargetNameT>(value)); return *this;}
112 private:
113
114 Aws::String m_assetIdentifier;
115 bool m_assetIdentifierHasBeenSet = false;
116
117 Aws::String m_domainIdentifier;
118 bool m_domainIdentifierHasBeenSet = false;
119
120 FailureCause m_failureCause;
121 bool m_failureCauseHasBeenSet = false;
122
123 Aws::String m_identifier;
124 bool m_identifierHasBeenSet = false;
125
127 bool m_statusHasBeenSet = false;
128
129 Aws::String m_targetName;
130 bool m_targetNameHasBeenSet = false;
131 };
132
133} // namespace Model
134} // namespace DataZone
135} // namespace Aws
AWS_DATAZONE_API Aws::String SerializePayload() const override
UpdateSubscriptionGrantStatusRequest & WithDomainIdentifier(DomainIdentifierT &&value)
UpdateSubscriptionGrantStatusRequest & WithAssetIdentifier(AssetIdentifierT &&value)
UpdateSubscriptionGrantStatusRequest & WithFailureCause(FailureCauseT &&value)
UpdateSubscriptionGrantStatusRequest & WithStatus(SubscriptionGrantStatus value)
UpdateSubscriptionGrantStatusRequest & WithIdentifier(IdentifierT &&value)
UpdateSubscriptionGrantStatusRequest & WithTargetName(TargetNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String