/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 ArrayPropertiesSummary { public: AWS_BATCH_API ArrayPropertiesSummary(); AWS_BATCH_API ArrayPropertiesSummary(Aws::Utils::Json::JsonView jsonValue); AWS_BATCH_API ArrayPropertiesSummary& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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 ArrayPropertiesSummary& WithSize(int value) { SetSize(value); return *this;} /** *

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

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

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

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

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

*/ 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 children of array jobs.

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