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

The ID of the virtual cluster for which to list the job run.

*/ inline const Aws::String& GetVirtualClusterId() const{ return m_virtualClusterId; } /** *

The ID of the virtual cluster for which to list the job run.

*/ inline bool VirtualClusterIdHasBeenSet() const { return m_virtualClusterIdHasBeenSet; } /** *

The ID of the virtual cluster for which to list the job run.

*/ inline void SetVirtualClusterId(const Aws::String& value) { m_virtualClusterIdHasBeenSet = true; m_virtualClusterId = value; } /** *

The ID of the virtual cluster for which to list the job run.

*/ inline void SetVirtualClusterId(Aws::String&& value) { m_virtualClusterIdHasBeenSet = true; m_virtualClusterId = std::move(value); } /** *

The ID of the virtual cluster for which to list the job run.

*/ inline void SetVirtualClusterId(const char* value) { m_virtualClusterIdHasBeenSet = true; m_virtualClusterId.assign(value); } /** *

The ID of the virtual cluster for which to list the job run.

*/ inline ListJobRunsRequest& WithVirtualClusterId(const Aws::String& value) { SetVirtualClusterId(value); return *this;} /** *

The ID of the virtual cluster for which to list the job run.

*/ inline ListJobRunsRequest& WithVirtualClusterId(Aws::String&& value) { SetVirtualClusterId(std::move(value)); return *this;} /** *

The ID of the virtual cluster for which to list the job run.

*/ inline ListJobRunsRequest& WithVirtualClusterId(const char* value) { SetVirtualClusterId(value); return *this;} /** *

The date and time before which the job runs were submitted.

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

The date and time before which the job runs were submitted.

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

The date and time before which the job runs were submitted.

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

The date and time before which the job runs were submitted.

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

The date and time before which the job runs were submitted.

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

The date and time before which the job runs were submitted.

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

The date and time after which the job runs were submitted.

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

The date and time after which the job runs were submitted.

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

The date and time after which the job runs were submitted.

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

The date and time after which the job runs were submitted.

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

The date and time after which the job runs were submitted.

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

The date and time after which the job runs were submitted.

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

The name of the job run.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the job run.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the job run.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the job run.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the job run.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the job run.

*/ inline ListJobRunsRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the job run.

*/ inline ListJobRunsRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the job run.

*/ inline ListJobRunsRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The states of the job run.

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

The states of the job run.

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

The states of the job run.

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

The states of the job run.

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

The states of the job run.

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

The states of the job run.

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

The states of the job run.

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

The states of the job run.

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

The maximum number of job runs that can be listed.

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

The maximum number of job runs that can be listed.

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

The maximum number of job runs that can be listed.

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

The maximum number of job runs that can be listed.

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

The token for the next set of job runs to return.

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

The token for the next set of job runs to return.

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

The token for the next set of job runs to return.

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

The token for the next set of job runs to return.

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

The token for the next set of job runs to return.

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

The token for the next set of job runs to return.

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

The token for the next set of job runs to return.

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

The token for the next set of job runs to return.

*/ inline ListJobRunsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::String m_virtualClusterId; bool m_virtualClusterIdHasBeenSet = false; Aws::Utils::DateTime m_createdBefore; bool m_createdBeforeHasBeenSet = false; Aws::Utils::DateTime m_createdAfter; bool m_createdAfterHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = 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