/** * 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 EMRServerless { namespace Model { /** */ class ListJobRunsRequest : public EMRServerlessRequest { public: AWS_EMRSERVERLESS_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_EMRSERVERLESS_API Aws::String SerializePayload() const override; AWS_EMRSERVERLESS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

The ID of the application for which to list the job run.

*/ inline const Aws::String& GetApplicationId() const{ return m_applicationId; } /** *

The ID of the application for which to list the job run.

*/ inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; } /** *

The ID of the application for which to list the job run.

*/ inline void SetApplicationId(const Aws::String& value) { m_applicationIdHasBeenSet = true; m_applicationId = value; } /** *

The ID of the application for which to list the job run.

*/ inline void SetApplicationId(Aws::String&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::move(value); } /** *

The ID of the application for which to list the job run.

*/ inline void SetApplicationId(const char* value) { m_applicationIdHasBeenSet = true; m_applicationId.assign(value); } /** *

The ID of the application for which to list the job run.

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

The ID of the application for which to list the job run.

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

The ID of the application for which to list the job run.

*/ inline ListJobRunsRequest& WithApplicationId(const char* value) { SetApplicationId(value); return *this;} /** *

The token for the next set of job run results.

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

The token for the next set of job run results.

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

The token for the next set of job run results.

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

The token for the next set of job run results.

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

The token for the next set of job run results.

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

The token for the next set of job run results.

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

The token for the next set of job run results.

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

The token for the next set of job run results.

*/ inline ListJobRunsRequest& WithNextToken(const char* value) { SetNextToken(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 lower bound of the option to filter by creation date and time.

*/ inline const Aws::Utils::DateTime& GetCreatedAtAfter() const{ return m_createdAtAfter; } /** *

The lower bound of the option to filter by creation date and time.

*/ inline bool CreatedAtAfterHasBeenSet() const { return m_createdAtAfterHasBeenSet; } /** *

The lower bound of the option to filter by creation date and time.

*/ inline void SetCreatedAtAfter(const Aws::Utils::DateTime& value) { m_createdAtAfterHasBeenSet = true; m_createdAtAfter = value; } /** *

The lower bound of the option to filter by creation date and time.

*/ inline void SetCreatedAtAfter(Aws::Utils::DateTime&& value) { m_createdAtAfterHasBeenSet = true; m_createdAtAfter = std::move(value); } /** *

The lower bound of the option to filter by creation date and time.

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

The lower bound of the option to filter by creation date and time.

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

The upper bound of the option to filter by creation date and time.

*/ inline const Aws::Utils::DateTime& GetCreatedAtBefore() const{ return m_createdAtBefore; } /** *

The upper bound of the option to filter by creation date and time.

*/ inline bool CreatedAtBeforeHasBeenSet() const { return m_createdAtBeforeHasBeenSet; } /** *

The upper bound of the option to filter by creation date and time.

*/ inline void SetCreatedAtBefore(const Aws::Utils::DateTime& value) { m_createdAtBeforeHasBeenSet = true; m_createdAtBefore = value; } /** *

The upper bound of the option to filter by creation date and time.

*/ inline void SetCreatedAtBefore(Aws::Utils::DateTime&& value) { m_createdAtBeforeHasBeenSet = true; m_createdAtBefore = std::move(value); } /** *

The upper bound of the option to filter by creation date and time.

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

The upper bound of the option to filter by creation date and time.

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

An optional filter for job run states. Note that if this filter contains * multiple states, the resulting list will be grouped by the state.

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

An optional filter for job run states. Note that if this filter contains * multiple states, the resulting list will be grouped by the state.

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

An optional filter for job run states. Note that if this filter contains * multiple states, the resulting list will be grouped by the state.

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

An optional filter for job run states. Note that if this filter contains * multiple states, the resulting list will be grouped by the state.

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

An optional filter for job run states. Note that if this filter contains * multiple states, the resulting list will be grouped by the state.

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

An optional filter for job run states. Note that if this filter contains * multiple states, the resulting list will be grouped by the state.

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

An optional filter for job run states. Note that if this filter contains * multiple states, the resulting list will be grouped by the state.

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

An optional filter for job run states. Note that if this filter contains * multiple states, the resulting list will be grouped by the state.

*/ inline ListJobRunsRequest& AddStates(JobRunState&& value) { m_statesHasBeenSet = true; m_states.push_back(std::move(value)); return *this; } private: Aws::String m_applicationId; bool m_applicationIdHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::Utils::DateTime m_createdAtAfter; bool m_createdAtAfterHasBeenSet = false; Aws::Utils::DateTime m_createdAtBefore; bool m_createdAtBeforeHasBeenSet = false; Aws::Vector m_states; bool m_statesHasBeenSet = false; }; } // namespace Model } // namespace EMRServerless } // namespace Aws