AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreatePublishingDestinationRequest.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/guardduty/GuardDutyRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/guardduty/model/DestinationType.h>
11#include <aws/guardduty/model/DestinationProperties.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace GuardDuty
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_GUARDDUTY_API CreatePublishingDestinationRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreatePublishingDestination"; }
34
35 AWS_GUARDDUTY_API Aws::String SerializePayload() const override;
36
37
39
46 inline const Aws::String& GetDetectorId() const { return m_detectorId; }
47 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
48 template<typename DetectorIdT = Aws::String>
49 void SetDetectorId(DetectorIdT&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::forward<DetectorIdT>(value); }
50 template<typename DetectorIdT = Aws::String>
51 CreatePublishingDestinationRequest& WithDetectorId(DetectorIdT&& value) { SetDetectorId(std::forward<DetectorIdT>(value)); return *this;}
53
55
59 inline DestinationType GetDestinationType() const { return m_destinationType; }
60 inline bool DestinationTypeHasBeenSet() const { return m_destinationTypeHasBeenSet; }
61 inline void SetDestinationType(DestinationType value) { m_destinationTypeHasBeenSet = true; m_destinationType = value; }
64
66
70 inline const DestinationProperties& GetDestinationProperties() const { return m_destinationProperties; }
71 inline bool DestinationPropertiesHasBeenSet() const { return m_destinationPropertiesHasBeenSet; }
72 template<typename DestinationPropertiesT = DestinationProperties>
73 void SetDestinationProperties(DestinationPropertiesT&& value) { m_destinationPropertiesHasBeenSet = true; m_destinationProperties = std::forward<DestinationPropertiesT>(value); }
74 template<typename DestinationPropertiesT = DestinationProperties>
75 CreatePublishingDestinationRequest& WithDestinationProperties(DestinationPropertiesT&& value) { SetDestinationProperties(std::forward<DestinationPropertiesT>(value)); return *this;}
77
79
82 inline const Aws::String& GetClientToken() const { return m_clientToken; }
83 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
84 template<typename ClientTokenT = Aws::String>
85 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
86 template<typename ClientTokenT = Aws::String>
87 CreatePublishingDestinationRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
89 private:
90
91 Aws::String m_detectorId;
92 bool m_detectorIdHasBeenSet = false;
93
95 bool m_destinationTypeHasBeenSet = false;
96
97 DestinationProperties m_destinationProperties;
98 bool m_destinationPropertiesHasBeenSet = false;
99
101 bool m_clientTokenHasBeenSet = true;
102 };
103
104} // namespace Model
105} // namespace GuardDuty
106} // namespace Aws
AWS_GUARDDUTY_API CreatePublishingDestinationRequest()=default
CreatePublishingDestinationRequest & WithClientToken(ClientTokenT &&value)
CreatePublishingDestinationRequest & WithDestinationProperties(DestinationPropertiesT &&value)
CreatePublishingDestinationRequest & WithDestinationType(DestinationType value)
CreatePublishingDestinationRequest & WithDetectorId(DetectorIdT &&value)
AWS_GUARDDUTY_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String