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

The Amazon Resource Name (ARN) of the S3 bucket that the request applies * to.

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

The Amazon Resource Name (ARN) of the S3 bucket that the request applies * to.

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

The Amazon Resource Name (ARN) of the S3 bucket that the request applies * to.

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

The Amazon Resource Name (ARN) of the S3 bucket that the request applies * to.

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

The Amazon Resource Name (ARN) of the S3 bucket that the request applies * to.

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

The Amazon Resource Name (ARN) of the S3 bucket that the request applies * to.

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

The Amazon Resource Name (ARN) of the S3 bucket that the request applies * to.

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

The Amazon Resource Name (ARN) of the S3 bucket that the request applies * to.

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

The new sensitivity score for the bucket. Valid values are: 100, assign the * maximum score and apply the Sensitive label to the bucket; and, null * (empty), assign a score that Amazon Macie calculates automatically after you * submit the request.

*/ inline int GetSensitivityScoreOverride() const{ return m_sensitivityScoreOverride; } /** *

The new sensitivity score for the bucket. Valid values are: 100, assign the * maximum score and apply the Sensitive label to the bucket; and, null * (empty), assign a score that Amazon Macie calculates automatically after you * submit the request.

*/ inline bool SensitivityScoreOverrideHasBeenSet() const { return m_sensitivityScoreOverrideHasBeenSet; } /** *

The new sensitivity score for the bucket. Valid values are: 100, assign the * maximum score and apply the Sensitive label to the bucket; and, null * (empty), assign a score that Amazon Macie calculates automatically after you * submit the request.

*/ inline void SetSensitivityScoreOverride(int value) { m_sensitivityScoreOverrideHasBeenSet = true; m_sensitivityScoreOverride = value; } /** *

The new sensitivity score for the bucket. Valid values are: 100, assign the * maximum score and apply the Sensitive label to the bucket; and, null * (empty), assign a score that Amazon Macie calculates automatically after you * submit the request.

*/ inline UpdateResourceProfileRequest& WithSensitivityScoreOverride(int value) { SetSensitivityScoreOverride(value); return *this;} private: Aws::String m_resourceArn; bool m_resourceArnHasBeenSet = false; int m_sensitivityScoreOverride; bool m_sensitivityScoreOverrideHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws