/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Macie2 { namespace Model { /** */ class CreateSampleFindingsRequest : public Macie2Request { public: AWS_MACIE2_API CreateSampleFindingsRequest(); // 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 "CreateSampleFindings"; } AWS_MACIE2_API Aws::String SerializePayload() const override; /** *

An array of finding types, one for each type of sample finding to create. To * create a sample of every type of finding that Amazon Macie supports, don't * include this array in your request.

*/ inline const Aws::Vector& GetFindingTypes() const{ return m_findingTypes; } /** *

An array of finding types, one for each type of sample finding to create. To * create a sample of every type of finding that Amazon Macie supports, don't * include this array in your request.

*/ inline bool FindingTypesHasBeenSet() const { return m_findingTypesHasBeenSet; } /** *

An array of finding types, one for each type of sample finding to create. To * create a sample of every type of finding that Amazon Macie supports, don't * include this array in your request.

*/ inline void SetFindingTypes(const Aws::Vector& value) { m_findingTypesHasBeenSet = true; m_findingTypes = value; } /** *

An array of finding types, one for each type of sample finding to create. To * create a sample of every type of finding that Amazon Macie supports, don't * include this array in your request.

*/ inline void SetFindingTypes(Aws::Vector&& value) { m_findingTypesHasBeenSet = true; m_findingTypes = std::move(value); } /** *

An array of finding types, one for each type of sample finding to create. To * create a sample of every type of finding that Amazon Macie supports, don't * include this array in your request.

*/ inline CreateSampleFindingsRequest& WithFindingTypes(const Aws::Vector& value) { SetFindingTypes(value); return *this;} /** *

An array of finding types, one for each type of sample finding to create. To * create a sample of every type of finding that Amazon Macie supports, don't * include this array in your request.

*/ inline CreateSampleFindingsRequest& WithFindingTypes(Aws::Vector&& value) { SetFindingTypes(std::move(value)); return *this;} /** *

An array of finding types, one for each type of sample finding to create. To * create a sample of every type of finding that Amazon Macie supports, don't * include this array in your request.

*/ inline CreateSampleFindingsRequest& AddFindingTypes(const FindingType& value) { m_findingTypesHasBeenSet = true; m_findingTypes.push_back(value); return *this; } /** *

An array of finding types, one for each type of sample finding to create. To * create a sample of every type of finding that Amazon Macie supports, don't * include this array in your request.

*/ inline CreateSampleFindingsRequest& AddFindingTypes(FindingType&& value) { m_findingTypesHasBeenSet = true; m_findingTypes.push_back(std::move(value)); return *this; } private: Aws::Vector m_findingTypes; bool m_findingTypesHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws