/** * 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 SSM { namespace Model { /** */ class DescribeMaintenanceWindowsForTargetRequest : public SSMRequest { public: AWS_SSM_API DescribeMaintenanceWindowsForTargetRequest(); // 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 "DescribeMaintenanceWindowsForTarget"; } AWS_SSM_API Aws::String SerializePayload() const override; AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The managed node ID or key-value pair to retrieve information about.

*/ inline const Aws::Vector& GetTargets() const{ return m_targets; } /** *

The managed node ID or key-value pair to retrieve information about.

*/ inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; } /** *

The managed node ID or key-value pair to retrieve information about.

*/ inline void SetTargets(const Aws::Vector& value) { m_targetsHasBeenSet = true; m_targets = value; } /** *

The managed node ID or key-value pair to retrieve information about.

*/ inline void SetTargets(Aws::Vector&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); } /** *

The managed node ID or key-value pair to retrieve information about.

*/ inline DescribeMaintenanceWindowsForTargetRequest& WithTargets(const Aws::Vector& value) { SetTargets(value); return *this;} /** *

The managed node ID or key-value pair to retrieve information about.

*/ inline DescribeMaintenanceWindowsForTargetRequest& WithTargets(Aws::Vector&& value) { SetTargets(std::move(value)); return *this;} /** *

The managed node ID or key-value pair to retrieve information about.

*/ inline DescribeMaintenanceWindowsForTargetRequest& AddTargets(const Target& value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; } /** *

The managed node ID or key-value pair to retrieve information about.

*/ inline DescribeMaintenanceWindowsForTargetRequest& AddTargets(Target&& value) { m_targetsHasBeenSet = true; m_targets.push_back(std::move(value)); return *this; } /** *

The type of resource you want to retrieve information about. For example, * INSTANCE.

*/ inline const MaintenanceWindowResourceType& GetResourceType() const{ return m_resourceType; } /** *

The type of resource you want to retrieve information about. For example, * INSTANCE.

*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *

The type of resource you want to retrieve information about. For example, * INSTANCE.

*/ inline void SetResourceType(const MaintenanceWindowResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } /** *

The type of resource you want to retrieve information about. For example, * INSTANCE.

*/ inline void SetResourceType(MaintenanceWindowResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } /** *

The type of resource you want to retrieve information about. For example, * INSTANCE.

*/ inline DescribeMaintenanceWindowsForTargetRequest& WithResourceType(const MaintenanceWindowResourceType& value) { SetResourceType(value); return *this;} /** *

The type of resource you want to retrieve information about. For example, * INSTANCE.

*/ inline DescribeMaintenanceWindowsForTargetRequest& WithResourceType(MaintenanceWindowResourceType&& value) { SetResourceType(std::move(value)); return *this;} /** *

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; } /** *

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; } /** *

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; } /** *

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 DescribeMaintenanceWindowsForTargetRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

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; } /** *

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; } /** *

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; } /** *

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); } /** *

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); } /** *

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

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

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

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

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

*/ inline DescribeMaintenanceWindowsForTargetRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::Vector m_targets; bool m_targetsHasBeenSet = false; MaintenanceWindowResourceType m_resourceType; bool m_resourceTypeHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace SSM } // namespace Aws