/**
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0.
 */

#pragma once
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/servicecatalog/ServiceCatalog_EXPORTS.h>

#include <utility>

namespace Aws {
namespace Utils {
namespace Json {
class JsonValue;
class JsonView;
}  // namespace Json
}  // namespace Utils
namespace ServiceCatalog {
namespace Model {

/**
 * <p>A self-service action association consisting of the Action ID, the Product
 * ID, and the Provisioning Artifact ID.</p><p><h3>See Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/servicecatalog-2015-12-10/ServiceActionAssociation">AWS
 * API Reference</a></p>
 */
class ServiceActionAssociation {
 public:
  AWS_SERVICECATALOG_API ServiceActionAssociation() = default;
  AWS_SERVICECATALOG_API ServiceActionAssociation(Aws::Utils::Json::JsonView jsonValue);
  AWS_SERVICECATALOG_API ServiceActionAssociation& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_SERVICECATALOG_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{
  /**
   * <p>The self-service action identifier. For example,
   * <code>act-fs7abcd89wxyz</code>.</p>
   */
  inline const Aws::String& GetServiceActionId() const { return m_serviceActionId; }
  inline bool ServiceActionIdHasBeenSet() const { return m_serviceActionIdHasBeenSet; }
  template <typename ServiceActionIdT = Aws::String>
  void SetServiceActionId(ServiceActionIdT&& value) {
    m_serviceActionIdHasBeenSet = true;
    m_serviceActionId = std::forward<ServiceActionIdT>(value);
  }
  template <typename ServiceActionIdT = Aws::String>
  ServiceActionAssociation& WithServiceActionId(ServiceActionIdT&& value) {
    SetServiceActionId(std::forward<ServiceActionIdT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The product identifier. For example, <code>prod-abcdzk7xy33qa</code>.</p>
   */
  inline const Aws::String& GetProductId() const { return m_productId; }
  inline bool ProductIdHasBeenSet() const { return m_productIdHasBeenSet; }
  template <typename ProductIdT = Aws::String>
  void SetProductId(ProductIdT&& value) {
    m_productIdHasBeenSet = true;
    m_productId = std::forward<ProductIdT>(value);
  }
  template <typename ProductIdT = Aws::String>
  ServiceActionAssociation& WithProductId(ProductIdT&& value) {
    SetProductId(std::forward<ProductIdT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The identifier of the provisioning artifact. For example,
   * <code>pa-4abcdjnxjj6ne</code>.</p>
   */
  inline const Aws::String& GetProvisioningArtifactId() const { return m_provisioningArtifactId; }
  inline bool ProvisioningArtifactIdHasBeenSet() const { return m_provisioningArtifactIdHasBeenSet; }
  template <typename ProvisioningArtifactIdT = Aws::String>
  void SetProvisioningArtifactId(ProvisioningArtifactIdT&& value) {
    m_provisioningArtifactIdHasBeenSet = true;
    m_provisioningArtifactId = std::forward<ProvisioningArtifactIdT>(value);
  }
  template <typename ProvisioningArtifactIdT = Aws::String>
  ServiceActionAssociation& WithProvisioningArtifactId(ProvisioningArtifactIdT&& value) {
    SetProvisioningArtifactId(std::forward<ProvisioningArtifactIdT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::String m_serviceActionId;

  Aws::String m_productId;

  Aws::String m_provisioningArtifactId;
  bool m_serviceActionIdHasBeenSet = false;
  bool m_productIdHasBeenSet = false;
  bool m_provisioningArtifactIdHasBeenSet = false;
};

}  // namespace Model
}  // namespace ServiceCatalog
}  // namespace Aws
