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

The ID of the maintenance window to retrieve information about.

*/ inline const Aws::String& GetWindowId() const{ return m_windowId; } /** *

The ID of the maintenance window to retrieve information about.

*/ inline bool WindowIdHasBeenSet() const { return m_windowIdHasBeenSet; } /** *

The ID of the maintenance window to retrieve information about.

*/ inline void SetWindowId(const Aws::String& value) { m_windowIdHasBeenSet = true; m_windowId = value; } /** *

The ID of the maintenance window to retrieve information about.

*/ inline void SetWindowId(Aws::String&& value) { m_windowIdHasBeenSet = true; m_windowId = std::move(value); } /** *

The ID of the maintenance window to retrieve information about.

*/ inline void SetWindowId(const char* value) { m_windowIdHasBeenSet = true; m_windowId.assign(value); } /** *

The ID of the maintenance window to retrieve information about.

*/ inline DescribeMaintenanceWindowScheduleRequest& WithWindowId(const Aws::String& value) { SetWindowId(value); return *this;} /** *

The ID of the maintenance window to retrieve information about.

*/ inline DescribeMaintenanceWindowScheduleRequest& WithWindowId(Aws::String&& value) { SetWindowId(std::move(value)); return *this;} /** *

The ID of the maintenance window to retrieve information about.

*/ inline DescribeMaintenanceWindowScheduleRequest& WithWindowId(const char* value) { SetWindowId(value); return *this;} /** *

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 DescribeMaintenanceWindowScheduleRequest& WithTargets(const Aws::Vector& value) { SetTargets(value); return *this;} /** *

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

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

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

*/ inline DescribeMaintenanceWindowScheduleRequest& 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 DescribeMaintenanceWindowScheduleRequest& 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 DescribeMaintenanceWindowScheduleRequest& WithResourceType(const MaintenanceWindowResourceType& value) { SetResourceType(value); return *this;} /** *

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

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

Filters used to limit the range of results. For example, you can limit * maintenance window executions to only those scheduled before or after a certain * date and time.

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

Filters used to limit the range of results. For example, you can limit * maintenance window executions to only those scheduled before or after a certain * date and time.

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

Filters used to limit the range of results. For example, you can limit * maintenance window executions to only those scheduled before or after a certain * date and time.

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

Filters used to limit the range of results. For example, you can limit * maintenance window executions to only those scheduled before or after a certain * date and time.

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

Filters used to limit the range of results. For example, you can limit * maintenance window executions to only those scheduled before or after a certain * date and time.

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

Filters used to limit the range of results. For example, you can limit * maintenance window executions to only those scheduled before or after a certain * date and time.

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

Filters used to limit the range of results. For example, you can limit * maintenance window executions to only those scheduled before or after a certain * date and time.

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

Filters used to limit the range of results. For example, you can limit * maintenance window executions to only those scheduled before or after a certain * date and time.

*/ inline DescribeMaintenanceWindowScheduleRequest& AddFilters(PatchOrchestratorFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(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 DescribeMaintenanceWindowScheduleRequest& 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 DescribeMaintenanceWindowScheduleRequest& 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 DescribeMaintenanceWindowScheduleRequest& 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 DescribeMaintenanceWindowScheduleRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::String m_windowId; bool m_windowIdHasBeenSet = false; Aws::Vector m_targets; bool m_targetsHasBeenSet = false; MaintenanceWindowResourceType m_resourceType; bool m_resourceTypeHasBeenSet = false; Aws::Vector m_filters; bool m_filtersHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace SSM } // namespace Aws