/**
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0.
 */

#pragma once
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/states/SFNRequest.h>
#include <aws/states/SFN_EXPORTS.h>

#include <utility>

namespace Aws {
namespace SFN {
namespace Model {

/**
 */
class GetActivityTaskRequest : public SFNRequest {
 public:
  AWS_SFN_API GetActivityTaskRequest() = default;

  // 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 "GetActivityTask"; }

  AWS_SFN_API Aws::String SerializePayload() const override;

  AWS_SFN_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;

  ///@{
  /**
   * <p>The Amazon Resource Name (ARN) of the activity to retrieve tasks from
   * (assigned when you create the task using <a>CreateActivity</a>.)</p>
   */
  inline const Aws::String& GetActivityArn() const { return m_activityArn; }
  inline bool ActivityArnHasBeenSet() const { return m_activityArnHasBeenSet; }
  template <typename ActivityArnT = Aws::String>
  void SetActivityArn(ActivityArnT&& value) {
    m_activityArnHasBeenSet = true;
    m_activityArn = std::forward<ActivityArnT>(value);
  }
  template <typename ActivityArnT = Aws::String>
  GetActivityTaskRequest& WithActivityArn(ActivityArnT&& value) {
    SetActivityArn(std::forward<ActivityArnT>(value));
    return *this;
  }
  ///@}

  ///@{
  /**
   * <p>You can provide an arbitrary name in order to identify the worker that the
   * task is assigned to. This name is used when it is logged in the execution
   * history.</p>
   */
  inline const Aws::String& GetWorkerName() const { return m_workerName; }
  inline bool WorkerNameHasBeenSet() const { return m_workerNameHasBeenSet; }
  template <typename WorkerNameT = Aws::String>
  void SetWorkerName(WorkerNameT&& value) {
    m_workerNameHasBeenSet = true;
    m_workerName = std::forward<WorkerNameT>(value);
  }
  template <typename WorkerNameT = Aws::String>
  GetActivityTaskRequest& WithWorkerName(WorkerNameT&& value) {
    SetWorkerName(std::forward<WorkerNameT>(value));
    return *this;
  }
  ///@}
 private:
  Aws::String m_activityArn;

  Aws::String m_workerName;
  bool m_activityArnHasBeenSet = false;
  bool m_workerNameHasBeenSet = false;
};

}  // namespace Model
}  // namespace SFN
}  // namespace Aws
