AWS SDK for C++  1.9.103
AWS SDK for C++
CreatePublishingDestinationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 #include <aws/core/utils/UUID.h>
14 
15 namespace Aws
16 {
17 namespace GuardDuty
18 {
19 namespace Model
20 {
21 
25  {
26  public:
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::String SerializePayload() const override;
36 
37 
42  inline const Aws::String& GetDetectorId() const{ return m_detectorId; }
43 
48  inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
49 
54  inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; }
55 
60  inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); }
61 
66  inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); }
67 
72  inline CreatePublishingDestinationRequest& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;}
73 
78  inline CreatePublishingDestinationRequest& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;}
79 
84  inline CreatePublishingDestinationRequest& WithDetectorId(const char* value) { SetDetectorId(value); return *this;}
85 
86 
91  inline const DestinationType& GetDestinationType() const{ return m_destinationType; }
92 
97  inline bool DestinationTypeHasBeenSet() const { return m_destinationTypeHasBeenSet; }
98 
103  inline void SetDestinationType(const DestinationType& value) { m_destinationTypeHasBeenSet = true; m_destinationType = value; }
104 
109  inline void SetDestinationType(DestinationType&& value) { m_destinationTypeHasBeenSet = true; m_destinationType = std::move(value); }
110 
115  inline CreatePublishingDestinationRequest& WithDestinationType(const DestinationType& value) { SetDestinationType(value); return *this;}
116 
121  inline CreatePublishingDestinationRequest& WithDestinationType(DestinationType&& value) { SetDestinationType(std::move(value)); return *this;}
122 
123 
128  inline const DestinationProperties& GetDestinationProperties() const{ return m_destinationProperties; }
129 
134  inline bool DestinationPropertiesHasBeenSet() const { return m_destinationPropertiesHasBeenSet; }
135 
140  inline void SetDestinationProperties(const DestinationProperties& value) { m_destinationPropertiesHasBeenSet = true; m_destinationProperties = value; }
141 
146  inline void SetDestinationProperties(DestinationProperties&& value) { m_destinationPropertiesHasBeenSet = true; m_destinationProperties = std::move(value); }
147 
152  inline CreatePublishingDestinationRequest& WithDestinationProperties(const DestinationProperties& value) { SetDestinationProperties(value); return *this;}
153 
158  inline CreatePublishingDestinationRequest& WithDestinationProperties(DestinationProperties&& value) { SetDestinationProperties(std::move(value)); return *this;}
159 
160 
164  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
165 
169  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
170 
174  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
175 
179  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
180 
184  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
185 
189  inline CreatePublishingDestinationRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
190 
194  inline CreatePublishingDestinationRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
195 
199  inline CreatePublishingDestinationRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
200 
201  private:
202 
203  Aws::String m_detectorId;
204  bool m_detectorIdHasBeenSet;
205 
206  DestinationType m_destinationType;
207  bool m_destinationTypeHasBeenSet;
208 
209  DestinationProperties m_destinationProperties;
210  bool m_destinationPropertiesHasBeenSet;
211 
212  Aws::String m_clientToken;
213  bool m_clientTokenHasBeenSet;
214  };
215 
216 } // namespace Model
217 } // namespace GuardDuty
218 } // namespace Aws
Aws::GuardDuty::Model::DestinationProperties
Definition: DestinationProperties.h:34
Aws::GuardDuty::Model::CreatePublishingDestinationRequest::DestinationTypeHasBeenSet
bool DestinationTypeHasBeenSet() const
Definition: CreatePublishingDestinationRequest.h:97
Aws::GuardDuty::Model::CreatePublishingDestinationRequest::GetDestinationProperties
const DestinationProperties & GetDestinationProperties() const
Definition: CreatePublishingDestinationRequest.h:128
Aws::GuardDuty::Model::CreatePublishingDestinationRequest::WithDestinationProperties
CreatePublishingDestinationRequest & WithDestinationProperties(const DestinationProperties &value)
Definition: CreatePublishingDestinationRequest.h:152
Aws::GuardDuty::Model::CreatePublishingDestinationRequest::SetDestinationType
void SetDestinationType(DestinationType &&value)
Definition: CreatePublishingDestinationRequest.h:109
Aws::GuardDuty::Model::CreatePublishingDestinationRequest::SetClientToken
void SetClientToken(const char *value)
Definition: CreatePublishingDestinationRequest.h:184
Aws::GuardDuty::Model::CreatePublishingDestinationRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CreatePublishingDestinationRequest.h:174
Aws::GuardDuty::Model::DestinationType
DestinationType
Definition: DestinationType.h:17
Aws::GuardDuty::Model::CreatePublishingDestinationRequest::WithDetectorId
CreatePublishingDestinationRequest & WithDetectorId(const char *value)
Definition: CreatePublishingDestinationRequest.h:84
Aws::GuardDuty::Model::CreatePublishingDestinationRequest::SetDestinationType
void SetDestinationType(const DestinationType &value)
Definition: CreatePublishingDestinationRequest.h:103
Aws::GuardDuty::Model::CreatePublishingDestinationRequest::WithClientToken
CreatePublishingDestinationRequest & WithClientToken(const Aws::String &value)
Definition: CreatePublishingDestinationRequest.h:189
Aws::GuardDuty::Model::CreatePublishingDestinationRequest::SetDetectorId
void SetDetectorId(Aws::String &&value)
Definition: CreatePublishingDestinationRequest.h:60
Aws::GuardDuty::Model::CreatePublishingDestinationRequest::SetDetectorId
void SetDetectorId(const char *value)
Definition: CreatePublishingDestinationRequest.h:66
DestinationType.h
Aws::GuardDuty::Model::CreatePublishingDestinationRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: CreatePublishingDestinationRequest.h:169
Aws::GuardDuty::Model::CreatePublishingDestinationRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: CreatePublishingDestinationRequest.h:164
GuardDuty_EXPORTS.h
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::CreatePublishingDestinationRequest::GetDetectorId
const Aws::String & GetDetectorId() const
Definition: CreatePublishingDestinationRequest.h:42
Aws::GuardDuty::Model::CreatePublishingDestinationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::GuardDuty::Model::CreatePublishingDestinationRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CreatePublishingDestinationRequest.h:179
AWSString.h
Aws::GuardDuty::Model::CreatePublishingDestinationRequest::WithClientToken
CreatePublishingDestinationRequest & WithClientToken(const char *value)
Definition: CreatePublishingDestinationRequest.h:199
Aws::GuardDuty::Model::CreatePublishingDestinationRequest::SetDetectorId
void SetDetectorId(const Aws::String &value)
Definition: CreatePublishingDestinationRequest.h:54
Aws::GuardDuty::Model::CreatePublishingDestinationRequest::WithDetectorId
CreatePublishingDestinationRequest & WithDetectorId(const Aws::String &value)
Definition: CreatePublishingDestinationRequest.h:72
Aws::GuardDuty::Model::CreatePublishingDestinationRequest::SetDestinationProperties
void SetDestinationProperties(DestinationProperties &&value)
Definition: CreatePublishingDestinationRequest.h:146
Aws::GuardDuty::Model::CreatePublishingDestinationRequest::WithDestinationType
CreatePublishingDestinationRequest & WithDestinationType(DestinationType &&value)
Definition: CreatePublishingDestinationRequest.h:121
DestinationProperties.h
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::CreatePublishingDestinationRequest::WithDetectorId
CreatePublishingDestinationRequest & WithDetectorId(Aws::String &&value)
Definition: CreatePublishingDestinationRequest.h:78
Aws::GuardDuty::Model::CreatePublishingDestinationRequest::SetDestinationProperties
void SetDestinationProperties(const DestinationProperties &value)
Definition: CreatePublishingDestinationRequest.h:140
GuardDutyRequest.h
Aws::GuardDuty::Model::CreatePublishingDestinationRequest
Definition: CreatePublishingDestinationRequest.h:25
Aws::GuardDuty::Model::CreatePublishingDestinationRequest::DestinationPropertiesHasBeenSet
bool DestinationPropertiesHasBeenSet() const
Definition: CreatePublishingDestinationRequest.h:134
Aws::GuardDuty::Model::CreatePublishingDestinationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreatePublishingDestinationRequest.h:33
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::CreatePublishingDestinationRequest::CreatePublishingDestinationRequest
CreatePublishingDestinationRequest()
Aws::GuardDuty::Model::CreatePublishingDestinationRequest::WithDestinationType
CreatePublishingDestinationRequest & WithDestinationType(const DestinationType &value)
Definition: CreatePublishingDestinationRequest.h:115
Aws::GuardDuty::Model::CreatePublishingDestinationRequest::WithDestinationProperties
CreatePublishingDestinationRequest & WithDestinationProperties(DestinationProperties &&value)
Definition: CreatePublishingDestinationRequest.h:158
Aws::GuardDuty::Model::CreatePublishingDestinationRequest::GetDestinationType
const DestinationType & GetDestinationType() const
Definition: CreatePublishingDestinationRequest.h:91
Aws::GuardDuty::GuardDutyRequest
Definition: GuardDutyRequest.h:17
Aws::GuardDuty::Model::CreatePublishingDestinationRequest::DetectorIdHasBeenSet
bool DetectorIdHasBeenSet() const
Definition: CreatePublishingDestinationRequest.h:48
UUID.h
Aws::GuardDuty::Model::CreatePublishingDestinationRequest::WithClientToken
CreatePublishingDestinationRequest & WithClientToken(Aws::String &&value)
Definition: CreatePublishingDestinationRequest.h:194