-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy pathResource.java
More file actions
115 lines (99 loc) · 2.17 KB
/
Copy pathResource.java
File metadata and controls
115 lines (99 loc) · 2.17 KB
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
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/
package com.microsoft.azure;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.io.Serializable;
import java.util.Map;
/**
* The Resource model.
*/
public class Resource implements Serializable {
private static final long serialVersionUID = -123489719074576693L;
/**
* Resource Id.
*/
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
private String id;
/**
* Resource name.
*/
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
private String name;
/**
* Resource type.
*/
@JsonProperty(access = JsonProperty.Access.WRITE_ONLY)
private String type;
/**
* Resource location.
*/
@JsonProperty(required = true)
private String location;
/**
* Resource tags.
*/
private Map<String, String> tags;
/**
* Get the id value.
*
* @return the id value
*/
public String id() {
return this.id;
}
/**
* Get the name value.
*
* @return the name value
*/
public String name() {
return this.name;
}
/**
* Get the type value.
*
* @return the type value
*/
public String type() {
return this.type;
}
/**
* Get the location value.
*
* @return the location value
*/
public String location() {
return this.location;
}
/**
* Set the location value.
*
* @param location the location value to set
* @return the resource itself
*/
public Resource withLocation(String location) {
this.location = location;
return this;
}
/**
* Get the tags value.
*
* @return the tags value
*/
public Map<String, String> getTags() {
return this.tags;
}
/**
* Set the tags value.
*
* @param tags the tags value to set
* @return the resource itself
*/
public Resource withTags(Map<String, String> tags) {
this.tags = tags;
return this;
}
}