/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CodeGuruProfiler { namespace Model { /** *

The structure representing the configureAgentResponse.

See * Also:

AWS * API Reference

*/ class ConfigureAgentResult { public: AWS_CODEGURUPROFILER_API ConfigureAgentResult(); AWS_CODEGURUPROFILER_API ConfigureAgentResult(const Aws::AmazonWebServiceResult& result); AWS_CODEGURUPROFILER_API ConfigureAgentResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

An * AgentConfiguration object that specifies if an agent profiles * or not and for how long to return profiling data.

*/ inline const AgentConfiguration& GetConfiguration() const{ return m_configuration; } /** *

An * AgentConfiguration object that specifies if an agent profiles * or not and for how long to return profiling data.

*/ inline void SetConfiguration(const AgentConfiguration& value) { m_configuration = value; } /** *

An * AgentConfiguration object that specifies if an agent profiles * or not and for how long to return profiling data.

*/ inline void SetConfiguration(AgentConfiguration&& value) { m_configuration = std::move(value); } /** *

An * AgentConfiguration object that specifies if an agent profiles * or not and for how long to return profiling data.

*/ inline ConfigureAgentResult& WithConfiguration(const AgentConfiguration& value) { SetConfiguration(value); return *this;} /** *

An * AgentConfiguration object that specifies if an agent profiles * or not and for how long to return profiling data.

*/ inline ConfigureAgentResult& WithConfiguration(AgentConfiguration&& value) { SetConfiguration(std::move(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 ConfigureAgentResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ConfigureAgentResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ConfigureAgentResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: AgentConfiguration m_configuration; Aws::String m_requestId; }; } // namespace Model } // namespace CodeGuruProfiler } // namespace Aws