/** * 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 NimbleStudio { namespace Model { /** */ class ListStudioComponentsRequest : public NimbleStudioRequest { public: AWS_NIMBLESTUDIO_API ListStudioComponentsRequest(); // 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 "ListStudioComponents"; } AWS_NIMBLESTUDIO_API Aws::String SerializePayload() const override; AWS_NIMBLESTUDIO_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

The max number of results to return in the response.

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

The max number of results to return in the response.

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

The max number of results to return in the response.

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

The max number of results to return in the response.

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

The token for the next set of results, or null if there are no more * results.

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

The token for the next set of results, or null if there are no more * results.

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

The token for the next set of results, or null if there are no more * results.

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

The token for the next set of results, or null if there are no more * results.

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

The token for the next set of results, or null if there are no more * results.

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

The token for the next set of results, or null if there are no more * results.

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

The token for the next set of results, or null if there are no more * results.

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

The token for the next set of results, or null if there are no more * results.

*/ inline ListStudioComponentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

Filters the request to studio components that are in one of the given states. *

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

Filters the request to studio components that are in one of the given states. *

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

Filters the request to studio components that are in one of the given states. *

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

Filters the request to studio components that are in one of the given states. *

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

Filters the request to studio components that are in one of the given states. *

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

Filters the request to studio components that are in one of the given states. *

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

Filters the request to studio components that are in one of the given states. *

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

Filters the request to studio components that are in one of the given states. *

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

The studio ID.

*/ inline const Aws::String& GetStudioId() const{ return m_studioId; } /** *

The studio ID.

*/ inline bool StudioIdHasBeenSet() const { return m_studioIdHasBeenSet; } /** *

The studio ID.

*/ inline void SetStudioId(const Aws::String& value) { m_studioIdHasBeenSet = true; m_studioId = value; } /** *

The studio ID.

*/ inline void SetStudioId(Aws::String&& value) { m_studioIdHasBeenSet = true; m_studioId = std::move(value); } /** *

The studio ID.

*/ inline void SetStudioId(const char* value) { m_studioIdHasBeenSet = true; m_studioId.assign(value); } /** *

The studio ID.

*/ inline ListStudioComponentsRequest& WithStudioId(const Aws::String& value) { SetStudioId(value); return *this;} /** *

The studio ID.

*/ inline ListStudioComponentsRequest& WithStudioId(Aws::String&& value) { SetStudioId(std::move(value)); return *this;} /** *

The studio ID.

*/ inline ListStudioComponentsRequest& WithStudioId(const char* value) { SetStudioId(value); return *this;} /** *

Filters the request to studio components that are of one of the given * types.

*/ inline const Aws::Vector& GetTypes() const{ return m_types; } /** *

Filters the request to studio components that are of one of the given * types.

*/ inline bool TypesHasBeenSet() const { return m_typesHasBeenSet; } /** *

Filters the request to studio components that are of one of the given * types.

*/ inline void SetTypes(const Aws::Vector& value) { m_typesHasBeenSet = true; m_types = value; } /** *

Filters the request to studio components that are of one of the given * types.

*/ inline void SetTypes(Aws::Vector&& value) { m_typesHasBeenSet = true; m_types = std::move(value); } /** *

Filters the request to studio components that are of one of the given * types.

*/ inline ListStudioComponentsRequest& WithTypes(const Aws::Vector& value) { SetTypes(value); return *this;} /** *

Filters the request to studio components that are of one of the given * types.

*/ inline ListStudioComponentsRequest& WithTypes(Aws::Vector&& value) { SetTypes(std::move(value)); return *this;} /** *

Filters the request to studio components that are of one of the given * types.

*/ inline ListStudioComponentsRequest& AddTypes(const StudioComponentType& value) { m_typesHasBeenSet = true; m_types.push_back(value); return *this; } /** *

Filters the request to studio components that are of one of the given * types.

*/ inline ListStudioComponentsRequest& AddTypes(StudioComponentType&& value) { m_typesHasBeenSet = true; m_types.push_back(std::move(value)); return *this; } private: int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; Aws::Vector m_states; bool m_statesHasBeenSet = false; Aws::String m_studioId; bool m_studioIdHasBeenSet = false; Aws::Vector m_types; bool m_typesHasBeenSet = false; }; } // namespace Model } // namespace NimbleStudio } // namespace Aws