-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
Response.java
119 lines (104 loc) · 3.2 KB
/
Response.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
/**
* 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 java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonSubTypes;
/**
* Defines a response. All schemas that could be returned at the root of a
* response should inherit from this.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "_type", defaultImpl = Response.class)
@JsonTypeName("Response")
@JsonSubTypes({
@JsonSubTypes.Type(name = "Answer", value = Answer.class),
@JsonSubTypes.Type(name = "Thing", value = Thing.class),
@JsonSubTypes.Type(name = "ErrorResponse", value = ErrorResponse.class)
})
public class Response extends Identifiable {
/**
* The URL that returns this resource.
*/
@JsonProperty(value = "readLink", access = JsonProperty.Access.WRITE_ONLY)
private String readLink;
/**
* The URL To Bing's search result for this item.
*/
@JsonProperty(value = "webSearchUrl", access = JsonProperty.Access.WRITE_ONLY)
private String webSearchUrl;
/**
* The potentialAction property.
*/
@JsonProperty(value = "potentialAction", access = JsonProperty.Access.WRITE_ONLY)
private List<Action> potentialAction;
/**
* The immediateAction property.
*/
@JsonProperty(value = "immediateAction", access = JsonProperty.Access.WRITE_ONLY)
private List<Action> immediateAction;
/**
* The preferredClickthroughUrl property.
*/
@JsonProperty(value = "preferredClickthroughUrl", access = JsonProperty.Access.WRITE_ONLY)
private String preferredClickthroughUrl;
/**
* The adaptiveCard property.
*/
@JsonProperty(value = "adaptiveCard", access = JsonProperty.Access.WRITE_ONLY)
private String adaptiveCard;
/**
* Get the readLink value.
*
* @return the readLink value
*/
public String readLink() {
return this.readLink;
}
/**
* Get the webSearchUrl value.
*
* @return the webSearchUrl value
*/
public String webSearchUrl() {
return this.webSearchUrl;
}
/**
* Get the potentialAction value.
*
* @return the potentialAction value
*/
public List<Action> potentialAction() {
return this.potentialAction;
}
/**
* Get the immediateAction value.
*
* @return the immediateAction value
*/
public List<Action> immediateAction() {
return this.immediateAction;
}
/**
* Get the preferredClickthroughUrl value.
*
* @return the preferredClickthroughUrl value
*/
public String preferredClickthroughUrl() {
return this.preferredClickthroughUrl;
}
/**
* Get the adaptiveCard value.
*
* @return the adaptiveCard value
*/
public String adaptiveCard() {
return this.adaptiveCard;
}
}