AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DeleteTargetRequest.h
1
6#pragma once
7#include <aws/codestar-notifications/CodeStarNotificationsRequest.h>
8#include <aws/codestar-notifications/CodeStarNotifications_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace CodeStarNotifications {
15namespace Model {
16
20 public:
21 AWS_CODESTARNOTIFICATIONS_API DeleteTargetRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "DeleteTarget"; }
28
29 AWS_CODESTARNOTIFICATIONS_API Aws::String SerializePayload() const override;
30
32
36 inline const Aws::String& GetTargetAddress() const { return m_targetAddress; }
37 inline bool TargetAddressHasBeenSet() const { return m_targetAddressHasBeenSet; }
38 template <typename TargetAddressT = Aws::String>
39 void SetTargetAddress(TargetAddressT&& value) {
40 m_targetAddressHasBeenSet = true;
41 m_targetAddress = std::forward<TargetAddressT>(value);
42 }
43 template <typename TargetAddressT = Aws::String>
44 DeleteTargetRequest& WithTargetAddress(TargetAddressT&& value) {
45 SetTargetAddress(std::forward<TargetAddressT>(value));
46 return *this;
47 }
49
51
57 inline bool GetForceUnsubscribeAll() const { return m_forceUnsubscribeAll; }
58 inline bool ForceUnsubscribeAllHasBeenSet() const { return m_forceUnsubscribeAllHasBeenSet; }
59 inline void SetForceUnsubscribeAll(bool value) {
60 m_forceUnsubscribeAllHasBeenSet = true;
61 m_forceUnsubscribeAll = value;
62 }
65 return *this;
66 }
68 private:
69 Aws::String m_targetAddress;
70
71 bool m_forceUnsubscribeAll{false};
72 bool m_targetAddressHasBeenSet = false;
73 bool m_forceUnsubscribeAllHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace CodeStarNotifications
78} // namespace Aws
virtual const char * GetServiceRequestName() const override
DeleteTargetRequest & WithTargetAddress(TargetAddressT &&value)
AWS_CODESTARNOTIFICATIONS_API DeleteTargetRequest()=default
AWS_CODESTARNOTIFICATIONS_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String