/** * 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 Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace ARCZonalShift { namespace Model { class GetManagedResourceResult { public: AWS_ARCZONALSHIFT_API GetManagedResourceResult(); AWS_ARCZONALSHIFT_API GetManagedResourceResult(const Aws::AmazonWebServiceResult& result); AWS_ARCZONALSHIFT_API GetManagedResourceResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

A collection of key-value pairs that indicate whether resources are active in * Availability Zones or not. The key name is the Availability Zone where the * resource is deployed. The value is 1 or 0.

*/ inline const Aws::Map& GetAppliedWeights() const{ return m_appliedWeights; } /** *

A collection of key-value pairs that indicate whether resources are active in * Availability Zones or not. The key name is the Availability Zone where the * resource is deployed. The value is 1 or 0.

*/ inline void SetAppliedWeights(const Aws::Map& value) { m_appliedWeights = value; } /** *

A collection of key-value pairs that indicate whether resources are active in * Availability Zones or not. The key name is the Availability Zone where the * resource is deployed. The value is 1 or 0.

*/ inline void SetAppliedWeights(Aws::Map&& value) { m_appliedWeights = std::move(value); } /** *

A collection of key-value pairs that indicate whether resources are active in * Availability Zones or not. The key name is the Availability Zone where the * resource is deployed. The value is 1 or 0.

*/ inline GetManagedResourceResult& WithAppliedWeights(const Aws::Map& value) { SetAppliedWeights(value); return *this;} /** *

A collection of key-value pairs that indicate whether resources are active in * Availability Zones or not. The key name is the Availability Zone where the * resource is deployed. The value is 1 or 0.

*/ inline GetManagedResourceResult& WithAppliedWeights(Aws::Map&& value) { SetAppliedWeights(std::move(value)); return *this;} /** *

A collection of key-value pairs that indicate whether resources are active in * Availability Zones or not. The key name is the Availability Zone where the * resource is deployed. The value is 1 or 0.

*/ inline GetManagedResourceResult& AddAppliedWeights(const Aws::String& key, double value) { m_appliedWeights.emplace(key, value); return *this; } /** *

A collection of key-value pairs that indicate whether resources are active in * Availability Zones or not. The key name is the Availability Zone where the * resource is deployed. The value is 1 or 0.

*/ inline GetManagedResourceResult& AddAppliedWeights(Aws::String&& key, double value) { m_appliedWeights.emplace(std::move(key), value); return *this; } /** *

A collection of key-value pairs that indicate whether resources are active in * Availability Zones or not. The key name is the Availability Zone where the * resource is deployed. The value is 1 or 0.

*/ inline GetManagedResourceResult& AddAppliedWeights(const char* key, double value) { m_appliedWeights.emplace(key, value); return *this; } /** *

The Amazon Resource Name (ARN) for the resource.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) for the resource.

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

The Amazon Resource Name (ARN) for the resource.

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

The Amazon Resource Name (ARN) for the resource.

*/ inline void SetArn(const char* value) { m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) for the resource.

*/ inline GetManagedResourceResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) for the resource.

*/ inline GetManagedResourceResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) for the resource.

*/ inline GetManagedResourceResult& WithArn(const char* value) { SetArn(value); return *this;} /** *

The name of the resource.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the resource.

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

The name of the resource.

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

The name of the resource.

*/ inline void SetName(const char* value) { m_name.assign(value); } /** *

The name of the resource.

*/ inline GetManagedResourceResult& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the resource.

*/ inline GetManagedResourceResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the resource.

*/ inline GetManagedResourceResult& WithName(const char* value) { SetName(value); return *this;} /** *

The zonal shifts that are currently active for a resource.

*/ inline const Aws::Vector& GetZonalShifts() const{ return m_zonalShifts; } /** *

The zonal shifts that are currently active for a resource.

*/ inline void SetZonalShifts(const Aws::Vector& value) { m_zonalShifts = value; } /** *

The zonal shifts that are currently active for a resource.

*/ inline void SetZonalShifts(Aws::Vector&& value) { m_zonalShifts = std::move(value); } /** *

The zonal shifts that are currently active for a resource.

*/ inline GetManagedResourceResult& WithZonalShifts(const Aws::Vector& value) { SetZonalShifts(value); return *this;} /** *

The zonal shifts that are currently active for a resource.

*/ inline GetManagedResourceResult& WithZonalShifts(Aws::Vector&& value) { SetZonalShifts(std::move(value)); return *this;} /** *

The zonal shifts that are currently active for a resource.

*/ inline GetManagedResourceResult& AddZonalShifts(const ZonalShiftInResource& value) { m_zonalShifts.push_back(value); return *this; } /** *

The zonal shifts that are currently active for a resource.

*/ inline GetManagedResourceResult& AddZonalShifts(ZonalShiftInResource&& value) { m_zonalShifts.push_back(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 GetManagedResourceResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetManagedResourceResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetManagedResourceResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Map m_appliedWeights; Aws::String m_arn; Aws::String m_name; Aws::Vector m_zonalShifts; Aws::String m_requestId; }; } // namespace Model } // namespace ARCZonalShift } // namespace Aws