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

The unique ID of a deployment.

*/ inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; } /** *

The unique ID of a deployment.

*/ inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; } /** *

The unique ID of a deployment.

*/ inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; } /** *

The unique ID of a deployment.

*/ inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); } /** *

The unique ID of a deployment.

*/ inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); } /** *

The unique ID of a deployment.

*/ inline ListDeploymentTargetsRequest& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;} /** *

The unique ID of a deployment.

*/ inline ListDeploymentTargetsRequest& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;} /** *

The unique ID of a deployment.

*/ inline ListDeploymentTargetsRequest& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;} /** *

A token identifier returned from the previous * ListDeploymentTargets call. It can be used to return the next set * of deployment targets in the list.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

A token identifier returned from the previous * ListDeploymentTargets call. It can be used to return the next set * of deployment targets in the list.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

A token identifier returned from the previous * ListDeploymentTargets call. It can be used to return the next set * of deployment targets in the list.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

A token identifier returned from the previous * ListDeploymentTargets call. It can be used to return the next set * of deployment targets in the list.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

A token identifier returned from the previous * ListDeploymentTargets call. It can be used to return the next set * of deployment targets in the list.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

A token identifier returned from the previous * ListDeploymentTargets call. It can be used to return the next set * of deployment targets in the list.

*/ inline ListDeploymentTargetsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

A token identifier returned from the previous * ListDeploymentTargets call. It can be used to return the next set * of deployment targets in the list.

*/ inline ListDeploymentTargetsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

A token identifier returned from the previous * ListDeploymentTargets call. It can be used to return the next set * of deployment targets in the list.

*/ inline ListDeploymentTargetsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

A key used to filter the returned targets. The two valid values are:

*
  • TargetStatus - A TargetStatus filter * string can be Failed, InProgress, * Pending, Ready, Skipped, * Succeeded, or Unknown.

  • * ServerInstanceLabel - A ServerInstanceLabel filter * string can be Blue or Green.

*/ inline const Aws::Map>& GetTargetFilters() const{ return m_targetFilters; } /** *

A key used to filter the returned targets. The two valid values are:

*
  • TargetStatus - A TargetStatus filter * string can be Failed, InProgress, * Pending, Ready, Skipped, * Succeeded, or Unknown.

  • * ServerInstanceLabel - A ServerInstanceLabel filter * string can be Blue or Green.

*/ inline bool TargetFiltersHasBeenSet() const { return m_targetFiltersHasBeenSet; } /** *

A key used to filter the returned targets. The two valid values are:

*
  • TargetStatus - A TargetStatus filter * string can be Failed, InProgress, * Pending, Ready, Skipped, * Succeeded, or Unknown.

  • * ServerInstanceLabel - A ServerInstanceLabel filter * string can be Blue or Green.

*/ inline void SetTargetFilters(const Aws::Map>& value) { m_targetFiltersHasBeenSet = true; m_targetFilters = value; } /** *

A key used to filter the returned targets. The two valid values are:

*
  • TargetStatus - A TargetStatus filter * string can be Failed, InProgress, * Pending, Ready, Skipped, * Succeeded, or Unknown.

  • * ServerInstanceLabel - A ServerInstanceLabel filter * string can be Blue or Green.

*/ inline void SetTargetFilters(Aws::Map>&& value) { m_targetFiltersHasBeenSet = true; m_targetFilters = std::move(value); } /** *

A key used to filter the returned targets. The two valid values are:

*
  • TargetStatus - A TargetStatus filter * string can be Failed, InProgress, * Pending, Ready, Skipped, * Succeeded, or Unknown.

  • * ServerInstanceLabel - A ServerInstanceLabel filter * string can be Blue or Green.

*/ inline ListDeploymentTargetsRequest& WithTargetFilters(const Aws::Map>& value) { SetTargetFilters(value); return *this;} /** *

A key used to filter the returned targets. The two valid values are:

*
  • TargetStatus - A TargetStatus filter * string can be Failed, InProgress, * Pending, Ready, Skipped, * Succeeded, or Unknown.

  • * ServerInstanceLabel - A ServerInstanceLabel filter * string can be Blue or Green.

*/ inline ListDeploymentTargetsRequest& WithTargetFilters(Aws::Map>&& value) { SetTargetFilters(std::move(value)); return *this;} /** *

A key used to filter the returned targets. The two valid values are:

*
  • TargetStatus - A TargetStatus filter * string can be Failed, InProgress, * Pending, Ready, Skipped, * Succeeded, or Unknown.

  • * ServerInstanceLabel - A ServerInstanceLabel filter * string can be Blue or Green.

*/ inline ListDeploymentTargetsRequest& AddTargetFilters(const TargetFilterName& key, const Aws::Vector& value) { m_targetFiltersHasBeenSet = true; m_targetFilters.emplace(key, value); return *this; } /** *

A key used to filter the returned targets. The two valid values are:

*
  • TargetStatus - A TargetStatus filter * string can be Failed, InProgress, * Pending, Ready, Skipped, * Succeeded, or Unknown.

  • * ServerInstanceLabel - A ServerInstanceLabel filter * string can be Blue or Green.

*/ inline ListDeploymentTargetsRequest& AddTargetFilters(TargetFilterName&& key, const Aws::Vector& value) { m_targetFiltersHasBeenSet = true; m_targetFilters.emplace(std::move(key), value); return *this; } /** *

A key used to filter the returned targets. The two valid values are:

*
  • TargetStatus - A TargetStatus filter * string can be Failed, InProgress, * Pending, Ready, Skipped, * Succeeded, or Unknown.

  • * ServerInstanceLabel - A ServerInstanceLabel filter * string can be Blue or Green.

*/ inline ListDeploymentTargetsRequest& AddTargetFilters(const TargetFilterName& key, Aws::Vector&& value) { m_targetFiltersHasBeenSet = true; m_targetFilters.emplace(key, std::move(value)); return *this; } /** *

A key used to filter the returned targets. The two valid values are:

*
  • TargetStatus - A TargetStatus filter * string can be Failed, InProgress, * Pending, Ready, Skipped, * Succeeded, or Unknown.

  • * ServerInstanceLabel - A ServerInstanceLabel filter * string can be Blue or Green.

*/ inline ListDeploymentTargetsRequest& AddTargetFilters(TargetFilterName&& key, Aws::Vector&& value) { m_targetFiltersHasBeenSet = true; m_targetFilters.emplace(std::move(key), std::move(value)); return *this; } private: Aws::String m_deploymentId; bool m_deploymentIdHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; Aws::Map> m_targetFilters; bool m_targetFiltersHasBeenSet = false; }; } // namespace Model } // namespace CodeDeploy } // namespace Aws