/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Macie2 { namespace Model { class GetResourceProfileResult { public: AWS_MACIE2_API GetResourceProfileResult(); AWS_MACIE2_API GetResourceProfileResult(const Aws::AmazonWebServiceResult& result); AWS_MACIE2_API GetResourceProfileResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The date and time, in UTC and extended ISO 8601 format, when Amazon Macie * most recently recalculated sensitive data discovery statistics and details for * the bucket. If the bucket's sensitivity score is calculated automatically, this * includes the score.

*/ inline const Aws::Utils::DateTime& GetProfileUpdatedAt() const{ return m_profileUpdatedAt; } /** *

The date and time, in UTC and extended ISO 8601 format, when Amazon Macie * most recently recalculated sensitive data discovery statistics and details for * the bucket. If the bucket's sensitivity score is calculated automatically, this * includes the score.

*/ inline void SetProfileUpdatedAt(const Aws::Utils::DateTime& value) { m_profileUpdatedAt = value; } /** *

The date and time, in UTC and extended ISO 8601 format, when Amazon Macie * most recently recalculated sensitive data discovery statistics and details for * the bucket. If the bucket's sensitivity score is calculated automatically, this * includes the score.

*/ inline void SetProfileUpdatedAt(Aws::Utils::DateTime&& value) { m_profileUpdatedAt = std::move(value); } /** *

The date and time, in UTC and extended ISO 8601 format, when Amazon Macie * most recently recalculated sensitive data discovery statistics and details for * the bucket. If the bucket's sensitivity score is calculated automatically, this * includes the score.

*/ inline GetResourceProfileResult& WithProfileUpdatedAt(const Aws::Utils::DateTime& value) { SetProfileUpdatedAt(value); return *this;} /** *

The date and time, in UTC and extended ISO 8601 format, when Amazon Macie * most recently recalculated sensitive data discovery statistics and details for * the bucket. If the bucket's sensitivity score is calculated automatically, this * includes the score.

*/ inline GetResourceProfileResult& WithProfileUpdatedAt(Aws::Utils::DateTime&& value) { SetProfileUpdatedAt(std::move(value)); return *this;} /** *

The current sensitivity score for the bucket, ranging from -1 (classification * error) to 100 (sensitive). By default, this score is calculated automatically * based on the amount of data that Amazon Macie has analyzed in the bucket and the * amount of sensitive data that Macie has found in the bucket.

*/ inline int GetSensitivityScore() const{ return m_sensitivityScore; } /** *

The current sensitivity score for the bucket, ranging from -1 (classification * error) to 100 (sensitive). By default, this score is calculated automatically * based on the amount of data that Amazon Macie has analyzed in the bucket and the * amount of sensitive data that Macie has found in the bucket.

*/ inline void SetSensitivityScore(int value) { m_sensitivityScore = value; } /** *

The current sensitivity score for the bucket, ranging from -1 (classification * error) to 100 (sensitive). By default, this score is calculated automatically * based on the amount of data that Amazon Macie has analyzed in the bucket and the * amount of sensitive data that Macie has found in the bucket.

*/ inline GetResourceProfileResult& WithSensitivityScore(int value) { SetSensitivityScore(value); return *this;} /** *

Specifies whether the bucket's current sensitivity score was set manually. If * this value is true, the score was manually changed to 100. If this value is * false, the score was calculated automatically by Amazon Macie.

*/ inline bool GetSensitivityScoreOverridden() const{ return m_sensitivityScoreOverridden; } /** *

Specifies whether the bucket's current sensitivity score was set manually. If * this value is true, the score was manually changed to 100. If this value is * false, the score was calculated automatically by Amazon Macie.

*/ inline void SetSensitivityScoreOverridden(bool value) { m_sensitivityScoreOverridden = value; } /** *

Specifies whether the bucket's current sensitivity score was set manually. If * this value is true, the score was manually changed to 100. If this value is * false, the score was calculated automatically by Amazon Macie.

*/ inline GetResourceProfileResult& WithSensitivityScoreOverridden(bool value) { SetSensitivityScoreOverridden(value); return *this;} /** *

The sensitive data discovery statistics for the bucket. The statistics * capture the results of automated sensitive data discovery activities that Amazon * Macie has performed for the bucket.

*/ inline const ResourceStatistics& GetStatistics() const{ return m_statistics; } /** *

The sensitive data discovery statistics for the bucket. The statistics * capture the results of automated sensitive data discovery activities that Amazon * Macie has performed for the bucket.

*/ inline void SetStatistics(const ResourceStatistics& value) { m_statistics = value; } /** *

The sensitive data discovery statistics for the bucket. The statistics * capture the results of automated sensitive data discovery activities that Amazon * Macie has performed for the bucket.

*/ inline void SetStatistics(ResourceStatistics&& value) { m_statistics = std::move(value); } /** *

The sensitive data discovery statistics for the bucket. The statistics * capture the results of automated sensitive data discovery activities that Amazon * Macie has performed for the bucket.

*/ inline GetResourceProfileResult& WithStatistics(const ResourceStatistics& value) { SetStatistics(value); return *this;} /** *

The sensitive data discovery statistics for the bucket. The statistics * capture the results of automated sensitive data discovery activities that Amazon * Macie has performed for the bucket.

*/ inline GetResourceProfileResult& WithStatistics(ResourceStatistics&& value) { SetStatistics(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetResourceProfileResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetResourceProfileResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetResourceProfileResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Utils::DateTime m_profileUpdatedAt; int m_sensitivityScore; bool m_sensitivityScoreOverridden; ResourceStatistics m_statistics; Aws::String m_requestId; }; } // namespace Model } // namespace Macie2 } // namespace Aws