/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Glue { namespace Model { /** */ class ListSessionsRequest : public GlueRequest { public: AWS_GLUE_API ListSessionsRequest(); // 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 "ListSessions"; } AWS_GLUE_API Aws::String SerializePayload() const override; AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

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

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

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

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

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

*/ 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 result. *

*/ 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 result. *

*/ 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 result. *

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

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

*/ inline ListSessionsRequest& 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 result. *

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

The maximum number of results.

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

The maximum number of results.

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

The maximum number of results.

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

The maximum number of results.

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

Tags belonging to the session.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

Tags belonging to the session.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Tags belonging to the session.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

Tags belonging to the session.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

Tags belonging to the session.

*/ inline ListSessionsRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

Tags belonging to the session.

*/ inline ListSessionsRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

Tags belonging to the session.

*/ inline ListSessionsRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

Tags belonging to the session.

*/ inline ListSessionsRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

Tags belonging to the session.

*/ inline ListSessionsRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

Tags belonging to the session.

*/ inline ListSessionsRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

Tags belonging to the session.

*/ inline ListSessionsRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

Tags belonging to the session.

*/ inline ListSessionsRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

Tags belonging to the session.

*/ inline ListSessionsRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The origin of the request.

*/ inline const Aws::String& GetRequestOrigin() const{ return m_requestOrigin; } /** *

The origin of the request.

*/ inline bool RequestOriginHasBeenSet() const { return m_requestOriginHasBeenSet; } /** *

The origin of the request.

*/ inline void SetRequestOrigin(const Aws::String& value) { m_requestOriginHasBeenSet = true; m_requestOrigin = value; } /** *

The origin of the request.

*/ inline void SetRequestOrigin(Aws::String&& value) { m_requestOriginHasBeenSet = true; m_requestOrigin = std::move(value); } /** *

The origin of the request.

*/ inline void SetRequestOrigin(const char* value) { m_requestOriginHasBeenSet = true; m_requestOrigin.assign(value); } /** *

The origin of the request.

*/ inline ListSessionsRequest& WithRequestOrigin(const Aws::String& value) { SetRequestOrigin(value); return *this;} /** *

The origin of the request.

*/ inline ListSessionsRequest& WithRequestOrigin(Aws::String&& value) { SetRequestOrigin(std::move(value)); return *this;} /** *

The origin of the request.

*/ inline ListSessionsRequest& WithRequestOrigin(const char* value) { SetRequestOrigin(value); return *this;} private: Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; Aws::String m_requestOrigin; bool m_requestOriginHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws