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

Contains the body of the style descriptor.

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

Contains the body of the style descriptor.

*/ inline void ReplaceBody(Aws::IOStream* body) { m_blob = Aws::Utils::Stream::ResponseStream(body); } /** *

The HTTP Cache-Control directive for the value.

*/ inline const Aws::String& GetCacheControl() const{ return m_cacheControl; } /** *

The HTTP Cache-Control directive for the value.

*/ inline void SetCacheControl(const Aws::String& value) { m_cacheControl = value; } /** *

The HTTP Cache-Control directive for the value.

*/ inline void SetCacheControl(Aws::String&& value) { m_cacheControl = std::move(value); } /** *

The HTTP Cache-Control directive for the value.

*/ inline void SetCacheControl(const char* value) { m_cacheControl.assign(value); } /** *

The HTTP Cache-Control directive for the value.

*/ inline GetMapStyleDescriptorResult& WithCacheControl(const Aws::String& value) { SetCacheControl(value); return *this;} /** *

The HTTP Cache-Control directive for the value.

*/ inline GetMapStyleDescriptorResult& WithCacheControl(Aws::String&& value) { SetCacheControl(std::move(value)); return *this;} /** *

The HTTP Cache-Control directive for the value.

*/ inline GetMapStyleDescriptorResult& WithCacheControl(const char* value) { SetCacheControl(value); return *this;} /** *

The style descriptor's content type. For example, * application/json.

*/ inline const Aws::String& GetContentType() const{ return m_contentType; } /** *

The style descriptor's content type. For example, * application/json.

*/ inline void SetContentType(const Aws::String& value) { m_contentType = value; } /** *

The style descriptor's content type. For example, * application/json.

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

The style descriptor's content type. For example, * application/json.

*/ inline void SetContentType(const char* value) { m_contentType.assign(value); } /** *

The style descriptor's content type. For example, * application/json.

*/ inline GetMapStyleDescriptorResult& WithContentType(const Aws::String& value) { SetContentType(value); return *this;} /** *

The style descriptor's content type. For example, * application/json.

*/ inline GetMapStyleDescriptorResult& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;} /** *

The style descriptor's content type. For example, * application/json.

*/ inline GetMapStyleDescriptorResult& WithContentType(const char* value) { SetContentType(value); return *this;} 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 GetMapStyleDescriptorResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetMapStyleDescriptorResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetMapStyleDescriptorResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Utils::Stream::ResponseStream m_blob; Aws::String m_cacheControl; Aws::String m_contentType; Aws::String m_requestId; }; } // namespace Model } // namespace LocationService } // namespace Aws