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

#pragma once
#include <aws/codepipeline/CodePipeline_EXPORTS.h>

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

  /**
   * <p>Information about parameters for artifacts associated with the action type,
   * such as the minimum and maximum artifacts allowed.</p><p><h3>See Also:</h3>   <a
   * href="http://docs.aws.amazon.com/goto/WebAPI/codepipeline-2015-07-09/ActionTypeArtifactDetails">AWS
   * API Reference</a></p>
   */
  class ActionTypeArtifactDetails
  {
  public:
    AWS_CODEPIPELINE_API ActionTypeArtifactDetails() = default;
    AWS_CODEPIPELINE_API ActionTypeArtifactDetails(Aws::Utils::Json::JsonView jsonValue);
    AWS_CODEPIPELINE_API ActionTypeArtifactDetails& operator=(Aws::Utils::Json::JsonView jsonValue);
    AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;


    ///@{
    /**
     * <p>The minimum number of artifacts that can be used with the action type. For
     * example, you should specify a minimum and maximum of zero input artifacts for an
     * action type with a category of <code>source</code>.</p>
     */
    inline int GetMinimumCount() const { return m_minimumCount; }
    inline bool MinimumCountHasBeenSet() const { return m_minimumCountHasBeenSet; }
    inline void SetMinimumCount(int value) { m_minimumCountHasBeenSet = true; m_minimumCount = value; }
    inline ActionTypeArtifactDetails& WithMinimumCount(int value) { SetMinimumCount(value); return *this;}
    ///@}

    ///@{
    /**
     * <p>The maximum number of artifacts that can be used with the actiontype. For
     * example, you should specify a minimum and maximum of zero input artifacts for an
     * action type with a category of <code>source</code>.</p>
     */
    inline int GetMaximumCount() const { return m_maximumCount; }
    inline bool MaximumCountHasBeenSet() const { return m_maximumCountHasBeenSet; }
    inline void SetMaximumCount(int value) { m_maximumCountHasBeenSet = true; m_maximumCount = value; }
    inline ActionTypeArtifactDetails& WithMaximumCount(int value) { SetMaximumCount(value); return *this;}
    ///@}
  private:

    int m_minimumCount{0};
    bool m_minimumCountHasBeenSet = false;

    int m_maximumCount{0};
    bool m_maximumCountHasBeenSet = false;
  };

} // namespace Model
} // namespace CodePipeline
} // namespace Aws
