/** * 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 ServiceCatalog { namespace Model { /** *

An object containing information about the error, along with identifying * information about the self-service action and its associations.

See * Also:

AWS * API Reference

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

The self-service action identifier. For example, * act-fs7abcd89wxyz.

*/ inline const Aws::String& GetServiceActionId() const{ return m_serviceActionId; } /** *

The self-service action identifier. For example, * act-fs7abcd89wxyz.

*/ inline bool ServiceActionIdHasBeenSet() const { return m_serviceActionIdHasBeenSet; } /** *

The self-service action identifier. For example, * act-fs7abcd89wxyz.

*/ inline void SetServiceActionId(const Aws::String& value) { m_serviceActionIdHasBeenSet = true; m_serviceActionId = value; } /** *

The self-service action identifier. For example, * act-fs7abcd89wxyz.

*/ inline void SetServiceActionId(Aws::String&& value) { m_serviceActionIdHasBeenSet = true; m_serviceActionId = std::move(value); } /** *

The self-service action identifier. For example, * act-fs7abcd89wxyz.

*/ inline void SetServiceActionId(const char* value) { m_serviceActionIdHasBeenSet = true; m_serviceActionId.assign(value); } /** *

The self-service action identifier. For example, * act-fs7abcd89wxyz.

*/ inline FailedServiceActionAssociation& WithServiceActionId(const Aws::String& value) { SetServiceActionId(value); return *this;} /** *

The self-service action identifier. For example, * act-fs7abcd89wxyz.

*/ inline FailedServiceActionAssociation& WithServiceActionId(Aws::String&& value) { SetServiceActionId(std::move(value)); return *this;} /** *

The self-service action identifier. For example, * act-fs7abcd89wxyz.

*/ inline FailedServiceActionAssociation& WithServiceActionId(const char* value) { SetServiceActionId(value); return *this;} /** *

The product identifier. For example, prod-abcdzk7xy33qa.

*/ inline const Aws::String& GetProductId() const{ return m_productId; } /** *

The product identifier. For example, prod-abcdzk7xy33qa.

*/ inline bool ProductIdHasBeenSet() const { return m_productIdHasBeenSet; } /** *

The product identifier. For example, prod-abcdzk7xy33qa.

*/ inline void SetProductId(const Aws::String& value) { m_productIdHasBeenSet = true; m_productId = value; } /** *

The product identifier. For example, prod-abcdzk7xy33qa.

*/ inline void SetProductId(Aws::String&& value) { m_productIdHasBeenSet = true; m_productId = std::move(value); } /** *

The product identifier. For example, prod-abcdzk7xy33qa.

*/ inline void SetProductId(const char* value) { m_productIdHasBeenSet = true; m_productId.assign(value); } /** *

The product identifier. For example, prod-abcdzk7xy33qa.

*/ inline FailedServiceActionAssociation& WithProductId(const Aws::String& value) { SetProductId(value); return *this;} /** *

The product identifier. For example, prod-abcdzk7xy33qa.

*/ inline FailedServiceActionAssociation& WithProductId(Aws::String&& value) { SetProductId(std::move(value)); return *this;} /** *

The product identifier. For example, prod-abcdzk7xy33qa.

*/ inline FailedServiceActionAssociation& WithProductId(const char* value) { SetProductId(value); return *this;} /** *

The identifier of the provisioning artifact. For example, * pa-4abcdjnxjj6ne.

*/ inline const Aws::String& GetProvisioningArtifactId() const{ return m_provisioningArtifactId; } /** *

The identifier of the provisioning artifact. For example, * pa-4abcdjnxjj6ne.

*/ inline bool ProvisioningArtifactIdHasBeenSet() const { return m_provisioningArtifactIdHasBeenSet; } /** *

The identifier of the provisioning artifact. For example, * pa-4abcdjnxjj6ne.

*/ inline void SetProvisioningArtifactId(const Aws::String& value) { m_provisioningArtifactIdHasBeenSet = true; m_provisioningArtifactId = value; } /** *

The identifier of the provisioning artifact. For example, * pa-4abcdjnxjj6ne.

*/ inline void SetProvisioningArtifactId(Aws::String&& value) { m_provisioningArtifactIdHasBeenSet = true; m_provisioningArtifactId = std::move(value); } /** *

The identifier of the provisioning artifact. For example, * pa-4abcdjnxjj6ne.

*/ inline void SetProvisioningArtifactId(const char* value) { m_provisioningArtifactIdHasBeenSet = true; m_provisioningArtifactId.assign(value); } /** *

The identifier of the provisioning artifact. For example, * pa-4abcdjnxjj6ne.

*/ inline FailedServiceActionAssociation& WithProvisioningArtifactId(const Aws::String& value) { SetProvisioningArtifactId(value); return *this;} /** *

The identifier of the provisioning artifact. For example, * pa-4abcdjnxjj6ne.

*/ inline FailedServiceActionAssociation& WithProvisioningArtifactId(Aws::String&& value) { SetProvisioningArtifactId(std::move(value)); return *this;} /** *

The identifier of the provisioning artifact. For example, * pa-4abcdjnxjj6ne.

*/ inline FailedServiceActionAssociation& WithProvisioningArtifactId(const char* value) { SetProvisioningArtifactId(value); return *this;} /** *

The error code. Valid values are listed below.

*/ inline const ServiceActionAssociationErrorCode& GetErrorCode() const{ return m_errorCode; } /** *

The error code. Valid values are listed below.

*/ inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } /** *

The error code. Valid values are listed below.

*/ inline void SetErrorCode(const ServiceActionAssociationErrorCode& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } /** *

The error code. Valid values are listed below.

*/ inline void SetErrorCode(ServiceActionAssociationErrorCode&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); } /** *

The error code. Valid values are listed below.

*/ inline FailedServiceActionAssociation& WithErrorCode(const ServiceActionAssociationErrorCode& value) { SetErrorCode(value); return *this;} /** *

The error code. Valid values are listed below.

*/ inline FailedServiceActionAssociation& WithErrorCode(ServiceActionAssociationErrorCode&& value) { SetErrorCode(std::move(value)); return *this;} /** *

A text description of the error.

*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *

A text description of the error.

*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *

A text description of the error.

*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** *

A text description of the error.

*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** *

A text description of the error.

*/ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** *

A text description of the error.

*/ inline FailedServiceActionAssociation& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *

A text description of the error.

*/ inline FailedServiceActionAssociation& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *

A text description of the error.

*/ inline FailedServiceActionAssociation& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} private: Aws::String m_serviceActionId; bool m_serviceActionIdHasBeenSet = false; Aws::String m_productId; bool m_productIdHasBeenSet = false; Aws::String m_provisioningArtifactId; bool m_provisioningArtifactIdHasBeenSet = false; ServiceActionAssociationErrorCode m_errorCode; bool m_errorCodeHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; }; } // namespace Model } // namespace ServiceCatalog } // namespace Aws