-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
Thing.java
86 lines (75 loc) · 2.09 KB
/
Thing.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
/**
* 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.customsearch.models;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonSubTypes;
/**
* The Thing model.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "_type", defaultImpl = Thing.class)
@JsonTypeName("Thing")
@JsonSubTypes({
@JsonSubTypes.Type(name = "CreativeWork", value = CreativeWork.class)
})
public class Thing extends Response {
/**
* The name of the thing represented by this object.
*/
@JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
private String name;
/**
* The URL to get more information about the thing represented by this
* object.
*/
@JsonProperty(value = "url", access = JsonProperty.Access.WRITE_ONLY)
private String url;
/**
* A short description of the item.
*/
@JsonProperty(value = "description", access = JsonProperty.Access.WRITE_ONLY)
private String description;
/**
* An ID that uniquely identifies this item.
*/
@JsonProperty(value = "bingId", access = JsonProperty.Access.WRITE_ONLY)
private String bingId;
/**
* Get the name value.
*
* @return the name value
*/
public String name() {
return this.name;
}
/**
* Get the url value.
*
* @return the url value
*/
public String url() {
return this.url;
}
/**
* Get the description value.
*
* @return the description value
*/
public String description() {
return this.description;
}
/**
* Get the bingId value.
*
* @return the bingId value
*/
public String bingId() {
return this.bingId;
}
}