/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Kafka { namespace Model { /** * Public access control for brokers.

See Also:

AWS * API Reference

*/ class PublicAccess { public: AWS_KAFKA_API PublicAccess(); AWS_KAFKA_API PublicAccess(Aws::Utils::Json::JsonView jsonValue); AWS_KAFKA_API PublicAccess& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The value DISABLED indicates that public access is turned off. * SERVICE_PROVIDED_EIPS indicates that public access is turned on.

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

The value DISABLED indicates that public access is turned off. * SERVICE_PROVIDED_EIPS indicates that public access is turned on.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The value DISABLED indicates that public access is turned off. * SERVICE_PROVIDED_EIPS indicates that public access is turned on.

*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The value DISABLED indicates that public access is turned off. * SERVICE_PROVIDED_EIPS indicates that public access is turned on.

*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The value DISABLED indicates that public access is turned off. * SERVICE_PROVIDED_EIPS indicates that public access is turned on.

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

The value DISABLED indicates that public access is turned off. * SERVICE_PROVIDED_EIPS indicates that public access is turned on.

*/ inline PublicAccess& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

The value DISABLED indicates that public access is turned off. * SERVICE_PROVIDED_EIPS indicates that public access is turned on.

*/ inline PublicAccess& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

The value DISABLED indicates that public access is turned off. * SERVICE_PROVIDED_EIPS indicates that public access is turned on.

*/ inline PublicAccess& WithType(const char* value) { SetType(value); return *this;} private: Aws::String m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace Kafka } // namespace Aws