/** * 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 CodeGuruProfiler { namespace Model { /** *

The structure representing the getProfileResponse.

See Also:

* AWS * API Reference

*/ class AWS_CODEGURUPROFILER_API GetProfileResult { public: GetProfileResult(); //We have to define these because Microsoft doesn't auto generate them GetProfileResult(GetProfileResult&&); GetProfileResult& operator=(GetProfileResult&&); //we delete these because Microsoft doesn't handle move generation correctly //and we therefore don't trust them to get it right here either. GetProfileResult(const GetProfileResult&) = delete; GetProfileResult& operator=(const GetProfileResult&) = delete; GetProfileResult(Aws::AmazonWebServiceResult&& result); GetProfileResult& operator=(Aws::AmazonWebServiceResult&& result); /** *

The content encoding of the profile.

*/ inline const Aws::String& GetContentEncoding() const{ return m_contentEncoding; } /** *

The content encoding of the profile.

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

The content encoding of the profile.

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

The content encoding of the profile.

*/ inline void SetContentEncoding(const char* value) { m_contentEncoding.assign(value); } /** *

The content encoding of the profile.

*/ inline GetProfileResult& WithContentEncoding(const Aws::String& value) { SetContentEncoding(value); return *this;} /** *

The content encoding of the profile.

*/ inline GetProfileResult& WithContentEncoding(Aws::String&& value) { SetContentEncoding(std::move(value)); return *this;} /** *

The content encoding of the profile.

*/ inline GetProfileResult& WithContentEncoding(const char* value) { SetContentEncoding(value); return *this;} /** *

The content type of the profile in the payload. It is either * application/json or the default * application/x-amzn-ion.

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

The content type of the profile in the payload. It is either * application/json or the default * application/x-amzn-ion.

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

The content type of the profile in the payload. It is either * application/json or the default * application/x-amzn-ion.

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

The content type of the profile in the payload. It is either * application/json or the default * application/x-amzn-ion.

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

The content type of the profile in the payload. It is either * application/json or the default * application/x-amzn-ion.

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

The content type of the profile in the payload. It is either * application/json or the default * application/x-amzn-ion.

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

The content type of the profile in the payload. It is either * application/json or the default * application/x-amzn-ion.

*/ inline GetProfileResult& WithContentType(const char* value) { SetContentType(value); return *this;} /** *

Information about the profile.

*/ inline Aws::IOStream& GetProfile() { return m_profile.GetUnderlyingStream(); } /** *

Information about the profile.

*/ inline void ReplaceBody(Aws::IOStream* body) { m_profile = Aws::Utils::Stream::ResponseStream(body); } private: Aws::String m_contentEncoding; Aws::String m_contentType; Aws::Utils::Stream::ResponseStream m_profile; }; } // namespace Model } // namespace CodeGuruProfiler } // namespace Aws