/** * 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 Http { class URI; } //namespace Http namespace EMRContainers { namespace Model { /** */ class ListVirtualClustersRequest : public EMRContainersRequest { public: AWS_EMRCONTAINERS_API ListVirtualClustersRequest(); // 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 "ListVirtualClusters"; } AWS_EMRCONTAINERS_API Aws::String SerializePayload() const override; AWS_EMRCONTAINERS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

The container provider ID of the virtual cluster.

*/ inline const Aws::String& GetContainerProviderId() const{ return m_containerProviderId; } /** *

The container provider ID of the virtual cluster.

*/ inline bool ContainerProviderIdHasBeenSet() const { return m_containerProviderIdHasBeenSet; } /** *

The container provider ID of the virtual cluster.

*/ inline void SetContainerProviderId(const Aws::String& value) { m_containerProviderIdHasBeenSet = true; m_containerProviderId = value; } /** *

The container provider ID of the virtual cluster.

*/ inline void SetContainerProviderId(Aws::String&& value) { m_containerProviderIdHasBeenSet = true; m_containerProviderId = std::move(value); } /** *

The container provider ID of the virtual cluster.

*/ inline void SetContainerProviderId(const char* value) { m_containerProviderIdHasBeenSet = true; m_containerProviderId.assign(value); } /** *

The container provider ID of the virtual cluster.

*/ inline ListVirtualClustersRequest& WithContainerProviderId(const Aws::String& value) { SetContainerProviderId(value); return *this;} /** *

The container provider ID of the virtual cluster.

*/ inline ListVirtualClustersRequest& WithContainerProviderId(Aws::String&& value) { SetContainerProviderId(std::move(value)); return *this;} /** *

The container provider ID of the virtual cluster.

*/ inline ListVirtualClustersRequest& WithContainerProviderId(const char* value) { SetContainerProviderId(value); return *this;} /** *

The container provider type of the virtual cluster. Amazon EKS is the only * supported type as of now.

*/ inline const ContainerProviderType& GetContainerProviderType() const{ return m_containerProviderType; } /** *

The container provider type of the virtual cluster. Amazon EKS is the only * supported type as of now.

*/ inline bool ContainerProviderTypeHasBeenSet() const { return m_containerProviderTypeHasBeenSet; } /** *

The container provider type of the virtual cluster. Amazon EKS is the only * supported type as of now.

*/ inline void SetContainerProviderType(const ContainerProviderType& value) { m_containerProviderTypeHasBeenSet = true; m_containerProviderType = value; } /** *

The container provider type of the virtual cluster. Amazon EKS is the only * supported type as of now.

*/ inline void SetContainerProviderType(ContainerProviderType&& value) { m_containerProviderTypeHasBeenSet = true; m_containerProviderType = std::move(value); } /** *

The container provider type of the virtual cluster. Amazon EKS is the only * supported type as of now.

*/ inline ListVirtualClustersRequest& WithContainerProviderType(const ContainerProviderType& value) { SetContainerProviderType(value); return *this;} /** *

The container provider type of the virtual cluster. Amazon EKS is the only * supported type as of now.

*/ inline ListVirtualClustersRequest& WithContainerProviderType(ContainerProviderType&& value) { SetContainerProviderType(std::move(value)); return *this;} /** *

The date and time after which the virtual clusters are created.

*/ inline const Aws::Utils::DateTime& GetCreatedAfter() const{ return m_createdAfter; } /** *

The date and time after which the virtual clusters are created.

*/ inline bool CreatedAfterHasBeenSet() const { return m_createdAfterHasBeenSet; } /** *

The date and time after which the virtual clusters are created.

*/ inline void SetCreatedAfter(const Aws::Utils::DateTime& value) { m_createdAfterHasBeenSet = true; m_createdAfter = value; } /** *

The date and time after which the virtual clusters are created.

*/ inline void SetCreatedAfter(Aws::Utils::DateTime&& value) { m_createdAfterHasBeenSet = true; m_createdAfter = std::move(value); } /** *

The date and time after which the virtual clusters are created.

*/ inline ListVirtualClustersRequest& WithCreatedAfter(const Aws::Utils::DateTime& value) { SetCreatedAfter(value); return *this;} /** *

The date and time after which the virtual clusters are created.

*/ inline ListVirtualClustersRequest& WithCreatedAfter(Aws::Utils::DateTime&& value) { SetCreatedAfter(std::move(value)); return *this;} /** *

The date and time before which the virtual clusters are created.

*/ inline const Aws::Utils::DateTime& GetCreatedBefore() const{ return m_createdBefore; } /** *

The date and time before which the virtual clusters are created.

*/ inline bool CreatedBeforeHasBeenSet() const { return m_createdBeforeHasBeenSet; } /** *

The date and time before which the virtual clusters are created.

*/ inline void SetCreatedBefore(const Aws::Utils::DateTime& value) { m_createdBeforeHasBeenSet = true; m_createdBefore = value; } /** *

The date and time before which the virtual clusters are created.

*/ inline void SetCreatedBefore(Aws::Utils::DateTime&& value) { m_createdBeforeHasBeenSet = true; m_createdBefore = std::move(value); } /** *

The date and time before which the virtual clusters are created.

*/ inline ListVirtualClustersRequest& WithCreatedBefore(const Aws::Utils::DateTime& value) { SetCreatedBefore(value); return *this;} /** *

The date and time before which the virtual clusters are created.

*/ inline ListVirtualClustersRequest& WithCreatedBefore(Aws::Utils::DateTime&& value) { SetCreatedBefore(std::move(value)); return *this;} /** *

The states of the requested virtual clusters.

*/ inline const Aws::Vector& GetStates() const{ return m_states; } /** *

The states of the requested virtual clusters.

*/ inline bool StatesHasBeenSet() const { return m_statesHasBeenSet; } /** *

The states of the requested virtual clusters.

*/ inline void SetStates(const Aws::Vector& value) { m_statesHasBeenSet = true; m_states = value; } /** *

The states of the requested virtual clusters.

*/ inline void SetStates(Aws::Vector&& value) { m_statesHasBeenSet = true; m_states = std::move(value); } /** *

The states of the requested virtual clusters.

*/ inline ListVirtualClustersRequest& WithStates(const Aws::Vector& value) { SetStates(value); return *this;} /** *

The states of the requested virtual clusters.

*/ inline ListVirtualClustersRequest& WithStates(Aws::Vector&& value) { SetStates(std::move(value)); return *this;} /** *

The states of the requested virtual clusters.

*/ inline ListVirtualClustersRequest& AddStates(const VirtualClusterState& value) { m_statesHasBeenSet = true; m_states.push_back(value); return *this; } /** *

The states of the requested virtual clusters.

*/ inline ListVirtualClustersRequest& AddStates(VirtualClusterState&& value) { m_statesHasBeenSet = true; m_states.push_back(std::move(value)); return *this; } /** *

The maximum number of virtual clusters that can be listed.

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

The maximum number of virtual clusters that can be listed.

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

The maximum number of virtual clusters that can be listed.

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

The maximum number of virtual clusters that can be listed.

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

The token for the next set of virtual clusters to return.

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

The token for the next set of virtual clusters to return.

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

The token for the next set of virtual clusters to return.

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

The token for the next set of virtual clusters to return.

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

The token for the next set of virtual clusters to return.

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

The token for the next set of virtual clusters to return.

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

The token for the next set of virtual clusters to return.

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

The token for the next set of virtual clusters to return.

*/ inline ListVirtualClustersRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::String m_containerProviderId; bool m_containerProviderIdHasBeenSet = false; ContainerProviderType m_containerProviderType; bool m_containerProviderTypeHasBeenSet = false; Aws::Utils::DateTime m_createdAfter; bool m_createdAfterHasBeenSet = false; Aws::Utils::DateTime m_createdBefore; bool m_createdBeforeHasBeenSet = false; Aws::Vector m_states; bool m_statesHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace EMRContainers } // namespace Aws