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

Options for enabling a customizable text banner that will be displayed on * Amazon Web Services provided clients when a VPN session is * established.

See Also:

AWS * API Reference

*/ class ClientLoginBannerOptions { public: AWS_EC2_API ClientLoginBannerOptions(); AWS_EC2_API ClientLoginBannerOptions(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API ClientLoginBannerOptions& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

Enable or disable a customizable text banner that will be displayed on Amazon * Web Services provided clients when a VPN session is established.

Valid * values: true | false

Default value: false

*/ inline bool GetEnabled() const{ return m_enabled; } /** *

Enable or disable a customizable text banner that will be displayed on Amazon * Web Services provided clients when a VPN session is established.

Valid * values: true | false

Default value: false

*/ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** *

Enable or disable a customizable text banner that will be displayed on Amazon * Web Services provided clients when a VPN session is established.

Valid * values: true | false

Default value: false

*/ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** *

Enable or disable a customizable text banner that will be displayed on Amazon * Web Services provided clients when a VPN session is established.

Valid * values: true | false

Default value: false

*/ inline ClientLoginBannerOptions& WithEnabled(bool value) { SetEnabled(value); return *this;} /** *

Customizable text that will be displayed in a banner on Amazon Web Services * provided clients when a VPN session is established. UTF-8 encoded characters * only. Maximum of 1400 characters.

*/ inline const Aws::String& GetBannerText() const{ return m_bannerText; } /** *

Customizable text that will be displayed in a banner on Amazon Web Services * provided clients when a VPN session is established. UTF-8 encoded characters * only. Maximum of 1400 characters.

*/ inline bool BannerTextHasBeenSet() const { return m_bannerTextHasBeenSet; } /** *

Customizable text that will be displayed in a banner on Amazon Web Services * provided clients when a VPN session is established. UTF-8 encoded characters * only. Maximum of 1400 characters.

*/ inline void SetBannerText(const Aws::String& value) { m_bannerTextHasBeenSet = true; m_bannerText = value; } /** *

Customizable text that will be displayed in a banner on Amazon Web Services * provided clients when a VPN session is established. UTF-8 encoded characters * only. Maximum of 1400 characters.

*/ inline void SetBannerText(Aws::String&& value) { m_bannerTextHasBeenSet = true; m_bannerText = std::move(value); } /** *

Customizable text that will be displayed in a banner on Amazon Web Services * provided clients when a VPN session is established. UTF-8 encoded characters * only. Maximum of 1400 characters.

*/ inline void SetBannerText(const char* value) { m_bannerTextHasBeenSet = true; m_bannerText.assign(value); } /** *

Customizable text that will be displayed in a banner on Amazon Web Services * provided clients when a VPN session is established. UTF-8 encoded characters * only. Maximum of 1400 characters.

*/ inline ClientLoginBannerOptions& WithBannerText(const Aws::String& value) { SetBannerText(value); return *this;} /** *

Customizable text that will be displayed in a banner on Amazon Web Services * provided clients when a VPN session is established. UTF-8 encoded characters * only. Maximum of 1400 characters.

*/ inline ClientLoginBannerOptions& WithBannerText(Aws::String&& value) { SetBannerText(std::move(value)); return *this;} /** *

Customizable text that will be displayed in a banner on Amazon Web Services * provided clients when a VPN session is established. UTF-8 encoded characters * only. Maximum of 1400 characters.

*/ inline ClientLoginBannerOptions& WithBannerText(const char* value) { SetBannerText(value); return *this;} private: bool m_enabled; bool m_enabledHasBeenSet = false; Aws::String m_bannerText; bool m_bannerTextHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws