AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
44 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
45 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
46 inline SubscribeRequest& WithArn(const Aws::String& value) { SetArn(value); return *this;}
47 inline SubscribeRequest& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
48 inline SubscribeRequest& WithArn(const char* value) { SetArn(value); return *this;}
50
52
53 inline const Target& GetTarget() const{ return m_target; }
54 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
55 inline void SetTarget(const Target& value) { m_targetHasBeenSet = true; m_target = value; }
56 inline void SetTarget(Target&& value) { m_targetHasBeenSet = true; m_target = std::move(value); }
57 inline SubscribeRequest& WithTarget(const Target& value) { SetTarget(value); return *this;}
58 inline SubscribeRequest& WithTarget(Target&& value) { SetTarget(std::move(value)); return *this;}
60
62
66 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
67 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
68 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
69 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
70 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
71 inline SubscribeRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
72 inline SubscribeRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
73 inline SubscribeRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
75 private:
76
77 Aws::String m_arn;
78 bool m_arnHasBeenSet = false;
79
80 Target m_target;
81 bool m_targetHasBeenSet = false;
82
83 Aws::String m_clientRequestToken;
84 bool m_clientRequestTokenHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace CodeStarNotifications
89} // namespace Aws
SubscribeRequest & WithArn(const char *value)
SubscribeRequest & WithClientRequestToken(const Aws::String &value)
SubscribeRequest & WithArn(Aws::String &&value)
SubscribeRequest & WithTarget(const Target &value)
SubscribeRequest & WithClientRequestToken(const char *value)
SubscribeRequest & WithArn(const Aws::String &value)
SubscribeRequest & WithTarget(Target &&value)
AWS_CODESTARNOTIFICATIONS_API SubscribeRequest()
virtual const char * GetServiceRequestName() const override
AWS_CODESTARNOTIFICATIONS_API Aws::String SerializePayload() const override
SubscribeRequest & WithClientRequestToken(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String