/** * 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 #include #include namespace Aws { namespace ResourceExplorer2 { namespace Model { /** */ class CreateViewRequest : public ResourceExplorer2Request { public: AWS_RESOURCEEXPLORER2_API CreateViewRequest(); // 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 "CreateView"; } AWS_RESOURCEEXPLORER2_API Aws::String SerializePayload() const override; /** *

This value helps ensure idempotency. Resource Explorer uses this value to * prevent the accidental creation of duplicate versions. We recommend that you * generate a UUID-type * value to ensure the uniqueness of your views.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

This value helps ensure idempotency. Resource Explorer uses this value to * prevent the accidental creation of duplicate versions. We recommend that you * generate a UUID-type * value to ensure the uniqueness of your views.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

This value helps ensure idempotency. Resource Explorer uses this value to * prevent the accidental creation of duplicate versions. We recommend that you * generate a UUID-type * value to ensure the uniqueness of your views.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

This value helps ensure idempotency. Resource Explorer uses this value to * prevent the accidental creation of duplicate versions. We recommend that you * generate a UUID-type * value to ensure the uniqueness of your views.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

This value helps ensure idempotency. Resource Explorer uses this value to * prevent the accidental creation of duplicate versions. We recommend that you * generate a UUID-type * value to ensure the uniqueness of your views.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

This value helps ensure idempotency. Resource Explorer uses this value to * prevent the accidental creation of duplicate versions. We recommend that you * generate a UUID-type * value to ensure the uniqueness of your views.

*/ inline CreateViewRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

This value helps ensure idempotency. Resource Explorer uses this value to * prevent the accidental creation of duplicate versions. We recommend that you * generate a UUID-type * value to ensure the uniqueness of your views.

*/ inline CreateViewRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

This value helps ensure idempotency. Resource Explorer uses this value to * prevent the accidental creation of duplicate versions. We recommend that you * generate a UUID-type * value to ensure the uniqueness of your views.

*/ inline CreateViewRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

An array of strings that specify which resources are included in the results * of queries made using this view. When you use this view in a Search * operation, the filter string is combined with the search's * QueryString parameter using a logical AND * operator.

For information about the supported syntax, see Search * query reference for Resource Explorer in the Amazon Web Services Resource * Explorer User Guide.

This query string in the context of * this operation supports only filter * prefixes with optional operators. * It doesn't support free-form text. For example, the string region:us* * service:ec2 -tag:stage=prod includes all Amazon EC2 resources in any * Amazon Web Services Region that begins with the letters us and is * not tagged with a key Stage that has the value * prod.

*/ inline const SearchFilter& GetFilters() const{ return m_filters; } /** *

An array of strings that specify which resources are included in the results * of queries made using this view. When you use this view in a Search * operation, the filter string is combined with the search's * QueryString parameter using a logical AND * operator.

For information about the supported syntax, see Search * query reference for Resource Explorer in the Amazon Web Services Resource * Explorer User Guide.

This query string in the context of * this operation supports only filter * prefixes with optional operators. * It doesn't support free-form text. For example, the string region:us* * service:ec2 -tag:stage=prod includes all Amazon EC2 resources in any * Amazon Web Services Region that begins with the letters us and is * not tagged with a key Stage that has the value * prod.

*/ inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; } /** *

An array of strings that specify which resources are included in the results * of queries made using this view. When you use this view in a Search * operation, the filter string is combined with the search's * QueryString parameter using a logical AND * operator.

For information about the supported syntax, see Search * query reference for Resource Explorer in the Amazon Web Services Resource * Explorer User Guide.

This query string in the context of * this operation supports only filter * prefixes with optional operators. * It doesn't support free-form text. For example, the string region:us* * service:ec2 -tag:stage=prod includes all Amazon EC2 resources in any * Amazon Web Services Region that begins with the letters us and is * not tagged with a key Stage that has the value * prod.

*/ inline void SetFilters(const SearchFilter& value) { m_filtersHasBeenSet = true; m_filters = value; } /** *

An array of strings that specify which resources are included in the results * of queries made using this view. When you use this view in a Search * operation, the filter string is combined with the search's * QueryString parameter using a logical AND * operator.

For information about the supported syntax, see Search * query reference for Resource Explorer in the Amazon Web Services Resource * Explorer User Guide.

This query string in the context of * this operation supports only filter * prefixes with optional operators. * It doesn't support free-form text. For example, the string region:us* * service:ec2 -tag:stage=prod includes all Amazon EC2 resources in any * Amazon Web Services Region that begins with the letters us and is * not tagged with a key Stage that has the value * prod.

*/ inline void SetFilters(SearchFilter&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); } /** *

An array of strings that specify which resources are included in the results * of queries made using this view. When you use this view in a Search * operation, the filter string is combined with the search's * QueryString parameter using a logical AND * operator.

For information about the supported syntax, see Search * query reference for Resource Explorer in the Amazon Web Services Resource * Explorer User Guide.

This query string in the context of * this operation supports only filter * prefixes with optional operators. * It doesn't support free-form text. For example, the string region:us* * service:ec2 -tag:stage=prod includes all Amazon EC2 resources in any * Amazon Web Services Region that begins with the letters us and is * not tagged with a key Stage that has the value * prod.

*/ inline CreateViewRequest& WithFilters(const SearchFilter& value) { SetFilters(value); return *this;} /** *

An array of strings that specify which resources are included in the results * of queries made using this view. When you use this view in a Search * operation, the filter string is combined with the search's * QueryString parameter using a logical AND * operator.

For information about the supported syntax, see Search * query reference for Resource Explorer in the Amazon Web Services Resource * Explorer User Guide.

This query string in the context of * this operation supports only filter * prefixes with optional operators. * It doesn't support free-form text. For example, the string region:us* * service:ec2 -tag:stage=prod includes all Amazon EC2 resources in any * Amazon Web Services Region that begins with the letters us and is * not tagged with a key Stage that has the value * prod.

*/ inline CreateViewRequest& WithFilters(SearchFilter&& value) { SetFilters(std::move(value)); return *this;} /** *

Specifies optional fields that you want included in search results from this * view. It is a list of objects that each describe a field to include.

The * default is an empty list, with no optional fields included in the results.

*/ inline const Aws::Vector& GetIncludedProperties() const{ return m_includedProperties; } /** *

Specifies optional fields that you want included in search results from this * view. It is a list of objects that each describe a field to include.

The * default is an empty list, with no optional fields included in the results.

*/ inline bool IncludedPropertiesHasBeenSet() const { return m_includedPropertiesHasBeenSet; } /** *

Specifies optional fields that you want included in search results from this * view. It is a list of objects that each describe a field to include.

The * default is an empty list, with no optional fields included in the results.

*/ inline void SetIncludedProperties(const Aws::Vector& value) { m_includedPropertiesHasBeenSet = true; m_includedProperties = value; } /** *

Specifies optional fields that you want included in search results from this * view. It is a list of objects that each describe a field to include.

The * default is an empty list, with no optional fields included in the results.

*/ inline void SetIncludedProperties(Aws::Vector&& value) { m_includedPropertiesHasBeenSet = true; m_includedProperties = std::move(value); } /** *

Specifies optional fields that you want included in search results from this * view. It is a list of objects that each describe a field to include.

The * default is an empty list, with no optional fields included in the results.

*/ inline CreateViewRequest& WithIncludedProperties(const Aws::Vector& value) { SetIncludedProperties(value); return *this;} /** *

Specifies optional fields that you want included in search results from this * view. It is a list of objects that each describe a field to include.

The * default is an empty list, with no optional fields included in the results.

*/ inline CreateViewRequest& WithIncludedProperties(Aws::Vector&& value) { SetIncludedProperties(std::move(value)); return *this;} /** *

Specifies optional fields that you want included in search results from this * view. It is a list of objects that each describe a field to include.

The * default is an empty list, with no optional fields included in the results.

*/ inline CreateViewRequest& AddIncludedProperties(const IncludedProperty& value) { m_includedPropertiesHasBeenSet = true; m_includedProperties.push_back(value); return *this; } /** *

Specifies optional fields that you want included in search results from this * view. It is a list of objects that each describe a field to include.

The * default is an empty list, with no optional fields included in the results.

*/ inline CreateViewRequest& AddIncludedProperties(IncludedProperty&& value) { m_includedPropertiesHasBeenSet = true; m_includedProperties.push_back(std::move(value)); return *this; } /** *

Tag key and value pairs that are attached to the view.

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

Tag key and value pairs that are attached to the view.

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

Tag key and value pairs that are attached to the view.

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

Tag key and value pairs that are attached to the view.

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

Tag key and value pairs that are attached to the view.

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

Tag key and value pairs that are attached to the view.

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

Tag key and value pairs that are attached to the view.

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

Tag key and value pairs that are attached to the view.

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

Tag key and value pairs that are attached to the view.

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

Tag key and value pairs that are attached to the view.

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

Tag key and value pairs that are attached to the view.

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

Tag key and value pairs that are attached to the view.

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

Tag key and value pairs that are attached to the view.

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

The name of the new view. This name appears in the list of views in Resource * Explorer.

The name must be no more than 64 characters long, and can * include letters, digits, and the dash (-) character. The name must be unique * within its Amazon Web Services Region.

*/ inline const Aws::String& GetViewName() const{ return m_viewName; } /** *

The name of the new view. This name appears in the list of views in Resource * Explorer.

The name must be no more than 64 characters long, and can * include letters, digits, and the dash (-) character. The name must be unique * within its Amazon Web Services Region.

*/ inline bool ViewNameHasBeenSet() const { return m_viewNameHasBeenSet; } /** *

The name of the new view. This name appears in the list of views in Resource * Explorer.

The name must be no more than 64 characters long, and can * include letters, digits, and the dash (-) character. The name must be unique * within its Amazon Web Services Region.

*/ inline void SetViewName(const Aws::String& value) { m_viewNameHasBeenSet = true; m_viewName = value; } /** *

The name of the new view. This name appears in the list of views in Resource * Explorer.

The name must be no more than 64 characters long, and can * include letters, digits, and the dash (-) character. The name must be unique * within its Amazon Web Services Region.

*/ inline void SetViewName(Aws::String&& value) { m_viewNameHasBeenSet = true; m_viewName = std::move(value); } /** *

The name of the new view. This name appears in the list of views in Resource * Explorer.

The name must be no more than 64 characters long, and can * include letters, digits, and the dash (-) character. The name must be unique * within its Amazon Web Services Region.

*/ inline void SetViewName(const char* value) { m_viewNameHasBeenSet = true; m_viewName.assign(value); } /** *

The name of the new view. This name appears in the list of views in Resource * Explorer.

The name must be no more than 64 characters long, and can * include letters, digits, and the dash (-) character. The name must be unique * within its Amazon Web Services Region.

*/ inline CreateViewRequest& WithViewName(const Aws::String& value) { SetViewName(value); return *this;} /** *

The name of the new view. This name appears in the list of views in Resource * Explorer.

The name must be no more than 64 characters long, and can * include letters, digits, and the dash (-) character. The name must be unique * within its Amazon Web Services Region.

*/ inline CreateViewRequest& WithViewName(Aws::String&& value) { SetViewName(std::move(value)); return *this;} /** *

The name of the new view. This name appears in the list of views in Resource * Explorer.

The name must be no more than 64 characters long, and can * include letters, digits, and the dash (-) character. The name must be unique * within its Amazon Web Services Region.

*/ inline CreateViewRequest& WithViewName(const char* value) { SetViewName(value); return *this;} private: Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; SearchFilter m_filters; bool m_filtersHasBeenSet = false; Aws::Vector m_includedProperties; bool m_includedPropertiesHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; Aws::String m_viewName; bool m_viewNameHasBeenSet = false; }; } // namespace Model } // namespace ResourceExplorer2 } // namespace Aws