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

An object that represents the array properties of a job.

See * Also:

AWS * API Reference

*/ class ArrayPropertiesDetail { public: AWS_BATCH_API ArrayPropertiesDetail(); AWS_BATCH_API ArrayPropertiesDetail(Aws::Utils::Json::JsonView jsonValue); AWS_BATCH_API ArrayPropertiesDetail& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

A summary of the number of array job children in each available job status. * This parameter is returned for parent array jobs.

*/ inline const Aws::Map& GetStatusSummary() const{ return m_statusSummary; } /** *

A summary of the number of array job children in each available job status. * This parameter is returned for parent array jobs.

*/ inline bool StatusSummaryHasBeenSet() const { return m_statusSummaryHasBeenSet; } /** *

A summary of the number of array job children in each available job status. * This parameter is returned for parent array jobs.

*/ inline void SetStatusSummary(const Aws::Map& value) { m_statusSummaryHasBeenSet = true; m_statusSummary = value; } /** *

A summary of the number of array job children in each available job status. * This parameter is returned for parent array jobs.

*/ inline void SetStatusSummary(Aws::Map&& value) { m_statusSummaryHasBeenSet = true; m_statusSummary = std::move(value); } /** *

A summary of the number of array job children in each available job status. * This parameter is returned for parent array jobs.

*/ inline ArrayPropertiesDetail& WithStatusSummary(const Aws::Map& value) { SetStatusSummary(value); return *this;} /** *

A summary of the number of array job children in each available job status. * This parameter is returned for parent array jobs.

*/ inline ArrayPropertiesDetail& WithStatusSummary(Aws::Map&& value) { SetStatusSummary(std::move(value)); return *this;} /** *

A summary of the number of array job children in each available job status. * This parameter is returned for parent array jobs.

*/ inline ArrayPropertiesDetail& AddStatusSummary(const Aws::String& key, int value) { m_statusSummaryHasBeenSet = true; m_statusSummary.emplace(key, value); return *this; } /** *

A summary of the number of array job children in each available job status. * This parameter is returned for parent array jobs.

*/ inline ArrayPropertiesDetail& AddStatusSummary(Aws::String&& key, int value) { m_statusSummaryHasBeenSet = true; m_statusSummary.emplace(std::move(key), value); return *this; } /** *

A summary of the number of array job children in each available job status. * This parameter is returned for parent array jobs.

*/ inline ArrayPropertiesDetail& AddStatusSummary(const char* key, int value) { m_statusSummaryHasBeenSet = true; m_statusSummary.emplace(key, value); return *this; } /** *

The size of the array job. This parameter is returned for parent array * jobs.

*/ inline int GetSize() const{ return m_size; } /** *

The size of the array job. This parameter is returned for parent array * jobs.

*/ inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; } /** *

The size of the array job. This parameter is returned for parent array * jobs.

*/ inline void SetSize(int value) { m_sizeHasBeenSet = true; m_size = value; } /** *

The size of the array job. This parameter is returned for parent array * jobs.

*/ inline ArrayPropertiesDetail& WithSize(int value) { SetSize(value); return *this;} /** *

The job index within the array that's associated with this job. This * parameter is returned for array job children.

*/ inline int GetIndex() const{ return m_index; } /** *

The job index within the array that's associated with this job. This * parameter is returned for array job children.

*/ inline bool IndexHasBeenSet() const { return m_indexHasBeenSet; } /** *

The job index within the array that's associated with this job. This * parameter is returned for array job children.

*/ inline void SetIndex(int value) { m_indexHasBeenSet = true; m_index = value; } /** *

The job index within the array that's associated with this job. This * parameter is returned for array job children.

*/ inline ArrayPropertiesDetail& WithIndex(int value) { SetIndex(value); return *this;} private: Aws::Map m_statusSummary; bool m_statusSummaryHasBeenSet = false; int m_size; bool m_sizeHasBeenSet = false; int m_index; bool m_indexHasBeenSet = false; }; } // namespace Model } // namespace Batch } // namespace Aws