AWS SDK for C++

AWS SDK for C++ Version 1.11.684

Loading...
Searching...
No Matches
UpdateSubscriptionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/qbusiness/QBusinessRequest.h>
9#include <aws/qbusiness/QBusiness_EXPORTS.h>
10#include <aws/qbusiness/model/SubscriptionType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace QBusiness {
16namespace Model {
17
21 public:
22 AWS_QBUSINESS_API UpdateSubscriptionRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateSubscription"; }
29
30 AWS_QBUSINESS_API Aws::String SerializePayload() const override;
31
33
37 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
38 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
39 template <typename ApplicationIdT = Aws::String>
41 m_applicationIdHasBeenSet = true;
42 m_applicationId = std::forward<ApplicationIdT>(value);
43 }
44 template <typename ApplicationIdT = Aws::String>
46 SetApplicationId(std::forward<ApplicationIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetSubscriptionId() const { return m_subscriptionId; }
56 inline bool SubscriptionIdHasBeenSet() const { return m_subscriptionIdHasBeenSet; }
57 template <typename SubscriptionIdT = Aws::String>
59 m_subscriptionIdHasBeenSet = true;
60 m_subscriptionId = std::forward<SubscriptionIdT>(value);
61 }
62 template <typename SubscriptionIdT = Aws::String>
64 SetSubscriptionId(std::forward<SubscriptionIdT>(value));
65 return *this;
66 }
68
70
73 inline SubscriptionType GetType() const { return m_type; }
74 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
75 inline void SetType(SubscriptionType value) {
76 m_typeHasBeenSet = true;
77 m_type = value;
78 }
80 SetType(value);
81 return *this;
82 }
84 private:
85 Aws::String m_applicationId;
86 bool m_applicationIdHasBeenSet = false;
87
88 Aws::String m_subscriptionId;
89 bool m_subscriptionIdHasBeenSet = false;
90
92 bool m_typeHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace QBusiness
97} // namespace Aws
UpdateSubscriptionRequest & WithType(SubscriptionType value)
AWS_QBUSINESS_API Aws::String SerializePayload() const override
AWS_QBUSINESS_API UpdateSubscriptionRequest()=default
UpdateSubscriptionRequest & WithSubscriptionId(SubscriptionIdT &&value)
UpdateSubscriptionRequest & WithApplicationId(ApplicationIdT &&value)
virtual const char * GetServiceRequestName() const override
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String