-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
Category.java
95 lines (83 loc) · 1.89 KB
/
Category.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
/**
* 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.vision.computervision.models;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* An object describing identified category.
*/
public class Category {
/**
* Name of the category.
*/
@JsonProperty(value = "name")
private String name;
/**
* Scoring of the category.
*/
@JsonProperty(value = "score")
private double score;
/**
* The detail property.
*/
@JsonProperty(value = "detail")
private CategoryDetail detail;
/**
* Get the name value.
*
* @return the name value
*/
public String name() {
return this.name;
}
/**
* Set the name value.
*
* @param name the name value to set
* @return the Category object itself.
*/
public Category withName(String name) {
this.name = name;
return this;
}
/**
* Get the score value.
*
* @return the score value
*/
public double score() {
return this.score;
}
/**
* Set the score value.
*
* @param score the score value to set
* @return the Category object itself.
*/
public Category withScore(double score) {
this.score = score;
return this;
}
/**
* Get the detail value.
*
* @return the detail value
*/
public CategoryDetail detail() {
return this.detail;
}
/**
* Set the detail value.
*
* @param detail the detail value to set
* @return the Category object itself.
*/
public Category withDetail(CategoryDetail detail) {
this.detail = detail;
return this;
}
}