Skip to content

Commit 8ef497e

Browse files
committed
Issue #326
1 parent 632cfc3 commit 8ef497e

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

core/src/main/java/org/openstack4j/model/storage/block/builder/VolumeBuilder.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,13 @@ public interface VolumeBuilder extends Builder<VolumeBuilder, Volume> {
8383
* @return VolumeBuilder
8484
*/
8585
VolumeBuilder metadata(Map<String, String> metadata);
86+
87+
/**
88+
* The associated availability zone. <b>Optional</b>
89+
*
90+
* @param zone The associated availability zone.
91+
* @return VolumeBuilder
92+
*/
93+
VolumeBuilder zone(String zone);
94+
8695
}

core/src/main/java/org/openstack4j/openstack/storage/block/domain/CinderVolume.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,5 +298,11 @@ public VolumeBuilder from(Volume in) {
298298
m = (CinderVolume) in;
299299
return this;
300300
}
301+
302+
@Override
303+
public VolumeBuilder zone(String zone) {
304+
m.zone = zone;
305+
return this;
306+
}
301307
}
302308
}

0 commit comments

Comments
 (0)