/** * 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 { /** *

Represents the input of a ListOnPremisesInstances * operation.

See Also:

AWS * API Reference

*/ class ListOnPremisesInstancesRequest : public CodeDeployRequest { public: AWS_CODEDEPLOY_API ListOnPremisesInstancesRequest(); // 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 "ListOnPremisesInstances"; } AWS_CODEDEPLOY_API Aws::String SerializePayload() const override; AWS_CODEDEPLOY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The registration status of the on-premises instances:

  • * Deregistered: Include deregistered on-premises instances in the * resulting list.

  • Registered: Include registered * on-premises instances in the resulting list.

*/ inline const RegistrationStatus& GetRegistrationStatus() const{ return m_registrationStatus; } /** *

The registration status of the on-premises instances:

  • * Deregistered: Include deregistered on-premises instances in the * resulting list.

  • Registered: Include registered * on-premises instances in the resulting list.

*/ inline bool RegistrationStatusHasBeenSet() const { return m_registrationStatusHasBeenSet; } /** *

The registration status of the on-premises instances:

  • * Deregistered: Include deregistered on-premises instances in the * resulting list.

  • Registered: Include registered * on-premises instances in the resulting list.

*/ inline void SetRegistrationStatus(const RegistrationStatus& value) { m_registrationStatusHasBeenSet = true; m_registrationStatus = value; } /** *

The registration status of the on-premises instances:

  • * Deregistered: Include deregistered on-premises instances in the * resulting list.

  • Registered: Include registered * on-premises instances in the resulting list.

*/ inline void SetRegistrationStatus(RegistrationStatus&& value) { m_registrationStatusHasBeenSet = true; m_registrationStatus = std::move(value); } /** *

The registration status of the on-premises instances:

  • * Deregistered: Include deregistered on-premises instances in the * resulting list.

  • Registered: Include registered * on-premises instances in the resulting list.

*/ inline ListOnPremisesInstancesRequest& WithRegistrationStatus(const RegistrationStatus& value) { SetRegistrationStatus(value); return *this;} /** *

The registration status of the on-premises instances:

  • * Deregistered: Include deregistered on-premises instances in the * resulting list.

  • Registered: Include registered * on-premises instances in the resulting list.

*/ inline ListOnPremisesInstancesRequest& WithRegistrationStatus(RegistrationStatus&& value) { SetRegistrationStatus(std::move(value)); return *this;} /** *

The on-premises instance tags that are used to restrict the on-premises * instance names returned.

*/ inline const Aws::Vector& GetTagFilters() const{ return m_tagFilters; } /** *

The on-premises instance tags that are used to restrict the on-premises * instance names returned.

*/ inline bool TagFiltersHasBeenSet() const { return m_tagFiltersHasBeenSet; } /** *

The on-premises instance tags that are used to restrict the on-premises * instance names returned.

*/ inline void SetTagFilters(const Aws::Vector& value) { m_tagFiltersHasBeenSet = true; m_tagFilters = value; } /** *

The on-premises instance tags that are used to restrict the on-premises * instance names returned.

*/ inline void SetTagFilters(Aws::Vector&& value) { m_tagFiltersHasBeenSet = true; m_tagFilters = std::move(value); } /** *

The on-premises instance tags that are used to restrict the on-premises * instance names returned.

*/ inline ListOnPremisesInstancesRequest& WithTagFilters(const Aws::Vector& value) { SetTagFilters(value); return *this;} /** *

The on-premises instance tags that are used to restrict the on-premises * instance names returned.

*/ inline ListOnPremisesInstancesRequest& WithTagFilters(Aws::Vector&& value) { SetTagFilters(std::move(value)); return *this;} /** *

The on-premises instance tags that are used to restrict the on-premises * instance names returned.

*/ inline ListOnPremisesInstancesRequest& AddTagFilters(const TagFilter& value) { m_tagFiltersHasBeenSet = true; m_tagFilters.push_back(value); return *this; } /** *

The on-premises instance tags that are used to restrict the on-premises * instance names returned.

*/ inline ListOnPremisesInstancesRequest& AddTagFilters(TagFilter&& value) { m_tagFiltersHasBeenSet = true; m_tagFilters.push_back(std::move(value)); return *this; } /** *

An identifier returned from the previous list on-premises instances call. It * can be used to return the next set of on-premises instances in the list.

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

An identifier returned from the previous list on-premises instances call. It * can be used to return the next set of on-premises instances in the list.

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

An identifier returned from the previous list on-premises instances call. It * can be used to return the next set of on-premises instances in the list.

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

An identifier returned from the previous list on-premises instances call. It * can be used to return the next set of on-premises instances in the list.

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

An identifier returned from the previous list on-premises instances call. It * can be used to return the next set of on-premises instances in the list.

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

An identifier returned from the previous list on-premises instances call. It * can be used to return the next set of on-premises instances in the list.

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

An identifier returned from the previous list on-premises instances call. It * can be used to return the next set of on-premises instances in the list.

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

An identifier returned from the previous list on-premises instances call. It * can be used to return the next set of on-premises instances in the list.

*/ inline ListOnPremisesInstancesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: RegistrationStatus m_registrationStatus; bool m_registrationStatusHasBeenSet = false; Aws::Vector m_tagFilters; bool m_tagFiltersHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace CodeDeploy } // namespace Aws