/** * 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 ApplicationInsights { namespace Model { class AddWorkloadResult { public: AWS_APPLICATIONINSIGHTS_API AddWorkloadResult(); AWS_APPLICATIONINSIGHTS_API AddWorkloadResult(const Aws::AmazonWebServiceResult& result); AWS_APPLICATIONINSIGHTS_API AddWorkloadResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ID of the workload.

*/ inline const Aws::String& GetWorkloadId() const{ return m_workloadId; } /** *

The ID of the workload.

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

The ID of the workload.

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

The ID of the workload.

*/ inline void SetWorkloadId(const char* value) { m_workloadId.assign(value); } /** *

The ID of the workload.

*/ inline AddWorkloadResult& WithWorkloadId(const Aws::String& value) { SetWorkloadId(value); return *this;} /** *

The ID of the workload.

*/ inline AddWorkloadResult& WithWorkloadId(Aws::String&& value) { SetWorkloadId(std::move(value)); return *this;} /** *

The ID of the workload.

*/ inline AddWorkloadResult& WithWorkloadId(const char* value) { SetWorkloadId(value); return *this;} /** *

The configuration settings of the workload. The value is the escaped JSON of * the configuration.

*/ inline const WorkloadConfiguration& GetWorkloadConfiguration() const{ return m_workloadConfiguration; } /** *

The configuration settings of the workload. The value is the escaped JSON of * the configuration.

*/ inline void SetWorkloadConfiguration(const WorkloadConfiguration& value) { m_workloadConfiguration = value; } /** *

The configuration settings of the workload. The value is the escaped JSON of * the configuration.

*/ inline void SetWorkloadConfiguration(WorkloadConfiguration&& value) { m_workloadConfiguration = std::move(value); } /** *

The configuration settings of the workload. The value is the escaped JSON of * the configuration.

*/ inline AddWorkloadResult& WithWorkloadConfiguration(const WorkloadConfiguration& value) { SetWorkloadConfiguration(value); return *this;} /** *

The configuration settings of the workload. The value is the escaped JSON of * the configuration.

*/ inline AddWorkloadResult& WithWorkloadConfiguration(WorkloadConfiguration&& value) { SetWorkloadConfiguration(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 AddWorkloadResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline AddWorkloadResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline AddWorkloadResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_workloadId; WorkloadConfiguration m_workloadConfiguration; Aws::String m_requestId; }; } // namespace Model } // namespace ApplicationInsights } // namespace Aws