File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
src/main/java/com/github/dockerjava Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 11package com .github .dockerjava .api .command ;
22
33import com .github .dockerjava .api .model .UpdateContainerResponse ;
4+ import com .github .dockerjava .core .RemoteApiVersion ;
45
56import javax .annotation .CheckForNull ;
7+ import javax .annotation .Nonnull ;
68
79/**
810 * @author Kanstantsin Shautsou
11+ * @since {@link RemoteApiVersion#VERSION_1_22}
912 */
1013public interface UpdateContainerCmd extends SyncDockerCmd <UpdateContainerResponse > {
1114 @ CheckForNull
@@ -16,7 +19,7 @@ public interface UpdateContainerCmd extends SyncDockerCmd<UpdateContainerRespons
1619
1720 public UpdateContainerCmd withBlkioWeight (Integer blkioWeight );
1821
19- public UpdateContainerCmd withContainerId (String containerId );
22+ public UpdateContainerCmd withContainerId (@ Nonnull String containerId );
2023
2124 @ CheckForNull
2225 public Integer getCpuPeriod ();
Original file line number Diff line number Diff line change 1111import org .apache .commons .lang .builder .ToStringBuilder ;
1212
1313import javax .annotation .CheckForNull ;
14+ import javax .annotation .Nonnull ;
1415
1516/**
1617 * @author Kanstantsin Shautsou
@@ -90,7 +91,7 @@ public String getContainerId() {
9091 /**
9192 * @see #containerId
9293 */
93- public UpdateContainerCmd withContainerId (String containerId ) {
94+ public UpdateContainerCmd withContainerId (@ Nonnull String containerId ) {
9495 this .containerId = containerId ;
9596 return this ;
9697 }
You can’t perform that action at this time.
0 commit comments