221 lines
7.6 KiB
C
221 lines
7.6 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/guardduty/GuardDuty_EXPORTS.h>
|
|||
|
|
#include <aws/guardduty/GuardDutyRequest.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|||
|
|
#include <aws/guardduty/model/Feedback.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace GuardDuty
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
*/
|
|||
|
|
class AWS_GUARDDUTY_API UpdateFindingsFeedbackRequest : public GuardDutyRequest
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
UpdateFindingsFeedbackRequest();
|
|||
|
|
|
|||
|
|
// Service request name is the Operation name which will send this request out,
|
|||
|
|
// each operation should has unique request name, so that we can get operation's name from this request.
|
|||
|
|
// Note: this is not true for response, multiple operations may have the same response name,
|
|||
|
|
// so we can not get operation's name from response.
|
|||
|
|
inline virtual const char* GetServiceRequestName() const override { return "UpdateFindingsFeedback"; }
|
|||
|
|
|
|||
|
|
Aws::String SerializePayload() const override;
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the detector associated with the findings to update feedback
|
|||
|
|
* for.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetDetectorId() const{ return m_detectorId; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the detector associated with the findings to update feedback
|
|||
|
|
* for.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the detector associated with the findings to update feedback
|
|||
|
|
* for.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the detector associated with the findings to update feedback
|
|||
|
|
* for.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the detector associated with the findings to update feedback
|
|||
|
|
* for.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the detector associated with the findings to update feedback
|
|||
|
|
* for.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateFindingsFeedbackRequest& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the detector associated with the findings to update feedback
|
|||
|
|
* for.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateFindingsFeedbackRequest& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The ID of the detector associated with the findings to update feedback
|
|||
|
|
* for.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateFindingsFeedbackRequest& WithDetectorId(const char* value) { SetDetectorId(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The IDs of the findings that you want to mark as useful or not useful.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::Vector<Aws::String>& GetFindingIds() const{ return m_findingIds; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The IDs of the findings that you want to mark as useful or not useful.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool FindingIdsHasBeenSet() const { return m_findingIdsHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The IDs of the findings that you want to mark as useful or not useful.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetFindingIds(const Aws::Vector<Aws::String>& value) { m_findingIdsHasBeenSet = true; m_findingIds = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The IDs of the findings that you want to mark as useful or not useful.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetFindingIds(Aws::Vector<Aws::String>&& value) { m_findingIdsHasBeenSet = true; m_findingIds = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The IDs of the findings that you want to mark as useful or not useful.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateFindingsFeedbackRequest& WithFindingIds(const Aws::Vector<Aws::String>& value) { SetFindingIds(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The IDs of the findings that you want to mark as useful or not useful.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateFindingsFeedbackRequest& WithFindingIds(Aws::Vector<Aws::String>&& value) { SetFindingIds(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The IDs of the findings that you want to mark as useful or not useful.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateFindingsFeedbackRequest& AddFindingIds(const Aws::String& value) { m_findingIdsHasBeenSet = true; m_findingIds.push_back(value); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The IDs of the findings that you want to mark as useful or not useful.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateFindingsFeedbackRequest& AddFindingIds(Aws::String&& value) { m_findingIdsHasBeenSet = true; m_findingIds.push_back(std::move(value)); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The IDs of the findings that you want to mark as useful or not useful.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateFindingsFeedbackRequest& AddFindingIds(const char* value) { m_findingIdsHasBeenSet = true; m_findingIds.push_back(value); return *this; }
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The feedback for the finding.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Feedback& GetFeedback() const{ return m_feedback; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The feedback for the finding.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool FeedbackHasBeenSet() const { return m_feedbackHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The feedback for the finding.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetFeedback(const Feedback& value) { m_feedbackHasBeenSet = true; m_feedback = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The feedback for the finding.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetFeedback(Feedback&& value) { m_feedbackHasBeenSet = true; m_feedback = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The feedback for the finding.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateFindingsFeedbackRequest& WithFeedback(const Feedback& value) { SetFeedback(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The feedback for the finding.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateFindingsFeedbackRequest& WithFeedback(Feedback&& value) { SetFeedback(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Additional feedback about the GuardDuty findings.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetComments() const{ return m_comments; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Additional feedback about the GuardDuty findings.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool CommentsHasBeenSet() const { return m_commentsHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Additional feedback about the GuardDuty findings.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetComments(const Aws::String& value) { m_commentsHasBeenSet = true; m_comments = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Additional feedback about the GuardDuty findings.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetComments(Aws::String&& value) { m_commentsHasBeenSet = true; m_comments = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Additional feedback about the GuardDuty findings.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetComments(const char* value) { m_commentsHasBeenSet = true; m_comments.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Additional feedback about the GuardDuty findings.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateFindingsFeedbackRequest& WithComments(const Aws::String& value) { SetComments(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Additional feedback about the GuardDuty findings.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateFindingsFeedbackRequest& WithComments(Aws::String&& value) { SetComments(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Additional feedback about the GuardDuty findings.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateFindingsFeedbackRequest& WithComments(const char* value) { SetComments(value); return *this;}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
Aws::String m_detectorId;
|
|||
|
|
bool m_detectorIdHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::Vector<Aws::String> m_findingIds;
|
|||
|
|
bool m_findingIdsHasBeenSet;
|
|||
|
|
|
|||
|
|
Feedback m_feedback;
|
|||
|
|
bool m_feedbackHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_comments;
|
|||
|
|
bool m_commentsHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace GuardDuty
|
|||
|
|
} // namespace Aws
|