/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace tnb { namespace Model { class GetSolNetworkPackageContentResult { public: AWS_TNB_API GetSolNetworkPackageContentResult(); //We have to define these because Microsoft doesn't auto generate them AWS_TNB_API GetSolNetworkPackageContentResult(GetSolNetworkPackageContentResult&&); AWS_TNB_API GetSolNetworkPackageContentResult& operator=(GetSolNetworkPackageContentResult&&); //we delete these because Microsoft doesn't handle move generation correctly //and we therefore don't trust them to get it right here either. GetSolNetworkPackageContentResult(const GetSolNetworkPackageContentResult&) = delete; GetSolNetworkPackageContentResult& operator=(const GetSolNetworkPackageContentResult&) = delete; AWS_TNB_API GetSolNetworkPackageContentResult(Aws::AmazonWebServiceResult&& result); AWS_TNB_API GetSolNetworkPackageContentResult& operator=(Aws::AmazonWebServiceResult&& result); /** *

Indicates the media type of the resource.

*/ inline const PackageContentType& GetContentType() const{ return m_contentType; } /** *

Indicates the media type of the resource.

*/ inline void SetContentType(const PackageContentType& value) { m_contentType = value; } /** *

Indicates the media type of the resource.

*/ inline void SetContentType(PackageContentType&& value) { m_contentType = std::move(value); } /** *

Indicates the media type of the resource.

*/ inline GetSolNetworkPackageContentResult& WithContentType(const PackageContentType& value) { SetContentType(value); return *this;} /** *

Indicates the media type of the resource.

*/ inline GetSolNetworkPackageContentResult& WithContentType(PackageContentType&& value) { SetContentType(std::move(value)); return *this;} /** *

Content of the network service descriptor in the network package.

*/ inline Aws::IOStream& GetNsdContent() const { return m_nsdContent.GetUnderlyingStream(); } /** *

Content of the network service descriptor in the network package.

*/ inline void ReplaceBody(Aws::IOStream* body) { m_nsdContent = Aws::Utils::Stream::ResponseStream(body); } inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetSolNetworkPackageContentResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetSolNetworkPackageContentResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetSolNetworkPackageContentResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: PackageContentType m_contentType; Aws::Utils::Stream::ResponseStream m_nsdContent; Aws::String m_requestId; }; } // namespace Model } // namespace tnb } // namespace Aws