/** * 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 Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace DirectConnect { namespace Model { /** *

Information about a Letter of Authorization - Connecting Facility Assignment * (LOA-CFA) for a connection.

See Also:

AWS * API Reference

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

The binary contents of the LOA-CFA document.

*/ inline const Aws::Utils::ByteBuffer& GetLoaContent() const{ return m_loaContent; } /** *

The binary contents of the LOA-CFA document.

*/ inline bool LoaContentHasBeenSet() const { return m_loaContentHasBeenSet; } /** *

The binary contents of the LOA-CFA document.

*/ inline void SetLoaContent(const Aws::Utils::ByteBuffer& value) { m_loaContentHasBeenSet = true; m_loaContent = value; } /** *

The binary contents of the LOA-CFA document.

*/ inline void SetLoaContent(Aws::Utils::ByteBuffer&& value) { m_loaContentHasBeenSet = true; m_loaContent = std::move(value); } /** *

The binary contents of the LOA-CFA document.

*/ inline Loa& WithLoaContent(const Aws::Utils::ByteBuffer& value) { SetLoaContent(value); return *this;} /** *

The binary contents of the LOA-CFA document.

*/ inline Loa& WithLoaContent(Aws::Utils::ByteBuffer&& value) { SetLoaContent(std::move(value)); return *this;} /** *

The standard media type for the LOA-CFA document. The only supported value is * application/pdf.

*/ inline const LoaContentType& GetLoaContentType() const{ return m_loaContentType; } /** *

The standard media type for the LOA-CFA document. The only supported value is * application/pdf.

*/ inline bool LoaContentTypeHasBeenSet() const { return m_loaContentTypeHasBeenSet; } /** *

The standard media type for the LOA-CFA document. The only supported value is * application/pdf.

*/ inline void SetLoaContentType(const LoaContentType& value) { m_loaContentTypeHasBeenSet = true; m_loaContentType = value; } /** *

The standard media type for the LOA-CFA document. The only supported value is * application/pdf.

*/ inline void SetLoaContentType(LoaContentType&& value) { m_loaContentTypeHasBeenSet = true; m_loaContentType = std::move(value); } /** *

The standard media type for the LOA-CFA document. The only supported value is * application/pdf.

*/ inline Loa& WithLoaContentType(const LoaContentType& value) { SetLoaContentType(value); return *this;} /** *

The standard media type for the LOA-CFA document. The only supported value is * application/pdf.

*/ inline Loa& WithLoaContentType(LoaContentType&& value) { SetLoaContentType(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; } inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); } inline Loa& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline Loa& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline Loa& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Utils::ByteBuffer m_loaContent; bool m_loaContentHasBeenSet = false; LoaContentType m_loaContentType; bool m_loaContentTypeHasBeenSet = false; Aws::String m_requestId; bool m_requestIdHasBeenSet = false; }; } // namespace Model } // namespace DirectConnect } // namespace Aws