/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The configured access rules for the domain's search endpoint, and the current
* status of those rules.See Also:
AWS
* API Reference
The access policy configured for the domain. Access policies can be * resource-based, IP-based, or IAM-based. For more information, see Configuring * access policies.
*/ inline const Aws::String& GetOptions() const{ return m_options; } /** *The access policy configured for the domain. Access policies can be * resource-based, IP-based, or IAM-based. For more information, see Configuring * access policies.
*/ inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; } /** *The access policy configured for the domain. Access policies can be * resource-based, IP-based, or IAM-based. For more information, see Configuring * access policies.
*/ inline void SetOptions(const Aws::String& value) { m_optionsHasBeenSet = true; m_options = value; } /** *The access policy configured for the domain. Access policies can be * resource-based, IP-based, or IAM-based. For more information, see Configuring * access policies.
*/ inline void SetOptions(Aws::String&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); } /** *The access policy configured for the domain. Access policies can be * resource-based, IP-based, or IAM-based. For more information, see Configuring * access policies.
*/ inline void SetOptions(const char* value) { m_optionsHasBeenSet = true; m_options.assign(value); } /** *The access policy configured for the domain. Access policies can be * resource-based, IP-based, or IAM-based. For more information, see Configuring * access policies.
*/ inline AccessPoliciesStatus& WithOptions(const Aws::String& value) { SetOptions(value); return *this;} /** *The access policy configured for the domain. Access policies can be * resource-based, IP-based, or IAM-based. For more information, see Configuring * access policies.
*/ inline AccessPoliciesStatus& WithOptions(Aws::String&& value) { SetOptions(std::move(value)); return *this;} /** *The access policy configured for the domain. Access policies can be * resource-based, IP-based, or IAM-based. For more information, see Configuring * access policies.
*/ inline AccessPoliciesStatus& WithOptions(const char* value) { SetOptions(value); return *this;} /** *The status of the access policy for the domain.
*/ inline const OptionStatus& GetStatus() const{ return m_status; } /** *The status of the access policy for the domain.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The status of the access policy for the domain.
*/ inline void SetStatus(const OptionStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *The status of the access policy for the domain.
*/ inline void SetStatus(OptionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The status of the access policy for the domain.
*/ inline AccessPoliciesStatus& WithStatus(const OptionStatus& value) { SetStatus(value); return *this;} /** *The status of the access policy for the domain.
*/ inline AccessPoliciesStatus& WithStatus(OptionStatus&& value) { SetStatus(std::move(value)); return *this;} private: Aws::String m_options; bool m_optionsHasBeenSet = false; OptionStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace OpenSearchService } // namespace Aws