/** * 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 an Batch job dependency.

See Also:

* AWS * API Reference

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

The job ID of the Batch job that's associated with this dependency.

*/ inline const Aws::String& GetJobId() const{ return m_jobId; } /** *

The job ID of the Batch job that's associated with this dependency.

*/ inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; } /** *

The job ID of the Batch job that's associated with this dependency.

*/ inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; } /** *

The job ID of the Batch job that's associated with this dependency.

*/ inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); } /** *

The job ID of the Batch job that's associated with this dependency.

*/ inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); } /** *

The job ID of the Batch job that's associated with this dependency.

*/ inline JobDependency& WithJobId(const Aws::String& value) { SetJobId(value); return *this;} /** *

The job ID of the Batch job that's associated with this dependency.

*/ inline JobDependency& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;} /** *

The job ID of the Batch job that's associated with this dependency.

*/ inline JobDependency& WithJobId(const char* value) { SetJobId(value); return *this;} /** *

The type of the job dependency.

*/ inline const ArrayJobDependency& GetType() const{ return m_type; } /** *

The type of the job dependency.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of the job dependency.

*/ inline void SetType(const ArrayJobDependency& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of the job dependency.

*/ inline void SetType(ArrayJobDependency&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of the job dependency.

*/ inline JobDependency& WithType(const ArrayJobDependency& value) { SetType(value); return *this;} /** *

The type of the job dependency.

*/ inline JobDependency& WithType(ArrayJobDependency&& value) { SetType(std::move(value)); return *this;} private: Aws::String m_jobId; bool m_jobIdHasBeenSet = false; ArrayJobDependency m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace Batch } // namespace Aws