AWS SDK for C++

AWS SDK for C++ Version 1.11.750

Loading...
Searching...
No Matches
CreatePublishingDestinationRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/guardduty/GuardDutyRequest.h>
11#include <aws/guardduty/GuardDuty_EXPORTS.h>
12#include <aws/guardduty/model/DestinationProperties.h>
13#include <aws/guardduty/model/DestinationType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace GuardDuty {
19namespace Model {
20
24 public:
25 AWS_GUARDDUTY_API CreatePublishingDestinationRequest() = 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 "CreatePublishingDestination"; }
32
33 AWS_GUARDDUTY_API Aws::String SerializePayload() const override;
34
36
43 inline const Aws::String& GetDetectorId() const { return m_detectorId; }
44 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
45 template <typename DetectorIdT = Aws::String>
46 void SetDetectorId(DetectorIdT&& value) {
47 m_detectorIdHasBeenSet = true;
48 m_detectorId = std::forward<DetectorIdT>(value);
49 }
50 template <typename DetectorIdT = Aws::String>
52 SetDetectorId(std::forward<DetectorIdT>(value));
53 return *this;
54 }
56
58
62 inline DestinationType GetDestinationType() const { return m_destinationType; }
63 inline bool DestinationTypeHasBeenSet() const { return m_destinationTypeHasBeenSet; }
65 m_destinationTypeHasBeenSet = true;
66 m_destinationType = value;
67 }
69 SetDestinationType(value);
70 return *this;
71 }
73
75
79 inline const DestinationProperties& GetDestinationProperties() const { return m_destinationProperties; }
80 inline bool DestinationPropertiesHasBeenSet() const { return m_destinationPropertiesHasBeenSet; }
81 template <typename DestinationPropertiesT = DestinationProperties>
82 void SetDestinationProperties(DestinationPropertiesT&& value) {
83 m_destinationPropertiesHasBeenSet = true;
84 m_destinationProperties = std::forward<DestinationPropertiesT>(value);
85 }
86 template <typename DestinationPropertiesT = DestinationProperties>
88 SetDestinationProperties(std::forward<DestinationPropertiesT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetClientToken() const { return m_clientToken; }
98 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
99 template <typename ClientTokenT = Aws::String>
100 void SetClientToken(ClientTokenT&& value) {
101 m_clientTokenHasBeenSet = true;
102 m_clientToken = std::forward<ClientTokenT>(value);
103 }
104 template <typename ClientTokenT = Aws::String>
106 SetClientToken(std::forward<ClientTokenT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
116 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
117 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
118 void SetTags(TagsT&& value) {
119 m_tagsHasBeenSet = true;
120 m_tags = std::forward<TagsT>(value);
121 }
122 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
124 SetTags(std::forward<TagsT>(value));
125 return *this;
126 }
127 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
128 CreatePublishingDestinationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
129 m_tagsHasBeenSet = true;
130 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
131 return *this;
132 }
134 private:
135 Aws::String m_detectorId;
136
137 DestinationType m_destinationType{DestinationType::NOT_SET};
138
139 DestinationProperties m_destinationProperties;
140
142
144 bool m_detectorIdHasBeenSet = false;
145 bool m_destinationTypeHasBeenSet = false;
146 bool m_destinationPropertiesHasBeenSet = false;
147 bool m_clientTokenHasBeenSet = true;
148 bool m_tagsHasBeenSet = false;
149};
150
151} // namespace Model
152} // namespace GuardDuty
153} // namespace Aws
AWS_GUARDDUTY_API CreatePublishingDestinationRequest()=default
CreatePublishingDestinationRequest & WithClientToken(ClientTokenT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreatePublishingDestinationRequest & WithDestinationProperties(DestinationPropertiesT &&value)
CreatePublishingDestinationRequest & WithDestinationType(DestinationType value)
CreatePublishingDestinationRequest & WithDetectorId(DetectorIdT &&value)
CreatePublishingDestinationRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_GUARDDUTY_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String