/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace CloudSearch { namespace Model { /** *

The configured access rules for the domain's document and search endpoints, * and the current status of those rules.

See Also:

AWS * API Reference

*/ class AccessPoliciesStatus { public: AWS_CLOUDSEARCH_API AccessPoliciesStatus(); AWS_CLOUDSEARCH_API AccessPoliciesStatus(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDSEARCH_API AccessPoliciesStatus& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_CLOUDSEARCH_API void OutputToStream(Aws::OStream& oStream, const char* location) const; inline const Aws::String& GetOptions() const{ return m_options; } inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; } inline void SetOptions(const Aws::String& value) { m_optionsHasBeenSet = true; m_options = value; } inline void SetOptions(Aws::String&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); } inline void SetOptions(const char* value) { m_optionsHasBeenSet = true; m_options.assign(value); } inline AccessPoliciesStatus& WithOptions(const Aws::String& value) { SetOptions(value); return *this;} inline AccessPoliciesStatus& WithOptions(Aws::String&& value) { SetOptions(std::move(value)); return *this;} inline AccessPoliciesStatus& WithOptions(const char* value) { SetOptions(value); return *this;} inline const OptionStatus& GetStatus() const{ return m_status; } inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } inline void SetStatus(const OptionStatus& value) { m_statusHasBeenSet = true; m_status = value; } inline void SetStatus(OptionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } inline AccessPoliciesStatus& WithStatus(const OptionStatus& value) { SetStatus(value); return *this;} 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 CloudSearch } // namespace Aws