/** * 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 GetSolNetworkPackageDescriptorResult { public: AWS_TNB_API GetSolNetworkPackageDescriptorResult(); //We have to define these because Microsoft doesn't auto generate them AWS_TNB_API GetSolNetworkPackageDescriptorResult(GetSolNetworkPackageDescriptorResult&&); AWS_TNB_API GetSolNetworkPackageDescriptorResult& operator=(GetSolNetworkPackageDescriptorResult&&); //we delete these because Microsoft doesn't handle move generation correctly //and we therefore don't trust them to get it right here either. GetSolNetworkPackageDescriptorResult(const GetSolNetworkPackageDescriptorResult&) = delete; GetSolNetworkPackageDescriptorResult& operator=(const GetSolNetworkPackageDescriptorResult&) = delete; AWS_TNB_API GetSolNetworkPackageDescriptorResult(Aws::AmazonWebServiceResult&& result); AWS_TNB_API GetSolNetworkPackageDescriptorResult& operator=(Aws::AmazonWebServiceResult&& result); /** *

Indicates the media type of the resource.

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

Indicates the media type of the resource.

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

Indicates the media type of the resource.

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

Indicates the media type of the resource.

*/ inline GetSolNetworkPackageDescriptorResult& WithContentType(const DescriptorContentType& value) { SetContentType(value); return *this;} /** *

Indicates the media type of the resource.

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

Contents of the network service descriptor in the network package.

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

Contents of the network service descriptor in the network package.

*/ inline void ReplaceBody(Aws::IOStream* body) { m_nsd = 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 GetSolNetworkPackageDescriptorResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetSolNetworkPackageDescriptorResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetSolNetworkPackageDescriptorResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: DescriptorContentType m_contentType; Aws::Utils::Stream::ResponseStream m_nsd; Aws::String m_requestId; }; } // namespace Model } // namespace tnb } // namespace Aws