Skip to content

Commit 24d5c1e

Browse files
committed
Fix all sets to be withs
1 parent 9e11dd2 commit 24d5c1e

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

azure-client-runtime/src/main/java/com/microsoft/azure/Resource.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,11 @@ public String location() {
8484
* Set the location value.
8585
*
8686
* @param location the location value to set
87+
* @return the resource itself
8788
*/
88-
public void withLocation(String location) {
89+
public Resource withLocation(String location) {
8990
this.location = location;
91+
return this;
9092
}
9193

9294
/**
@@ -102,8 +104,10 @@ public Map<String, String> getTags() {
102104
* Set the tags value.
103105
*
104106
* @param tags the tags value to set
107+
* @return the resource itself
105108
*/
106-
public void withTags(Map<String, String> tags) {
109+
public Resource withTags(Map<String, String> tags) {
107110
this.tags = tags;
111+
return this;
108112
}
109113
}

azure-client-runtime/src/main/java/com/microsoft/azure/SubResource.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ public String id() {
2929
* Set the id value.
3030
*
3131
* @param id the id value to set
32+
* @return the sub resource itself
3233
*/
33-
public void setId(String id) {
34+
public SubResource withId(String id) {
3435
this.id = id;
36+
return this;
3537
}
3638
}

0 commit comments

Comments
 (0)