/**
 * 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/securityhub/SecurityHub_EXPORTS.h>

#include <utility>

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

/**
 * <p>Contains information about a stickiness policy that was created using
 * <code>CreateAppCookieStickinessPolicy</code>.</p><p><h3>See Also:</h3>   <a
 * href="http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/AwsElbAppCookieStickinessPolicy">AWS
 * API Reference</a></p>
 */
class AwsElbAppCookieStickinessPolicy {
 public:
  AWS_SECURITYHUB_API AwsElbAppCookieStickinessPolicy() = default;
  AWS_SECURITYHUB_API AwsElbAppCookieStickinessPolicy(Aws::Utils::Json::JsonView jsonValue);
  AWS_SECURITYHUB_API AwsElbAppCookieStickinessPolicy& operator=(Aws::Utils::Json::JsonView jsonValue);
  AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;

  ///@{
  /**
   * <p>The name of the application cookie used for stickiness.</p>
   */
  inline const Aws::String& GetCookieName() const { return m_cookieName; }
  inline bool CookieNameHasBeenSet() const { return m_cookieNameHasBeenSet; }
  template <typename CookieNameT = Aws::String>
  void SetCookieName(CookieNameT&& value) {
    m_cookieNameHasBeenSet = true;
    m_cookieName = std::forward<CookieNameT>(value);
  }
  template <typename CookieNameT = Aws::String>
  AwsElbAppCookieStickinessPolicy& WithCookieName(CookieNameT&& value) {
    SetCookieName(std::forward<CookieNameT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>The mnemonic name for the policy being created. The name must be unique
   * within the set of policies for the load balancer.</p>
   */
  inline const Aws::String& GetPolicyName() const { return m_policyName; }
  inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
  template <typename PolicyNameT = Aws::String>
  void SetPolicyName(PolicyNameT&& value) {
    m_policyNameHasBeenSet = true;
    m_policyName = std::forward<PolicyNameT>(value);
  }
  template <typename PolicyNameT = Aws::String>
  AwsElbAppCookieStickinessPolicy& WithPolicyName(PolicyNameT&& value) {
    SetPolicyName(std::forward<PolicyNameT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::String m_cookieName;

  Aws::String m_policyName;
  bool m_cookieNameHasBeenSet = false;
  bool m_policyNameHasBeenSet = false;
};

}  // namespace Model
}  // namespace SecurityHub
}  // namespace Aws
