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

The details about any failures associated with the scanning configuration of * a repository.

See Also:

AWS * API Reference

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

The name of the repository.

*/ inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; } /** *

The name of the repository.

*/ inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; } /** *

The name of the repository.

*/ inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; } /** *

The name of the repository.

*/ inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); } /** *

The name of the repository.

*/ inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); } /** *

The name of the repository.

*/ inline RepositoryScanningConfigurationFailure& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;} /** *

The name of the repository.

*/ inline RepositoryScanningConfigurationFailure& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;} /** *

The name of the repository.

*/ inline RepositoryScanningConfigurationFailure& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;} /** *

The failure code.

*/ inline const ScanningConfigurationFailureCode& GetFailureCode() const{ return m_failureCode; } /** *

The failure code.

*/ inline bool FailureCodeHasBeenSet() const { return m_failureCodeHasBeenSet; } /** *

The failure code.

*/ inline void SetFailureCode(const ScanningConfigurationFailureCode& value) { m_failureCodeHasBeenSet = true; m_failureCode = value; } /** *

The failure code.

*/ inline void SetFailureCode(ScanningConfigurationFailureCode&& value) { m_failureCodeHasBeenSet = true; m_failureCode = std::move(value); } /** *

The failure code.

*/ inline RepositoryScanningConfigurationFailure& WithFailureCode(const ScanningConfigurationFailureCode& value) { SetFailureCode(value); return *this;} /** *

The failure code.

*/ inline RepositoryScanningConfigurationFailure& WithFailureCode(ScanningConfigurationFailureCode&& value) { SetFailureCode(std::move(value)); return *this;} /** *

The reason for the failure.

*/ inline const Aws::String& GetFailureReason() const{ return m_failureReason; } /** *

The reason for the failure.

*/ inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; } /** *

The reason for the failure.

*/ inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; } /** *

The reason for the failure.

*/ inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); } /** *

The reason for the failure.

*/ inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); } /** *

The reason for the failure.

*/ inline RepositoryScanningConfigurationFailure& WithFailureReason(const Aws::String& value) { SetFailureReason(value); return *this;} /** *

The reason for the failure.

*/ inline RepositoryScanningConfigurationFailure& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;} /** *

The reason for the failure.

*/ inline RepositoryScanningConfigurationFailure& WithFailureReason(const char* value) { SetFailureReason(value); return *this;} private: Aws::String m_repositoryName; bool m_repositoryNameHasBeenSet = false; ScanningConfigurationFailureCode m_failureCode; bool m_failureCodeHasBeenSet = false; Aws::String m_failureReason; bool m_failureReasonHasBeenSet = false; }; } // namespace Model } // namespace ECR } // namespace Aws