/** * 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 { /** *

Provides authorization for Amazon to bring a specific IP address range to a * specific Amazon Web Services account using bring your own IP addresses (BYOIP). * For more information, see Configuring * your BYOIP address range in the Amazon Elastic Compute Cloud User * Guide.

See Also:

AWS * API Reference

*/ class CidrAuthorizationContext { public: AWS_EC2_API CidrAuthorizationContext(); AWS_EC2_API CidrAuthorizationContext(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API CidrAuthorizationContext& 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; /** *

The plain-text authorization message for the prefix and account.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

The plain-text authorization message for the prefix and account.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

The plain-text authorization message for the prefix and account.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

The plain-text authorization message for the prefix and account.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

The plain-text authorization message for the prefix and account.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

The plain-text authorization message for the prefix and account.

*/ inline CidrAuthorizationContext& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

The plain-text authorization message for the prefix and account.

*/ inline CidrAuthorizationContext& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

The plain-text authorization message for the prefix and account.

*/ inline CidrAuthorizationContext& WithMessage(const char* value) { SetMessage(value); return *this;} /** *

The signed authorization message for the prefix and account.

*/ inline const Aws::String& GetSignature() const{ return m_signature; } /** *

The signed authorization message for the prefix and account.

*/ inline bool SignatureHasBeenSet() const { return m_signatureHasBeenSet; } /** *

The signed authorization message for the prefix and account.

*/ inline void SetSignature(const Aws::String& value) { m_signatureHasBeenSet = true; m_signature = value; } /** *

The signed authorization message for the prefix and account.

*/ inline void SetSignature(Aws::String&& value) { m_signatureHasBeenSet = true; m_signature = std::move(value); } /** *

The signed authorization message for the prefix and account.

*/ inline void SetSignature(const char* value) { m_signatureHasBeenSet = true; m_signature.assign(value); } /** *

The signed authorization message for the prefix and account.

*/ inline CidrAuthorizationContext& WithSignature(const Aws::String& value) { SetSignature(value); return *this;} /** *

The signed authorization message for the prefix and account.

*/ inline CidrAuthorizationContext& WithSignature(Aws::String&& value) { SetSignature(std::move(value)); return *this;} /** *

The signed authorization message for the prefix and account.

*/ inline CidrAuthorizationContext& WithSignature(const char* value) { SetSignature(value); return *this;} private: Aws::String m_message; bool m_messageHasBeenSet = false; Aws::String m_signature; bool m_signatureHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws