AWS SDK for C++  1.8.126
AWS SDK for C++
CreateSampleFindingsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace GuardDuty
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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 "CreateSampleFindings"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
39  inline const Aws::String& GetDetectorId() const{ return m_detectorId; }
40 
44  inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
45 
49  inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; }
50 
54  inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); }
55 
59  inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); }
60 
64  inline CreateSampleFindingsRequest& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;}
65 
69  inline CreateSampleFindingsRequest& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;}
70 
74  inline CreateSampleFindingsRequest& WithDetectorId(const char* value) { SetDetectorId(value); return *this;}
75 
76 
80  inline const Aws::Vector<Aws::String>& GetFindingTypes() const{ return m_findingTypes; }
81 
85  inline bool FindingTypesHasBeenSet() const { return m_findingTypesHasBeenSet; }
86 
90  inline void SetFindingTypes(const Aws::Vector<Aws::String>& value) { m_findingTypesHasBeenSet = true; m_findingTypes = value; }
91 
95  inline void SetFindingTypes(Aws::Vector<Aws::String>&& value) { m_findingTypesHasBeenSet = true; m_findingTypes = std::move(value); }
96 
100  inline CreateSampleFindingsRequest& WithFindingTypes(const Aws::Vector<Aws::String>& value) { SetFindingTypes(value); return *this;}
101 
105  inline CreateSampleFindingsRequest& WithFindingTypes(Aws::Vector<Aws::String>&& value) { SetFindingTypes(std::move(value)); return *this;}
106 
110  inline CreateSampleFindingsRequest& AddFindingTypes(const Aws::String& value) { m_findingTypesHasBeenSet = true; m_findingTypes.push_back(value); return *this; }
111 
115  inline CreateSampleFindingsRequest& AddFindingTypes(Aws::String&& value) { m_findingTypesHasBeenSet = true; m_findingTypes.push_back(std::move(value)); return *this; }
116 
120  inline CreateSampleFindingsRequest& AddFindingTypes(const char* value) { m_findingTypesHasBeenSet = true; m_findingTypes.push_back(value); return *this; }
121 
122  private:
123 
124  Aws::String m_detectorId;
125  bool m_detectorIdHasBeenSet;
126 
127  Aws::Vector<Aws::String> m_findingTypes;
128  bool m_findingTypesHasBeenSet;
129  };
130 
131 } // namespace Model
132 } // namespace GuardDuty
133 } // namespace Aws
Aws::GuardDuty::Model::CreateSampleFindingsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateSampleFindingsRequest.h:31
Aws::GuardDuty::Model::CreateSampleFindingsRequest::FindingTypesHasBeenSet
bool FindingTypesHasBeenSet() const
Definition: CreateSampleFindingsRequest.h:85
Aws::GuardDuty::Model::CreateSampleFindingsRequest::WithDetectorId
CreateSampleFindingsRequest & WithDetectorId(const char *value)
Definition: CreateSampleFindingsRequest.h:74
Aws::GuardDuty::Model::CreateSampleFindingsRequest::DetectorIdHasBeenSet
bool DetectorIdHasBeenSet() const
Definition: CreateSampleFindingsRequest.h:44
Aws::GuardDuty::Model::CreateSampleFindingsRequest::WithDetectorId
CreateSampleFindingsRequest & WithDetectorId(const Aws::String &value)
Definition: CreateSampleFindingsRequest.h:64
Aws::GuardDuty::Model::CreateSampleFindingsRequest::SetDetectorId
void SetDetectorId(const Aws::String &value)
Definition: CreateSampleFindingsRequest.h:49
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::GuardDuty::Model::CreateSampleFindingsRequest::SerializePayload
Aws::String SerializePayload() const override
AWSVector.h
Aws::GuardDuty::Model::CreateSampleFindingsRequest::CreateSampleFindingsRequest
CreateSampleFindingsRequest()
Aws::GuardDuty::Model::CreateSampleFindingsRequest::WithFindingTypes
CreateSampleFindingsRequest & WithFindingTypes(Aws::Vector< Aws::String > &&value)
Definition: CreateSampleFindingsRequest.h:105
Aws::GuardDuty::Model::CreateSampleFindingsRequest::WithFindingTypes
CreateSampleFindingsRequest & WithFindingTypes(const Aws::Vector< Aws::String > &value)
Definition: CreateSampleFindingsRequest.h:100
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::CreateSampleFindingsRequest::AddFindingTypes
CreateSampleFindingsRequest & AddFindingTypes(Aws::String &&value)
Definition: CreateSampleFindingsRequest.h:115
Aws::GuardDuty::Model::CreateSampleFindingsRequest::GetFindingTypes
const Aws::Vector< Aws::String > & GetFindingTypes() const
Definition: CreateSampleFindingsRequest.h:80
Aws::GuardDuty::Model::CreateSampleFindingsRequest::AddFindingTypes
CreateSampleFindingsRequest & AddFindingTypes(const Aws::String &value)
Definition: CreateSampleFindingsRequest.h:110
Aws::GuardDuty::Model::CreateSampleFindingsRequest::AddFindingTypes
CreateSampleFindingsRequest & AddFindingTypes(const char *value)
Definition: CreateSampleFindingsRequest.h:120
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::CreateSampleFindingsRequest::GetDetectorId
const Aws::String & GetDetectorId() const
Definition: CreateSampleFindingsRequest.h:39
Aws::GuardDuty::Model::CreateSampleFindingsRequest::SetDetectorId
void SetDetectorId(Aws::String &&value)
Definition: CreateSampleFindingsRequest.h:54
AWSString.h
Aws::GuardDuty::Model::CreateSampleFindingsRequest::WithDetectorId
CreateSampleFindingsRequest & WithDetectorId(Aws::String &&value)
Definition: CreateSampleFindingsRequest.h:69
Aws::GuardDuty::Model::CreateSampleFindingsRequest
Definition: CreateSampleFindingsRequest.h:23
Aws
Definition: AccessManagementClient.h:15
GuardDutyRequest.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::GuardDutyRequest
Definition: GuardDutyRequest.h:17
Aws::GuardDuty::Model::CreateSampleFindingsRequest::SetDetectorId
void SetDetectorId(const char *value)
Definition: CreateSampleFindingsRequest.h:59
Aws::GuardDuty::Model::CreateSampleFindingsRequest::SetFindingTypes
void SetFindingTypes(Aws::Vector< Aws::String > &&value)
Definition: CreateSampleFindingsRequest.h:95
Aws::GuardDuty::Model::CreateSampleFindingsRequest::SetFindingTypes
void SetFindingTypes(const Aws::Vector< Aws::String > &value)
Definition: CreateSampleFindingsRequest.h:90