/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Glue { namespace Model { /** */ class PutWorkflowRunPropertiesRequest : public GlueRequest { public: AWS_GLUE_API PutWorkflowRunPropertiesRequest(); // 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 "PutWorkflowRunProperties"; } AWS_GLUE_API Aws::String SerializePayload() const override; AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

Name of the workflow which was run.

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

Name of the workflow which was run.

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

Name of the workflow which was run.

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

Name of the workflow which was run.

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

Name of the workflow which was run.

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

Name of the workflow which was run.

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

Name of the workflow which was run.

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

Name of the workflow which was run.

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

The ID of the workflow run for which the run properties should be * updated.

*/ inline const Aws::String& GetRunId() const{ return m_runId; } /** *

The ID of the workflow run for which the run properties should be * updated.

*/ inline bool RunIdHasBeenSet() const { return m_runIdHasBeenSet; } /** *

The ID of the workflow run for which the run properties should be * updated.

*/ inline void SetRunId(const Aws::String& value) { m_runIdHasBeenSet = true; m_runId = value; } /** *

The ID of the workflow run for which the run properties should be * updated.

*/ inline void SetRunId(Aws::String&& value) { m_runIdHasBeenSet = true; m_runId = std::move(value); } /** *

The ID of the workflow run for which the run properties should be * updated.

*/ inline void SetRunId(const char* value) { m_runIdHasBeenSet = true; m_runId.assign(value); } /** *

The ID of the workflow run for which the run properties should be * updated.

*/ inline PutWorkflowRunPropertiesRequest& WithRunId(const Aws::String& value) { SetRunId(value); return *this;} /** *

The ID of the workflow run for which the run properties should be * updated.

*/ inline PutWorkflowRunPropertiesRequest& WithRunId(Aws::String&& value) { SetRunId(std::move(value)); return *this;} /** *

The ID of the workflow run for which the run properties should be * updated.

*/ inline PutWorkflowRunPropertiesRequest& WithRunId(const char* value) { SetRunId(value); return *this;} /** *

The properties to put for the specified run.

*/ inline const Aws::Map& GetRunProperties() const{ return m_runProperties; } /** *

The properties to put for the specified run.

*/ inline bool RunPropertiesHasBeenSet() const { return m_runPropertiesHasBeenSet; } /** *

The properties to put for the specified run.

*/ inline void SetRunProperties(const Aws::Map& value) { m_runPropertiesHasBeenSet = true; m_runProperties = value; } /** *

The properties to put for the specified run.

*/ inline void SetRunProperties(Aws::Map&& value) { m_runPropertiesHasBeenSet = true; m_runProperties = std::move(value); } /** *

The properties to put for the specified run.

*/ inline PutWorkflowRunPropertiesRequest& WithRunProperties(const Aws::Map& value) { SetRunProperties(value); return *this;} /** *

The properties to put for the specified run.

*/ inline PutWorkflowRunPropertiesRequest& WithRunProperties(Aws::Map&& value) { SetRunProperties(std::move(value)); return *this;} /** *

The properties to put for the specified run.

*/ inline PutWorkflowRunPropertiesRequest& AddRunProperties(const Aws::String& key, const Aws::String& value) { m_runPropertiesHasBeenSet = true; m_runProperties.emplace(key, value); return *this; } /** *

The properties to put for the specified run.

*/ inline PutWorkflowRunPropertiesRequest& AddRunProperties(Aws::String&& key, const Aws::String& value) { m_runPropertiesHasBeenSet = true; m_runProperties.emplace(std::move(key), value); return *this; } /** *

The properties to put for the specified run.

*/ inline PutWorkflowRunPropertiesRequest& AddRunProperties(const Aws::String& key, Aws::String&& value) { m_runPropertiesHasBeenSet = true; m_runProperties.emplace(key, std::move(value)); return *this; } /** *

The properties to put for the specified run.

*/ inline PutWorkflowRunPropertiesRequest& AddRunProperties(Aws::String&& key, Aws::String&& value) { m_runPropertiesHasBeenSet = true; m_runProperties.emplace(std::move(key), std::move(value)); return *this; } /** *

The properties to put for the specified run.

*/ inline PutWorkflowRunPropertiesRequest& AddRunProperties(const char* key, Aws::String&& value) { m_runPropertiesHasBeenSet = true; m_runProperties.emplace(key, std::move(value)); return *this; } /** *

The properties to put for the specified run.

*/ inline PutWorkflowRunPropertiesRequest& AddRunProperties(Aws::String&& key, const char* value) { m_runPropertiesHasBeenSet = true; m_runProperties.emplace(std::move(key), value); return *this; } /** *

The properties to put for the specified run.

*/ inline PutWorkflowRunPropertiesRequest& AddRunProperties(const char* key, const char* value) { m_runPropertiesHasBeenSet = true; m_runProperties.emplace(key, value); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_runId; bool m_runIdHasBeenSet = false; Aws::Map m_runProperties; bool m_runPropertiesHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws