/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Http { class URI; } //namespace Http namespace Schemas { namespace Model { /** */ class SearchSchemasRequest : public SchemasRequest { public: AWS_SCHEMAS_API SearchSchemasRequest(); // 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 "SearchSchemas"; } AWS_SCHEMAS_API Aws::String SerializePayload() const override; AWS_SCHEMAS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

Specifying this limits the results to only schemas that include the provided * keywords.

*/ inline const Aws::String& GetKeywords() const{ return m_keywords; } /** *

Specifying this limits the results to only schemas that include the provided * keywords.

*/ inline bool KeywordsHasBeenSet() const { return m_keywordsHasBeenSet; } /** *

Specifying this limits the results to only schemas that include the provided * keywords.

*/ inline void SetKeywords(const Aws::String& value) { m_keywordsHasBeenSet = true; m_keywords = value; } /** *

Specifying this limits the results to only schemas that include the provided * keywords.

*/ inline void SetKeywords(Aws::String&& value) { m_keywordsHasBeenSet = true; m_keywords = std::move(value); } /** *

Specifying this limits the results to only schemas that include the provided * keywords.

*/ inline void SetKeywords(const char* value) { m_keywordsHasBeenSet = true; m_keywords.assign(value); } /** *

Specifying this limits the results to only schemas that include the provided * keywords.

*/ inline SearchSchemasRequest& WithKeywords(const Aws::String& value) { SetKeywords(value); return *this;} /** *

Specifying this limits the results to only schemas that include the provided * keywords.

*/ inline SearchSchemasRequest& WithKeywords(Aws::String&& value) { SetKeywords(std::move(value)); return *this;} /** *

Specifying this limits the results to only schemas that include the provided * keywords.

*/ inline SearchSchemasRequest& WithKeywords(const char* value) { SetKeywords(value); return *this;} inline int GetLimit() const{ return m_limit; } inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; } inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; } inline SearchSchemasRequest& WithLimit(int value) { SetLimit(value); return *this;} /** *

The token that specifies the next page of results to return. To request the * first page, leave NextToken empty. The token will expire in 24 hours, and cannot * be shared with other accounts.

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

The token that specifies the next page of results to return. To request the * first page, leave NextToken empty. The token will expire in 24 hours, and cannot * be shared with other accounts.

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

The token that specifies the next page of results to return. To request the * first page, leave NextToken empty. The token will expire in 24 hours, and cannot * be shared with other accounts.

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

The token that specifies the next page of results to return. To request the * first page, leave NextToken empty. The token will expire in 24 hours, and cannot * be shared with other accounts.

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

The token that specifies the next page of results to return. To request the * first page, leave NextToken empty. The token will expire in 24 hours, and cannot * be shared with other accounts.

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

The token that specifies the next page of results to return. To request the * first page, leave NextToken empty. The token will expire in 24 hours, and cannot * be shared with other accounts.

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

The token that specifies the next page of results to return. To request the * first page, leave NextToken empty. The token will expire in 24 hours, and cannot * be shared with other accounts.

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

The token that specifies the next page of results to return. To request the * first page, leave NextToken empty. The token will expire in 24 hours, and cannot * be shared with other accounts.

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

The name of the registry.

*/ inline const Aws::String& GetRegistryName() const{ return m_registryName; } /** *

The name of the registry.

*/ inline bool RegistryNameHasBeenSet() const { return m_registryNameHasBeenSet; } /** *

The name of the registry.

*/ inline void SetRegistryName(const Aws::String& value) { m_registryNameHasBeenSet = true; m_registryName = value; } /** *

The name of the registry.

*/ inline void SetRegistryName(Aws::String&& value) { m_registryNameHasBeenSet = true; m_registryName = std::move(value); } /** *

The name of the registry.

*/ inline void SetRegistryName(const char* value) { m_registryNameHasBeenSet = true; m_registryName.assign(value); } /** *

The name of the registry.

*/ inline SearchSchemasRequest& WithRegistryName(const Aws::String& value) { SetRegistryName(value); return *this;} /** *

The name of the registry.

*/ inline SearchSchemasRequest& WithRegistryName(Aws::String&& value) { SetRegistryName(std::move(value)); return *this;} /** *

The name of the registry.

*/ inline SearchSchemasRequest& WithRegistryName(const char* value) { SetRegistryName(value); return *this;} private: Aws::String m_keywords; bool m_keywordsHasBeenSet = false; int m_limit; bool m_limitHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; Aws::String m_registryName; bool m_registryNameHasBeenSet = false; }; } // namespace Model } // namespace Schemas } // namespace Aws