/** * 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 { namespace Omics { namespace Model { /** */ class CreateRunGroupRequest : public OmicsRequest { public: AWS_OMICS_API CreateRunGroupRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateRunGroup"; } AWS_OMICS_API Aws::String SerializePayload() const override; /** *

A name for the group.

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

A name for the group.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

A name for the group.

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

A name for the group.

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

A name for the group.

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

A name for the group.

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

A name for the group.

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

A name for the group.

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

The maximum number of CPUs to use in the group.

*/ inline int GetMaxCpus() const{ return m_maxCpus; } /** *

The maximum number of CPUs to use in the group.

*/ inline bool MaxCpusHasBeenSet() const { return m_maxCpusHasBeenSet; } /** *

The maximum number of CPUs to use in the group.

*/ inline void SetMaxCpus(int value) { m_maxCpusHasBeenSet = true; m_maxCpus = value; } /** *

The maximum number of CPUs to use in the group.

*/ inline CreateRunGroupRequest& WithMaxCpus(int value) { SetMaxCpus(value); return *this;} /** *

The maximum number of concurrent runs for the group.

*/ inline int GetMaxRuns() const{ return m_maxRuns; } /** *

The maximum number of concurrent runs for the group.

*/ inline bool MaxRunsHasBeenSet() const { return m_maxRunsHasBeenSet; } /** *

The maximum number of concurrent runs for the group.

*/ inline void SetMaxRuns(int value) { m_maxRunsHasBeenSet = true; m_maxRuns = value; } /** *

The maximum number of concurrent runs for the group.

*/ inline CreateRunGroupRequest& WithMaxRuns(int value) { SetMaxRuns(value); return *this;} /** *

A maximum run time for the group in minutes.

*/ inline int GetMaxDuration() const{ return m_maxDuration; } /** *

A maximum run time for the group in minutes.

*/ inline bool MaxDurationHasBeenSet() const { return m_maxDurationHasBeenSet; } /** *

A maximum run time for the group in minutes.

*/ inline void SetMaxDuration(int value) { m_maxDurationHasBeenSet = true; m_maxDuration = value; } /** *

A maximum run time for the group in minutes.

*/ inline CreateRunGroupRequest& WithMaxDuration(int value) { SetMaxDuration(value); return *this;} /** *

Tags for the group.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

Tags for the group.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Tags for the group.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

Tags for the group.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

Tags for the group.

*/ inline CreateRunGroupRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

Tags for the group.

*/ inline CreateRunGroupRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

Tags for the group.

*/ inline CreateRunGroupRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

Tags for the group.

*/ inline CreateRunGroupRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

Tags for the group.

*/ inline CreateRunGroupRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

Tags for the group.

*/ inline CreateRunGroupRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

Tags for the group.

*/ inline CreateRunGroupRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

Tags for the group.

*/ inline CreateRunGroupRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

Tags for the group.

*/ inline CreateRunGroupRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

To ensure that requests don't run multiple times, specify a unique ID for * each request.

*/ inline const Aws::String& GetRequestId() const{ return m_requestId; } /** *

To ensure that requests don't run multiple times, specify a unique ID for * each request.

*/ inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; } /** *

To ensure that requests don't run multiple times, specify a unique ID for * each request.

*/ inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; } /** *

To ensure that requests don't run multiple times, specify a unique ID for * each request.

*/ inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); } /** *

To ensure that requests don't run multiple times, specify a unique ID for * each request.

*/ inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); } /** *

To ensure that requests don't run multiple times, specify a unique ID for * each request.

*/ inline CreateRunGroupRequest& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} /** *

To ensure that requests don't run multiple times, specify a unique ID for * each request.

*/ inline CreateRunGroupRequest& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} /** *

To ensure that requests don't run multiple times, specify a unique ID for * each request.

*/ inline CreateRunGroupRequest& WithRequestId(const char* value) { SetRequestId(value); return *this;} /** *

The maximum GPUs that can be used by a run group.

*/ inline int GetMaxGpus() const{ return m_maxGpus; } /** *

The maximum GPUs that can be used by a run group.

*/ inline bool MaxGpusHasBeenSet() const { return m_maxGpusHasBeenSet; } /** *

The maximum GPUs that can be used by a run group.

*/ inline void SetMaxGpus(int value) { m_maxGpusHasBeenSet = true; m_maxGpus = value; } /** *

The maximum GPUs that can be used by a run group.

*/ inline CreateRunGroupRequest& WithMaxGpus(int value) { SetMaxGpus(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; int m_maxCpus; bool m_maxCpusHasBeenSet = false; int m_maxRuns; bool m_maxRunsHasBeenSet = false; int m_maxDuration; bool m_maxDurationHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; Aws::String m_requestId; bool m_requestIdHasBeenSet = false; int m_maxGpus; bool m_maxGpusHasBeenSet = false; }; } // namespace Model } // namespace Omics } // namespace Aws