-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
SearchAction.java
67 lines (58 loc) · 1.73 KB
/
SearchAction.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.cognitiveservices.search.autosuggest.models;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
/**
* The SearchAction model.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "_type", defaultImpl = SearchAction.class)
@JsonTypeName("SearchAction")
public class SearchAction extends Action {
/**
* The displayText property.
*/
@JsonProperty(value = "displayText", access = JsonProperty.Access.WRITE_ONLY)
private String displayText;
/**
* The query property.
*/
@JsonProperty(value = "query", access = JsonProperty.Access.WRITE_ONLY)
private String query;
/**
* Possible values include: 'WebSearch', 'HistorySearch', 'DocumentSearch',
* 'TagSearch', 'LocationSearch', 'CustomSearch'.
*/
@JsonProperty(value = "searchKind", access = JsonProperty.Access.WRITE_ONLY)
private SearchKind searchKind;
/**
* Get the displayText value.
*
* @return the displayText value
*/
public String displayText() {
return this.displayText;
}
/**
* Get the query value.
*
* @return the query value
*/
public String query() {
return this.query;
}
/**
* Get the searchKind value.
*
* @return the searchKind value
*/
public SearchKind searchKind() {
return this.searchKind;
}
}