/** * 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 SageMaker { namespace Model { /** */ class AssociateTrialComponentRequest : public SageMakerRequest { public: AWS_SAGEMAKER_API AssociateTrialComponentRequest(); // 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 "AssociateTrialComponent"; } AWS_SAGEMAKER_API Aws::String SerializePayload() const override; AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the component to associated with the trial.

*/ inline const Aws::String& GetTrialComponentName() const{ return m_trialComponentName; } /** *

The name of the component to associated with the trial.

*/ inline bool TrialComponentNameHasBeenSet() const { return m_trialComponentNameHasBeenSet; } /** *

The name of the component to associated with the trial.

*/ inline void SetTrialComponentName(const Aws::String& value) { m_trialComponentNameHasBeenSet = true; m_trialComponentName = value; } /** *

The name of the component to associated with the trial.

*/ inline void SetTrialComponentName(Aws::String&& value) { m_trialComponentNameHasBeenSet = true; m_trialComponentName = std::move(value); } /** *

The name of the component to associated with the trial.

*/ inline void SetTrialComponentName(const char* value) { m_trialComponentNameHasBeenSet = true; m_trialComponentName.assign(value); } /** *

The name of the component to associated with the trial.

*/ inline AssociateTrialComponentRequest& WithTrialComponentName(const Aws::String& value) { SetTrialComponentName(value); return *this;} /** *

The name of the component to associated with the trial.

*/ inline AssociateTrialComponentRequest& WithTrialComponentName(Aws::String&& value) { SetTrialComponentName(std::move(value)); return *this;} /** *

The name of the component to associated with the trial.

*/ inline AssociateTrialComponentRequest& WithTrialComponentName(const char* value) { SetTrialComponentName(value); return *this;} /** *

The name of the trial to associate with.

*/ inline const Aws::String& GetTrialName() const{ return m_trialName; } /** *

The name of the trial to associate with.

*/ inline bool TrialNameHasBeenSet() const { return m_trialNameHasBeenSet; } /** *

The name of the trial to associate with.

*/ inline void SetTrialName(const Aws::String& value) { m_trialNameHasBeenSet = true; m_trialName = value; } /** *

The name of the trial to associate with.

*/ inline void SetTrialName(Aws::String&& value) { m_trialNameHasBeenSet = true; m_trialName = std::move(value); } /** *

The name of the trial to associate with.

*/ inline void SetTrialName(const char* value) { m_trialNameHasBeenSet = true; m_trialName.assign(value); } /** *

The name of the trial to associate with.

*/ inline AssociateTrialComponentRequest& WithTrialName(const Aws::String& value) { SetTrialName(value); return *this;} /** *

The name of the trial to associate with.

*/ inline AssociateTrialComponentRequest& WithTrialName(Aws::String&& value) { SetTrialName(std::move(value)); return *this;} /** *

The name of the trial to associate with.

*/ inline AssociateTrialComponentRequest& WithTrialName(const char* value) { SetTrialName(value); return *this;} private: Aws::String m_trialComponentName; bool m_trialComponentNameHasBeenSet = false; Aws::String m_trialName; bool m_trialNameHasBeenSet = false; }; } // namespace Model } // namespace SageMaker } // namespace Aws