/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace AccessAnalyzer { namespace Model { /** *

Updates findings with the new values provided in the request.

See * Also:

AWS * API Reference

*/ class UpdateFindingsRequest : public AccessAnalyzerRequest { public: AWS_ACCESSANALYZER_API 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_ACCESSANALYZER_API Aws::String SerializePayload() const override; /** *

The ARN * of the analyzer that generated the findings to update.

*/ inline const Aws::String& GetAnalyzerArn() const{ return m_analyzerArn; } /** *

The ARN * of the analyzer that generated the findings to update.

*/ inline bool AnalyzerArnHasBeenSet() const { return m_analyzerArnHasBeenSet; } /** *

The ARN * of the analyzer that generated the findings to update.

*/ inline void SetAnalyzerArn(const Aws::String& value) { m_analyzerArnHasBeenSet = true; m_analyzerArn = value; } /** *

The ARN * of the analyzer that generated the findings to update.

*/ inline void SetAnalyzerArn(Aws::String&& value) { m_analyzerArnHasBeenSet = true; m_analyzerArn = std::move(value); } /** *

The ARN * of the analyzer that generated the findings to update.

*/ inline void SetAnalyzerArn(const char* value) { m_analyzerArnHasBeenSet = true; m_analyzerArn.assign(value); } /** *

The ARN * of the analyzer that generated the findings to update.

*/ inline UpdateFindingsRequest& WithAnalyzerArn(const Aws::String& value) { SetAnalyzerArn(value); return *this;} /** *

The ARN * of the analyzer that generated the findings to update.

*/ inline UpdateFindingsRequest& WithAnalyzerArn(Aws::String&& value) { SetAnalyzerArn(std::move(value)); return *this;} /** *

The ARN * of the analyzer that generated the findings to update.

*/ inline UpdateFindingsRequest& WithAnalyzerArn(const char* value) { SetAnalyzerArn(value); return *this;} /** *

The state represents the action to take to update the finding Status. Use * ARCHIVE to change an Active finding to an Archived finding. Use * ACTIVE to change an Archived finding to an Active finding.

*/ inline const FindingStatusUpdate& GetStatus() const{ return m_status; } /** *

The state represents the action to take to update the finding Status. Use * ARCHIVE to change an Active finding to an Archived finding. Use * ACTIVE to change an Archived finding to an Active finding.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The state represents the action to take to update the finding Status. Use * ARCHIVE to change an Active finding to an Archived finding. Use * ACTIVE to change an Archived finding to an Active finding.

*/ inline void SetStatus(const FindingStatusUpdate& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The state represents the action to take to update the finding Status. Use * ARCHIVE to change an Active finding to an Archived finding. Use * ACTIVE to change an Archived finding to an Active finding.

*/ inline void SetStatus(FindingStatusUpdate&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The state represents the action to take to update the finding Status. Use * ARCHIVE to change an Active finding to an Archived finding. Use * ACTIVE to change an Archived finding to an Active finding.

*/ inline UpdateFindingsRequest& WithStatus(const FindingStatusUpdate& value) { SetStatus(value); return *this;} /** *

The state represents the action to take to update the finding Status. Use * ARCHIVE to change an Active finding to an Archived finding. Use * ACTIVE to change an Archived finding to an Active finding.

*/ inline UpdateFindingsRequest& WithStatus(FindingStatusUpdate&& value) { SetStatus(std::move(value)); return *this;} /** *

The IDs of the findings to update.

*/ inline const Aws::Vector& GetIds() const{ return m_ids; } /** *

The IDs of the findings to update.

*/ inline bool IdsHasBeenSet() const { return m_idsHasBeenSet; } /** *

The IDs of the findings to update.

*/ inline void SetIds(const Aws::Vector& value) { m_idsHasBeenSet = true; m_ids = value; } /** *

The IDs of the findings to update.

*/ inline void SetIds(Aws::Vector&& value) { m_idsHasBeenSet = true; m_ids = std::move(value); } /** *

The IDs of the findings to update.

*/ inline UpdateFindingsRequest& WithIds(const Aws::Vector& value) { SetIds(value); return *this;} /** *

The IDs of the findings to update.

*/ inline UpdateFindingsRequest& WithIds(Aws::Vector&& value) { SetIds(std::move(value)); return *this;} /** *

The IDs of the findings to update.

*/ inline UpdateFindingsRequest& AddIds(const Aws::String& value) { m_idsHasBeenSet = true; m_ids.push_back(value); return *this; } /** *

The IDs of the findings to update.

*/ inline UpdateFindingsRequest& AddIds(Aws::String&& value) { m_idsHasBeenSet = true; m_ids.push_back(std::move(value)); return *this; } /** *

The IDs of the findings to update.

*/ inline UpdateFindingsRequest& AddIds(const char* value) { m_idsHasBeenSet = true; m_ids.push_back(value); return *this; } /** *

The ARN of the resource identified in the finding.

*/ inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } /** *

The ARN of the resource identified in the finding.

*/ inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } /** *

The ARN of the resource identified in the finding.

*/ inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } /** *

The ARN of the resource identified in the finding.

*/ inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } /** *

The ARN of the resource identified in the finding.

*/ inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } /** *

The ARN of the resource identified in the finding.

*/ inline UpdateFindingsRequest& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} /** *

The ARN of the resource identified in the finding.

*/ inline UpdateFindingsRequest& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} /** *

The ARN of the resource identified in the finding.

*/ inline UpdateFindingsRequest& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} /** *

A client token.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

A client token.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

A client token.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

A client token.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

A client token.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

A client token.

*/ inline UpdateFindingsRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

A client token.

*/ inline UpdateFindingsRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

A client token.

*/ inline UpdateFindingsRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} private: Aws::String m_analyzerArn; bool m_analyzerArnHasBeenSet = false; FindingStatusUpdate m_status; bool m_statusHasBeenSet = false; Aws::Vector m_ids; bool m_idsHasBeenSet = false; Aws::String m_resourceArn; bool m_resourceArnHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; }; } // namespace Model } // namespace AccessAnalyzer } // namespace Aws