AWS SDK for C++  1.9.104
AWS SDK for C++
ArchiveFindingsRequest.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 "ArchiveFindings"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
40  inline const Aws::String& GetDetectorId() const{ return m_detectorId; }
41 
46  inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
47 
52  inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; }
53 
58  inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); }
59 
64  inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); }
65 
70  inline ArchiveFindingsRequest& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;}
71 
76  inline ArchiveFindingsRequest& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;}
77 
82  inline ArchiveFindingsRequest& WithDetectorId(const char* value) { SetDetectorId(value); return *this;}
83 
84 
88  inline const Aws::Vector<Aws::String>& GetFindingIds() const{ return m_findingIds; }
89 
93  inline bool FindingIdsHasBeenSet() const { return m_findingIdsHasBeenSet; }
94 
98  inline void SetFindingIds(const Aws::Vector<Aws::String>& value) { m_findingIdsHasBeenSet = true; m_findingIds = value; }
99 
103  inline void SetFindingIds(Aws::Vector<Aws::String>&& value) { m_findingIdsHasBeenSet = true; m_findingIds = std::move(value); }
104 
108  inline ArchiveFindingsRequest& WithFindingIds(const Aws::Vector<Aws::String>& value) { SetFindingIds(value); return *this;}
109 
113  inline ArchiveFindingsRequest& WithFindingIds(Aws::Vector<Aws::String>&& value) { SetFindingIds(std::move(value)); return *this;}
114 
118  inline ArchiveFindingsRequest& AddFindingIds(const Aws::String& value) { m_findingIdsHasBeenSet = true; m_findingIds.push_back(value); return *this; }
119 
123  inline ArchiveFindingsRequest& AddFindingIds(Aws::String&& value) { m_findingIdsHasBeenSet = true; m_findingIds.push_back(std::move(value)); return *this; }
124 
128  inline ArchiveFindingsRequest& AddFindingIds(const char* value) { m_findingIdsHasBeenSet = true; m_findingIds.push_back(value); return *this; }
129 
130  private:
131 
132  Aws::String m_detectorId;
133  bool m_detectorIdHasBeenSet;
134 
135  Aws::Vector<Aws::String> m_findingIds;
136  bool m_findingIdsHasBeenSet;
137  };
138 
139 } // namespace Model
140 } // namespace GuardDuty
141 } // namespace Aws
Aws::GuardDuty::Model::ArchiveFindingsRequest::WithFindingIds
ArchiveFindingsRequest & WithFindingIds(const Aws::Vector< Aws::String > &value)
Definition: ArchiveFindingsRequest.h:108
Aws::GuardDuty::Model::ArchiveFindingsRequest::DetectorIdHasBeenSet
bool DetectorIdHasBeenSet() const
Definition: ArchiveFindingsRequest.h:46
Aws::GuardDuty::Model::ArchiveFindingsRequest::SetFindingIds
void SetFindingIds(Aws::Vector< Aws::String > &&value)
Definition: ArchiveFindingsRequest.h:103
Aws::GuardDuty::Model::ArchiveFindingsRequest::WithFindingIds
ArchiveFindingsRequest & WithFindingIds(Aws::Vector< Aws::String > &&value)
Definition: ArchiveFindingsRequest.h:113
Aws::GuardDuty::Model::ArchiveFindingsRequest::SetDetectorId
void SetDetectorId(const Aws::String &value)
Definition: ArchiveFindingsRequest.h:52
Aws::GuardDuty::Model::ArchiveFindingsRequest::AddFindingIds
ArchiveFindingsRequest & AddFindingIds(const char *value)
Definition: ArchiveFindingsRequest.h:128
Aws::GuardDuty::Model::ArchiveFindingsRequest::AddFindingIds
ArchiveFindingsRequest & AddFindingIds(const Aws::String &value)
Definition: ArchiveFindingsRequest.h:118
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::GuardDuty::Model::ArchiveFindingsRequest::SetDetectorId
void SetDetectorId(Aws::String &&value)
Definition: ArchiveFindingsRequest.h:58
Aws::GuardDuty::Model::ArchiveFindingsRequest::GetDetectorId
const Aws::String & GetDetectorId() const
Definition: ArchiveFindingsRequest.h:40
Aws::GuardDuty::Model::ArchiveFindingsRequest::ArchiveFindingsRequest
ArchiveFindingsRequest()
Aws::GuardDuty::Model::ArchiveFindingsRequest
Definition: ArchiveFindingsRequest.h:23
GuardDuty_EXPORTS.h
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
AWSString.h
Aws::GuardDuty::Model::ArchiveFindingsRequest::WithDetectorId
ArchiveFindingsRequest & WithDetectorId(const Aws::String &value)
Definition: ArchiveFindingsRequest.h:70
Aws::GuardDuty::Model::ArchiveFindingsRequest::SetFindingIds
void SetFindingIds(const Aws::Vector< Aws::String > &value)
Definition: ArchiveFindingsRequest.h:98
Aws::GuardDuty::Model::ArchiveFindingsRequest::WithDetectorId
ArchiveFindingsRequest & WithDetectorId(const char *value)
Definition: ArchiveFindingsRequest.h:82
Aws::GuardDuty::Model::ArchiveFindingsRequest::FindingIdsHasBeenSet
bool FindingIdsHasBeenSet() const
Definition: ArchiveFindingsRequest.h:93
Aws::GuardDuty::Model::ArchiveFindingsRequest::GetFindingIds
const Aws::Vector< Aws::String > & GetFindingIds() const
Definition: ArchiveFindingsRequest.h:88
Aws::GuardDuty::Model::ArchiveFindingsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ArchiveFindingsRequest.h:31
Aws::GuardDuty::Model::ArchiveFindingsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::ArchiveFindingsRequest::SetDetectorId
void SetDetectorId(const char *value)
Definition: ArchiveFindingsRequest.h:64
GuardDutyRequest.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::ArchiveFindingsRequest::AddFindingIds
ArchiveFindingsRequest & AddFindingIds(Aws::String &&value)
Definition: ArchiveFindingsRequest.h:123
Aws::GuardDuty::GuardDutyRequest
Definition: GuardDutyRequest.h:17
Aws::GuardDuty::Model::ArchiveFindingsRequest::WithDetectorId
ArchiveFindingsRequest & WithDetectorId(Aws::String &&value)
Definition: ArchiveFindingsRequest.h:76