AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
SubscribeRequest.h
1
6#pragma once
7#include <aws/codestar-notifications/CodeStarNotificationsRequest.h>
8#include <aws/codestar-notifications/CodeStarNotifications_EXPORTS.h>
9#include <aws/codestar-notifications/model/Target.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CodeStarNotifications {
16namespace Model {
17
21 public:
22 AWS_CODESTARNOTIFICATIONS_API SubscribeRequest() = 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 "Subscribe"; }
29
30 AWS_CODESTARNOTIFICATIONS_API Aws::String SerializePayload() const override;
31
33
37 inline const Aws::String& GetArn() const { return m_arn; }
38 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
39 template <typename ArnT = Aws::String>
40 void SetArn(ArnT&& value) {
41 m_arnHasBeenSet = true;
42 m_arn = std::forward<ArnT>(value);
43 }
44 template <typename ArnT = Aws::String>
45 SubscribeRequest& WithArn(ArnT&& value) {
46 SetArn(std::forward<ArnT>(value));
47 return *this;
48 }
50
52
53 inline const Target& GetTarget() const { return m_target; }
54 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
55 template <typename TargetT = Target>
56 void SetTarget(TargetT&& value) {
57 m_targetHasBeenSet = true;
58 m_target = std::forward<TargetT>(value);
59 }
60 template <typename TargetT = Target>
61 SubscribeRequest& WithTarget(TargetT&& value) {
62 SetTarget(std::forward<TargetT>(value));
63 return *this;
64 }
66
68
72 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
73 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
74 template <typename ClientRequestTokenT = Aws::String>
75 void SetClientRequestToken(ClientRequestTokenT&& value) {
76 m_clientRequestTokenHasBeenSet = true;
77 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
78 }
79 template <typename ClientRequestTokenT = Aws::String>
80 SubscribeRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
81 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
82 return *this;
83 }
85 private:
86 Aws::String m_arn;
87
88 Target m_target;
89
90 Aws::String m_clientRequestToken;
91 bool m_arnHasBeenSet = false;
92 bool m_targetHasBeenSet = false;
93 bool m_clientRequestTokenHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace CodeStarNotifications
98} // namespace Aws
SubscribeRequest & WithTarget(TargetT &&value)
AWS_CODESTARNOTIFICATIONS_API SubscribeRequest()=default
SubscribeRequest & WithClientRequestToken(ClientRequestTokenT &&value)
void SetClientRequestToken(ClientRequestTokenT &&value)
virtual const char * GetServiceRequestName() const override
AWS_CODESTARNOTIFICATIONS_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String