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

(Optional) If provided, lists only the specified command.

*/ inline const Aws::String& GetCommandId() const{ return m_commandId; } /** *

(Optional) If provided, lists only the specified command.

*/ inline bool CommandIdHasBeenSet() const { return m_commandIdHasBeenSet; } /** *

(Optional) If provided, lists only the specified command.

*/ inline void SetCommandId(const Aws::String& value) { m_commandIdHasBeenSet = true; m_commandId = value; } /** *

(Optional) If provided, lists only the specified command.

*/ inline void SetCommandId(Aws::String&& value) { m_commandIdHasBeenSet = true; m_commandId = std::move(value); } /** *

(Optional) If provided, lists only the specified command.

*/ inline void SetCommandId(const char* value) { m_commandIdHasBeenSet = true; m_commandId.assign(value); } /** *

(Optional) If provided, lists only the specified command.

*/ inline ListCommandsRequest& WithCommandId(const Aws::String& value) { SetCommandId(value); return *this;} /** *

(Optional) If provided, lists only the specified command.

*/ inline ListCommandsRequest& WithCommandId(Aws::String&& value) { SetCommandId(std::move(value)); return *this;} /** *

(Optional) If provided, lists only the specified command.

*/ inline ListCommandsRequest& WithCommandId(const char* value) { SetCommandId(value); return *this;} /** *

(Optional) Lists commands issued against this managed node ID.

*

You can't specify a managed node ID in the same command that you specify * Status = Pending. This is because the command hasn't * reached the managed node yet.

*/ inline const Aws::String& GetInstanceId() const{ return m_instanceId; } /** *

(Optional) Lists commands issued against this managed node ID.

*

You can't specify a managed node ID in the same command that you specify * Status = Pending. This is because the command hasn't * reached the managed node yet.

*/ inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; } /** *

(Optional) Lists commands issued against this managed node ID.

*

You can't specify a managed node ID in the same command that you specify * Status = Pending. This is because the command hasn't * reached the managed node yet.

*/ inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; } /** *

(Optional) Lists commands issued against this managed node ID.

*

You can't specify a managed node ID in the same command that you specify * Status = Pending. This is because the command hasn't * reached the managed node yet.

*/ inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); } /** *

(Optional) Lists commands issued against this managed node ID.

*

You can't specify a managed node ID in the same command that you specify * Status = Pending. This is because the command hasn't * reached the managed node yet.

*/ inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); } /** *

(Optional) Lists commands issued against this managed node ID.

*

You can't specify a managed node ID in the same command that you specify * Status = Pending. This is because the command hasn't * reached the managed node yet.

*/ inline ListCommandsRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;} /** *

(Optional) Lists commands issued against this managed node ID.

*

You can't specify a managed node ID in the same command that you specify * Status = Pending. This is because the command hasn't * reached the managed node yet.

*/ inline ListCommandsRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;} /** *

(Optional) Lists commands issued against this managed node ID.

*

You can't specify a managed node ID in the same command that you specify * Status = Pending. This is because the command hasn't * reached the managed node yet.

*/ inline ListCommandsRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;} /** *

(Optional) The maximum number of items to return for this call. The call also * returns a token that you can specify in a subsequent call to get the next set of * results.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

(Optional) The maximum number of items to return for this call. The call also * returns a token that you can specify in a subsequent call to get the next set of * results.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

(Optional) The maximum number of items to return for this call. The call also * returns a token that you can specify in a subsequent call to get the next set of * results.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

(Optional) The maximum number of items to return for this call. The call also * returns a token that you can specify in a subsequent call to get the next set of * results.

*/ inline ListCommandsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

(Optional) The token for the next set of items to return. (You received this * token from a previous call.)

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

(Optional) The token for the next set of items to return. (You received this * token from a previous call.)

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

(Optional) The token for the next set of items to return. (You received this * token from a previous call.)

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

(Optional) The token for the next set of items to return. (You received this * token from a previous call.)

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

(Optional) The token for the next set of items to return. (You received this * token from a previous call.)

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

(Optional) The token for the next set of items to return. (You received this * token from a previous call.)

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

(Optional) The token for the next set of items to return. (You received this * token from a previous call.)

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

(Optional) The token for the next set of items to return. (You received this * token from a previous call.)

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

(Optional) One or more filters. Use a filter to return a more specific list * of results.

*/ inline const Aws::Vector& GetFilters() const{ return m_filters; } /** *

(Optional) One or more filters. Use a filter to return a more specific list * of results.

*/ inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; } /** *

(Optional) One or more filters. Use a filter to return a more specific list * of results.

*/ inline void SetFilters(const Aws::Vector& value) { m_filtersHasBeenSet = true; m_filters = value; } /** *

(Optional) One or more filters. Use a filter to return a more specific list * of results.

*/ inline void SetFilters(Aws::Vector&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); } /** *

(Optional) One or more filters. Use a filter to return a more specific list * of results.

*/ inline ListCommandsRequest& WithFilters(const Aws::Vector& value) { SetFilters(value); return *this;} /** *

(Optional) One or more filters. Use a filter to return a more specific list * of results.

*/ inline ListCommandsRequest& WithFilters(Aws::Vector&& value) { SetFilters(std::move(value)); return *this;} /** *

(Optional) One or more filters. Use a filter to return a more specific list * of results.

*/ inline ListCommandsRequest& AddFilters(const CommandFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; } /** *

(Optional) One or more filters. Use a filter to return a more specific list * of results.

*/ inline ListCommandsRequest& AddFilters(CommandFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; } private: Aws::String m_commandId; bool m_commandIdHasBeenSet = false; Aws::String m_instanceId; bool m_instanceIdHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; Aws::Vector m_filters; bool m_filtersHasBeenSet = false; }; } // namespace Model } // namespace SSM } // namespace Aws