/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SESV2 { namespace Model { /** *

A recommendation generated for your account.

See Also:

AWS * API Reference

*/ class Recommendation { public: AWS_SESV2_API Recommendation(); AWS_SESV2_API Recommendation(Aws::Utils::Json::JsonView jsonValue); AWS_SESV2_API Recommendation& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SESV2_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The resource affected by the recommendation, with values like * arn:aws:ses:us-east-1:123456789012:identity/example.com.

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

The resource affected by the recommendation, with values like * arn:aws:ses:us-east-1:123456789012:identity/example.com.

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

The resource affected by the recommendation, with values like * arn:aws:ses:us-east-1:123456789012:identity/example.com.

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

The resource affected by the recommendation, with values like * arn:aws:ses:us-east-1:123456789012:identity/example.com.

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

The resource affected by the recommendation, with values like * arn:aws:ses:us-east-1:123456789012:identity/example.com.

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

The resource affected by the recommendation, with values like * arn:aws:ses:us-east-1:123456789012:identity/example.com.

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

The resource affected by the recommendation, with values like * arn:aws:ses:us-east-1:123456789012:identity/example.com.

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

The resource affected by the recommendation, with values like * arn:aws:ses:us-east-1:123456789012:identity/example.com.

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

The recommendation type, with values like DKIM, * SPF, DMARC or BIMI.

*/ inline const RecommendationType& GetType() const{ return m_type; } /** *

The recommendation type, with values like DKIM, * SPF, DMARC or BIMI.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The recommendation type, with values like DKIM, * SPF, DMARC or BIMI.

*/ inline void SetType(const RecommendationType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The recommendation type, with values like DKIM, * SPF, DMARC or BIMI.

*/ inline void SetType(RecommendationType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The recommendation type, with values like DKIM, * SPF, DMARC or BIMI.

*/ inline Recommendation& WithType(const RecommendationType& value) { SetType(value); return *this;} /** *

The recommendation type, with values like DKIM, * SPF, DMARC or BIMI.

*/ inline Recommendation& WithType(RecommendationType&& value) { SetType(std::move(value)); return *this;} /** *

The recommendation description / disambiguator - e.g. DKIM1 and * DKIM2 are different recommendations about your DKIM setup.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The recommendation description / disambiguator - e.g. DKIM1 and * DKIM2 are different recommendations about your DKIM setup.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The recommendation description / disambiguator - e.g. DKIM1 and * DKIM2 are different recommendations about your DKIM setup.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The recommendation description / disambiguator - e.g. DKIM1 and * DKIM2 are different recommendations about your DKIM setup.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The recommendation description / disambiguator - e.g. DKIM1 and * DKIM2 are different recommendations about your DKIM setup.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The recommendation description / disambiguator - e.g. DKIM1 and * DKIM2 are different recommendations about your DKIM setup.

*/ inline Recommendation& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The recommendation description / disambiguator - e.g. DKIM1 and * DKIM2 are different recommendations about your DKIM setup.

*/ inline Recommendation& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The recommendation description / disambiguator - e.g. DKIM1 and * DKIM2 are different recommendations about your DKIM setup.

*/ inline Recommendation& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The recommendation status, with values like OPEN or * FIXED.

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

The recommendation status, with values like OPEN or * FIXED.

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

The recommendation status, with values like OPEN or * FIXED.

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

The recommendation status, with values like OPEN or * FIXED.

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

The recommendation status, with values like OPEN or * FIXED.

*/ inline Recommendation& WithStatus(const RecommendationStatus& value) { SetStatus(value); return *this;} /** *

The recommendation status, with values like OPEN or * FIXED.

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

The first time this issue was encountered and the recommendation was * generated.

*/ inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; } /** *

The first time this issue was encountered and the recommendation was * generated.

*/ inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; } /** *

The first time this issue was encountered and the recommendation was * generated.

*/ inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = value; } /** *

The first time this issue was encountered and the recommendation was * generated.

*/ inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::move(value); } /** *

The first time this issue was encountered and the recommendation was * generated.

*/ inline Recommendation& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;} /** *

The first time this issue was encountered and the recommendation was * generated.

*/ inline Recommendation& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;} /** *

The last time the recommendation was updated.

*/ inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const{ return m_lastUpdatedTimestamp; } /** *

The last time the recommendation was updated.

*/ inline bool LastUpdatedTimestampHasBeenSet() const { return m_lastUpdatedTimestampHasBeenSet; } /** *

The last time the recommendation was updated.

*/ inline void SetLastUpdatedTimestamp(const Aws::Utils::DateTime& value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = value; } /** *

The last time the recommendation was updated.

*/ inline void SetLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = std::move(value); } /** *

The last time the recommendation was updated.

*/ inline Recommendation& WithLastUpdatedTimestamp(const Aws::Utils::DateTime& value) { SetLastUpdatedTimestamp(value); return *this;} /** *

The last time the recommendation was updated.

*/ inline Recommendation& WithLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { SetLastUpdatedTimestamp(std::move(value)); return *this;} /** *

The recommendation impact, with values like HIGH or * LOW.

*/ inline const RecommendationImpact& GetImpact() const{ return m_impact; } /** *

The recommendation impact, with values like HIGH or * LOW.

*/ inline bool ImpactHasBeenSet() const { return m_impactHasBeenSet; } /** *

The recommendation impact, with values like HIGH or * LOW.

*/ inline void SetImpact(const RecommendationImpact& value) { m_impactHasBeenSet = true; m_impact = value; } /** *

The recommendation impact, with values like HIGH or * LOW.

*/ inline void SetImpact(RecommendationImpact&& value) { m_impactHasBeenSet = true; m_impact = std::move(value); } /** *

The recommendation impact, with values like HIGH or * LOW.

*/ inline Recommendation& WithImpact(const RecommendationImpact& value) { SetImpact(value); return *this;} /** *

The recommendation impact, with values like HIGH or * LOW.

*/ inline Recommendation& WithImpact(RecommendationImpact&& value) { SetImpact(std::move(value)); return *this;} private: Aws::String m_resourceArn; bool m_resourceArnHasBeenSet = false; RecommendationType m_type; bool m_typeHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; RecommendationStatus m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_createdTimestamp; bool m_createdTimestampHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedTimestamp; bool m_lastUpdatedTimestampHasBeenSet = false; RecommendationImpact m_impact; bool m_impactHasBeenSet = false; }; } // namespace Model } // namespace SESV2 } // namespace Aws