274 lines
9.7 KiB
C++
274 lines
9.7 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
|
|
#include <aws/accessanalyzer/AccessAnalyzerRequest.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <aws/accessanalyzer/model/FindingStatusUpdate.h>
|
|
#include <utility>
|
|
#include <aws/core/utils/UUID.h>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace AccessAnalyzer
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Updates findings with the new values provided in the request.</p><p><h3>See
|
|
* Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/accessanalyzer-2019-11-01/UpdateFindingsRequest">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_ACCESSANALYZER_API UpdateFindingsRequest : public AccessAnalyzerRequest
|
|
{
|
|
public:
|
|
UpdateFindingsRequest();
|
|
|
|
// 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 "UpdateFindings"; }
|
|
|
|
Aws::String SerializePayload() const override;
|
|
|
|
|
|
/**
|
|
* <p>The ARN of the analyzer that generated the findings to update.</p>
|
|
*/
|
|
inline const Aws::String& GetAnalyzerArn() const{ return m_analyzerArn; }
|
|
|
|
/**
|
|
* <p>The ARN of the analyzer that generated the findings to update.</p>
|
|
*/
|
|
inline bool AnalyzerArnHasBeenSet() const { return m_analyzerArnHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The ARN of the analyzer that generated the findings to update.</p>
|
|
*/
|
|
inline void SetAnalyzerArn(const Aws::String& value) { m_analyzerArnHasBeenSet = true; m_analyzerArn = value; }
|
|
|
|
/**
|
|
* <p>The ARN of the analyzer that generated the findings to update.</p>
|
|
*/
|
|
inline void SetAnalyzerArn(Aws::String&& value) { m_analyzerArnHasBeenSet = true; m_analyzerArn = std::move(value); }
|
|
|
|
/**
|
|
* <p>The ARN of the analyzer that generated the findings to update.</p>
|
|
*/
|
|
inline void SetAnalyzerArn(const char* value) { m_analyzerArnHasBeenSet = true; m_analyzerArn.assign(value); }
|
|
|
|
/**
|
|
* <p>The ARN of the analyzer that generated the findings to update.</p>
|
|
*/
|
|
inline UpdateFindingsRequest& WithAnalyzerArn(const Aws::String& value) { SetAnalyzerArn(value); return *this;}
|
|
|
|
/**
|
|
* <p>The ARN of the analyzer that generated the findings to update.</p>
|
|
*/
|
|
inline UpdateFindingsRequest& WithAnalyzerArn(Aws::String&& value) { SetAnalyzerArn(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The ARN of the analyzer that generated the findings to update.</p>
|
|
*/
|
|
inline UpdateFindingsRequest& WithAnalyzerArn(const char* value) { SetAnalyzerArn(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>A client token.</p>
|
|
*/
|
|
inline const Aws::String& GetClientToken() const{ return m_clientToken; }
|
|
|
|
/**
|
|
* <p>A client token.</p>
|
|
*/
|
|
inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
|
|
|
|
/**
|
|
* <p>A client token.</p>
|
|
*/
|
|
inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
|
|
|
|
/**
|
|
* <p>A client token.</p>
|
|
*/
|
|
inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
|
|
|
|
/**
|
|
* <p>A client token.</p>
|
|
*/
|
|
inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
|
|
|
|
/**
|
|
* <p>A client token.</p>
|
|
*/
|
|
inline UpdateFindingsRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
|
|
|
|
/**
|
|
* <p>A client token.</p>
|
|
*/
|
|
inline UpdateFindingsRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>A client token.</p>
|
|
*/
|
|
inline UpdateFindingsRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The IDs of the findings to update.</p>
|
|
*/
|
|
inline const Aws::Vector<Aws::String>& GetIds() const{ return m_ids; }
|
|
|
|
/**
|
|
* <p>The IDs of the findings to update.</p>
|
|
*/
|
|
inline bool IdsHasBeenSet() const { return m_idsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The IDs of the findings to update.</p>
|
|
*/
|
|
inline void SetIds(const Aws::Vector<Aws::String>& value) { m_idsHasBeenSet = true; m_ids = value; }
|
|
|
|
/**
|
|
* <p>The IDs of the findings to update.</p>
|
|
*/
|
|
inline void SetIds(Aws::Vector<Aws::String>&& value) { m_idsHasBeenSet = true; m_ids = std::move(value); }
|
|
|
|
/**
|
|
* <p>The IDs of the findings to update.</p>
|
|
*/
|
|
inline UpdateFindingsRequest& WithIds(const Aws::Vector<Aws::String>& value) { SetIds(value); return *this;}
|
|
|
|
/**
|
|
* <p>The IDs of the findings to update.</p>
|
|
*/
|
|
inline UpdateFindingsRequest& WithIds(Aws::Vector<Aws::String>&& value) { SetIds(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The IDs of the findings to update.</p>
|
|
*/
|
|
inline UpdateFindingsRequest& AddIds(const Aws::String& value) { m_idsHasBeenSet = true; m_ids.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>The IDs of the findings to update.</p>
|
|
*/
|
|
inline UpdateFindingsRequest& AddIds(Aws::String&& value) { m_idsHasBeenSet = true; m_ids.push_back(std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>The IDs of the findings to update.</p>
|
|
*/
|
|
inline UpdateFindingsRequest& AddIds(const char* value) { m_idsHasBeenSet = true; m_ids.push_back(value); return *this; }
|
|
|
|
|
|
/**
|
|
* <p>The ARN of the resource identified in the finding.</p>
|
|
*/
|
|
inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
|
|
|
|
/**
|
|
* <p>The ARN of the resource identified in the finding.</p>
|
|
*/
|
|
inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The ARN of the resource identified in the finding.</p>
|
|
*/
|
|
inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
|
|
|
|
/**
|
|
* <p>The ARN of the resource identified in the finding.</p>
|
|
*/
|
|
inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
|
|
|
|
/**
|
|
* <p>The ARN of the resource identified in the finding.</p>
|
|
*/
|
|
inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
|
|
|
|
/**
|
|
* <p>The ARN of the resource identified in the finding.</p>
|
|
*/
|
|
inline UpdateFindingsRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
|
|
|
|
/**
|
|
* <p>The ARN of the resource identified in the finding.</p>
|
|
*/
|
|
inline UpdateFindingsRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The ARN of the resource identified in the finding.</p>
|
|
*/
|
|
inline UpdateFindingsRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The state represents the action to take to update the finding Status. Use
|
|
* <code>ARCHIVE</code> to change an Active finding to an Archived finding. Use
|
|
* <code>ACTIVE</code> to change an Archived finding to an Active finding.</p>
|
|
*/
|
|
inline const FindingStatusUpdate& GetStatus() const{ return m_status; }
|
|
|
|
/**
|
|
* <p>The state represents the action to take to update the finding Status. Use
|
|
* <code>ARCHIVE</code> to change an Active finding to an Archived finding. Use
|
|
* <code>ACTIVE</code> to change an Archived finding to an Active finding.</p>
|
|
*/
|
|
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The state represents the action to take to update the finding Status. Use
|
|
* <code>ARCHIVE</code> to change an Active finding to an Archived finding. Use
|
|
* <code>ACTIVE</code> to change an Archived finding to an Active finding.</p>
|
|
*/
|
|
inline void SetStatus(const FindingStatusUpdate& value) { m_statusHasBeenSet = true; m_status = value; }
|
|
|
|
/**
|
|
* <p>The state represents the action to take to update the finding Status. Use
|
|
* <code>ARCHIVE</code> to change an Active finding to an Archived finding. Use
|
|
* <code>ACTIVE</code> to change an Archived finding to an Active finding.</p>
|
|
*/
|
|
inline void SetStatus(FindingStatusUpdate&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
|
|
|
|
/**
|
|
* <p>The state represents the action to take to update the finding Status. Use
|
|
* <code>ARCHIVE</code> to change an Active finding to an Archived finding. Use
|
|
* <code>ACTIVE</code> to change an Archived finding to an Active finding.</p>
|
|
*/
|
|
inline UpdateFindingsRequest& WithStatus(const FindingStatusUpdate& value) { SetStatus(value); return *this;}
|
|
|
|
/**
|
|
* <p>The state represents the action to take to update the finding Status. Use
|
|
* <code>ARCHIVE</code> to change an Active finding to an Archived finding. Use
|
|
* <code>ACTIVE</code> to change an Archived finding to an Active finding.</p>
|
|
*/
|
|
inline UpdateFindingsRequest& WithStatus(FindingStatusUpdate&& value) { SetStatus(std::move(value)); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_analyzerArn;
|
|
bool m_analyzerArnHasBeenSet;
|
|
|
|
Aws::String m_clientToken;
|
|
bool m_clientTokenHasBeenSet;
|
|
|
|
Aws::Vector<Aws::String> m_ids;
|
|
bool m_idsHasBeenSet;
|
|
|
|
Aws::String m_resourceArn;
|
|
bool m_resourceArnHasBeenSet;
|
|
|
|
FindingStatusUpdate m_status;
|
|
bool m_statusHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace AccessAnalyzer
|
|
} // namespace Aws
|