/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains the parameters for
* CreateSchedulingPolicy
.See Also:
AWS
* API Reference
The name of the scheduling policy. It can be up to 128 letters long. It can * contain uppercase and lowercase letters, numbers, hyphens (-), and underscores * (_).
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the scheduling policy. It can be up to 128 letters long. It can * contain uppercase and lowercase letters, numbers, hyphens (-), and underscores * (_).
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the scheduling policy. It can be up to 128 letters long. It can * contain uppercase and lowercase letters, numbers, hyphens (-), and underscores * (_).
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the scheduling policy. It can be up to 128 letters long. It can * contain uppercase and lowercase letters, numbers, hyphens (-), and underscores * (_).
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the scheduling policy. It can be up to 128 letters long. It can * contain uppercase and lowercase letters, numbers, hyphens (-), and underscores * (_).
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the scheduling policy. It can be up to 128 letters long. It can * contain uppercase and lowercase letters, numbers, hyphens (-), and underscores * (_).
*/ inline CreateSchedulingPolicyRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the scheduling policy. It can be up to 128 letters long. It can * contain uppercase and lowercase letters, numbers, hyphens (-), and underscores * (_).
*/ inline CreateSchedulingPolicyRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the scheduling policy. It can be up to 128 letters long. It can * contain uppercase and lowercase letters, numbers, hyphens (-), and underscores * (_).
*/ inline CreateSchedulingPolicyRequest& WithName(const char* value) { SetName(value); return *this;} /** *The fair share policy of the scheduling policy.
*/ inline const FairsharePolicy& GetFairsharePolicy() const{ return m_fairsharePolicy; } /** *The fair share policy of the scheduling policy.
*/ inline bool FairsharePolicyHasBeenSet() const { return m_fairsharePolicyHasBeenSet; } /** *The fair share policy of the scheduling policy.
*/ inline void SetFairsharePolicy(const FairsharePolicy& value) { m_fairsharePolicyHasBeenSet = true; m_fairsharePolicy = value; } /** *The fair share policy of the scheduling policy.
*/ inline void SetFairsharePolicy(FairsharePolicy&& value) { m_fairsharePolicyHasBeenSet = true; m_fairsharePolicy = std::move(value); } /** *The fair share policy of the scheduling policy.
*/ inline CreateSchedulingPolicyRequest& WithFairsharePolicy(const FairsharePolicy& value) { SetFairsharePolicy(value); return *this;} /** *The fair share policy of the scheduling policy.
*/ inline CreateSchedulingPolicyRequest& WithFairsharePolicy(FairsharePolicy&& value) { SetFairsharePolicy(std::move(value)); return *this;} /** *The tags that you apply to the scheduling policy to help you categorize and * organize your resources. Each tag consists of a key and an optional value. For * more information, see Tagging * Amazon Web Services Resources in Amazon Web Services General * Reference.
These tags can be updated or removed using the TagResource * and UntagResource * API operations.
*/ inline const Aws::MapThe tags that you apply to the scheduling policy to help you categorize and * organize your resources. Each tag consists of a key and an optional value. For * more information, see Tagging * Amazon Web Services Resources in Amazon Web Services General * Reference.
These tags can be updated or removed using the TagResource * and UntagResource * API operations.
*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *The tags that you apply to the scheduling policy to help you categorize and * organize your resources. Each tag consists of a key and an optional value. For * more information, see Tagging * Amazon Web Services Resources in Amazon Web Services General * Reference.
These tags can be updated or removed using the TagResource * and UntagResource * API operations.
*/ inline void SetTags(const Aws::MapThe tags that you apply to the scheduling policy to help you categorize and * organize your resources. Each tag consists of a key and an optional value. For * more information, see Tagging * Amazon Web Services Resources in Amazon Web Services General * Reference.
These tags can be updated or removed using the TagResource * and UntagResource * API operations.
*/ inline void SetTags(Aws::MapThe tags that you apply to the scheduling policy to help you categorize and * organize your resources. Each tag consists of a key and an optional value. For * more information, see Tagging * Amazon Web Services Resources in Amazon Web Services General * Reference.
These tags can be updated or removed using the TagResource * and UntagResource * API operations.
*/ inline CreateSchedulingPolicyRequest& WithTags(const Aws::MapThe tags that you apply to the scheduling policy to help you categorize and * organize your resources. Each tag consists of a key and an optional value. For * more information, see Tagging * Amazon Web Services Resources in Amazon Web Services General * Reference.
These tags can be updated or removed using the TagResource * and UntagResource * API operations.
*/ inline CreateSchedulingPolicyRequest& WithTags(Aws::MapThe tags that you apply to the scheduling policy to help you categorize and * organize your resources. Each tag consists of a key and an optional value. For * more information, see Tagging * Amazon Web Services Resources in Amazon Web Services General * Reference.
These tags can be updated or removed using the TagResource * and UntagResource * API operations.
*/ inline CreateSchedulingPolicyRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *The tags that you apply to the scheduling policy to help you categorize and * organize your resources. Each tag consists of a key and an optional value. For * more information, see Tagging * Amazon Web Services Resources in Amazon Web Services General * Reference.
These tags can be updated or removed using the TagResource * and UntagResource * API operations.
*/ inline CreateSchedulingPolicyRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *The tags that you apply to the scheduling policy to help you categorize and * organize your resources. Each tag consists of a key and an optional value. For * more information, see Tagging * Amazon Web Services Resources in Amazon Web Services General * Reference.
These tags can be updated or removed using the TagResource * and UntagResource * API operations.
*/ inline CreateSchedulingPolicyRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *The tags that you apply to the scheduling policy to help you categorize and * organize your resources. Each tag consists of a key and an optional value. For * more information, see Tagging * Amazon Web Services Resources in Amazon Web Services General * Reference.
These tags can be updated or removed using the TagResource * and UntagResource * API operations.
*/ inline CreateSchedulingPolicyRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *The tags that you apply to the scheduling policy to help you categorize and * organize your resources. Each tag consists of a key and an optional value. For * more information, see Tagging * Amazon Web Services Resources in Amazon Web Services General * Reference.
These tags can be updated or removed using the TagResource * and UntagResource * API operations.
*/ inline CreateSchedulingPolicyRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *The tags that you apply to the scheduling policy to help you categorize and * organize your resources. Each tag consists of a key and an optional value. For * more information, see Tagging * Amazon Web Services Resources in Amazon Web Services General * Reference.
These tags can be updated or removed using the TagResource * and UntagResource * API operations.
*/ inline CreateSchedulingPolicyRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *The tags that you apply to the scheduling policy to help you categorize and * organize your resources. Each tag consists of a key and an optional value. For * more information, see Tagging * Amazon Web Services Resources in Amazon Web Services General * Reference.
These tags can be updated or removed using the TagResource * and UntagResource * API operations.
*/ inline CreateSchedulingPolicyRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; FairsharePolicy m_fairsharePolicy; bool m_fairsharePolicyHasBeenSet = false; Aws::Map