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

#pragma once
#include <aws/datazone/DataZone_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/datazone/model/SelfGrantStatusDetail.h>
#include <utility>

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

  /**
   * <p>The details of the self granting status.</p><p><h3>See Also:</h3>   <a
   * href="http://docs.aws.amazon.com/goto/WebAPI/datazone-2018-05-10/GlueSelfGrantStatusOutput">AWS
   * API Reference</a></p>
   */
  class GlueSelfGrantStatusOutput
  {
  public:
    AWS_DATAZONE_API GlueSelfGrantStatusOutput();
    AWS_DATAZONE_API GlueSelfGrantStatusOutput(Aws::Utils::Json::JsonView jsonValue);
    AWS_DATAZONE_API GlueSelfGrantStatusOutput& operator=(Aws::Utils::Json::JsonView jsonValue);
    AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;


    ///@{
    /**
     * <p>The details for the self granting status for a Glue data source.</p>
     */
    inline const Aws::Vector<SelfGrantStatusDetail>& GetSelfGrantStatusDetails() const{ return m_selfGrantStatusDetails; }
    inline bool SelfGrantStatusDetailsHasBeenSet() const { return m_selfGrantStatusDetailsHasBeenSet; }
    inline void SetSelfGrantStatusDetails(const Aws::Vector<SelfGrantStatusDetail>& value) { m_selfGrantStatusDetailsHasBeenSet = true; m_selfGrantStatusDetails = value; }
    inline void SetSelfGrantStatusDetails(Aws::Vector<SelfGrantStatusDetail>&& value) { m_selfGrantStatusDetailsHasBeenSet = true; m_selfGrantStatusDetails = std::move(value); }
    inline GlueSelfGrantStatusOutput& WithSelfGrantStatusDetails(const Aws::Vector<SelfGrantStatusDetail>& value) { SetSelfGrantStatusDetails(value); return *this;}
    inline GlueSelfGrantStatusOutput& WithSelfGrantStatusDetails(Aws::Vector<SelfGrantStatusDetail>&& value) { SetSelfGrantStatusDetails(std::move(value)); return *this;}
    inline GlueSelfGrantStatusOutput& AddSelfGrantStatusDetails(const SelfGrantStatusDetail& value) { m_selfGrantStatusDetailsHasBeenSet = true; m_selfGrantStatusDetails.push_back(value); return *this; }
    inline GlueSelfGrantStatusOutput& AddSelfGrantStatusDetails(SelfGrantStatusDetail&& value) { m_selfGrantStatusDetailsHasBeenSet = true; m_selfGrantStatusDetails.push_back(std::move(value)); return *this; }
    ///@}
  private:

    Aws::Vector<SelfGrantStatusDetail> m_selfGrantStatusDetails;
    bool m_selfGrantStatusDetailsHasBeenSet = false;
  };

} // namespace Model
} // namespace DataZone
} // namespace Aws
