AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SubscribeRequest.h
1
6#pragma once
7#include <aws/codestar-notifications/CodeStarNotifications_EXPORTS.h>
8#include <aws/codestar-notifications/CodeStarNotificationsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/codestar-notifications/model/Target.h>
11#include <utility>
12
13namespace Aws
14{
15namespace CodeStarNotifications
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CODESTARNOTIFICATIONS_API SubscribeRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "Subscribe"; }
32
33 AWS_CODESTARNOTIFICATIONS_API Aws::String SerializePayload() const override;
34
35
37
41 inline const Aws::String& GetArn() const { return m_arn; }
42 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
43 template<typename ArnT = Aws::String>
44 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
45 template<typename ArnT = Aws::String>
46 SubscribeRequest& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
48
50
51 inline const Target& GetTarget() const { return m_target; }
52 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
53 template<typename TargetT = Target>
54 void SetTarget(TargetT&& value) { m_targetHasBeenSet = true; m_target = std::forward<TargetT>(value); }
55 template<typename TargetT = Target>
56 SubscribeRequest& WithTarget(TargetT&& value) { SetTarget(std::forward<TargetT>(value)); return *this;}
58
60
64 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
65 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
66 template<typename ClientRequestTokenT = Aws::String>
67 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
68 template<typename ClientRequestTokenT = Aws::String>
69 SubscribeRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
71 private:
72
73 Aws::String m_arn;
74 bool m_arnHasBeenSet = false;
75
76 Target m_target;
77 bool m_targetHasBeenSet = false;
78
79 Aws::String m_clientRequestToken;
80 bool m_clientRequestTokenHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace CodeStarNotifications
85} // 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