/**
 * 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/verifiedpermissions/VerifiedPermissions_EXPORTS.h>

#include <utility>

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

/**
 * <p>The type of entity that a policy store maps to groups from an Amazon Cognito
 * user pool identity source.</p> <p>This data type is part of a <a
 * href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_CognitoUserPoolConfiguration.html">CognitoUserPoolConfiguration</a>
 * structure and is a request parameter in <a
 * href="https://docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_CreateIdentitySource.html">CreateIdentitySource</a>.</p><p><h3>See
 * Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/verifiedpermissions-2021-12-01/CognitoGroupConfiguration">AWS
 * API Reference</a></p>
 */
class CognitoGroupConfiguration {
 public:
  AWS_VERIFIEDPERMISSIONS_API CognitoGroupConfiguration() = default;
  AWS_VERIFIEDPERMISSIONS_API CognitoGroupConfiguration(Aws::Utils::Json::JsonView jsonValue);
  AWS_VERIFIEDPERMISSIONS_API CognitoGroupConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{
  /**
   * <p>The name of the schema entity type that's mapped to the user pool group.
   * Defaults to <code>AWS::CognitoGroup</code>.</p>
   */
  inline const Aws::String& GetGroupEntityType() const { return m_groupEntityType; }
  inline bool GroupEntityTypeHasBeenSet() const { return m_groupEntityTypeHasBeenSet; }
  template <typename GroupEntityTypeT = Aws::String>
  void SetGroupEntityType(GroupEntityTypeT&& value) {
    m_groupEntityTypeHasBeenSet = true;
    m_groupEntityType = std::forward<GroupEntityTypeT>(value);
  }
  template <typename GroupEntityTypeT = Aws::String>
  CognitoGroupConfiguration& WithGroupEntityType(GroupEntityTypeT&& value) {
    SetGroupEntityType(std::forward<GroupEntityTypeT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::String m_groupEntityType;
  bool m_groupEntityTypeHasBeenSet = false;
};

}  // namespace Model
}  // namespace VerifiedPermissions
}  // namespace Aws
