public class UpdateServiceCmdImpl extends AbstrDockerCmd<UpdateServiceCmd,java.lang.Void> implements UpdateServiceCmd
UpdateServiceCmd.Exec
execution
Constructor and Description |
---|
UpdateServiceCmdImpl(UpdateServiceCmd.Exec exec,
java.lang.String serviceId,
ServiceSpec serviceSpec) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.Void |
exec() |
java.lang.String |
getServiceId() |
ServiceSpec |
getServiceSpec() |
java.lang.Long |
getVersion() |
int |
hashCode() |
java.lang.String |
toString() |
UpdateServiceCmd |
withServiceId(java.lang.String serviceId) |
UpdateServiceCmd |
withServiceSpec(ServiceSpec serviceSpec) |
UpdateServiceCmdImpl |
withVersion(java.lang.Long version) |
close, registryAuth
public UpdateServiceCmdImpl(UpdateServiceCmd.Exec exec, java.lang.String serviceId, ServiceSpec serviceSpec)
@CheckForNull public java.lang.String getServiceId()
getServiceId
in interface UpdateServiceCmd
serviceId
public UpdateServiceCmd withServiceId(@Nonnull java.lang.String serviceId)
withServiceId
in interface UpdateServiceCmd
serviceId
@CheckForNull public ServiceSpec getServiceSpec()
getServiceSpec
in interface UpdateServiceCmd
serviceSpec
public UpdateServiceCmd withServiceSpec(ServiceSpec serviceSpec)
withServiceSpec
in interface UpdateServiceCmd
serviceSpec
@CheckForNull public java.lang.Long getVersion()
getVersion
in interface UpdateServiceCmd
version
public UpdateServiceCmdImpl withVersion(java.lang.Long version)
withVersion
in interface UpdateServiceCmd
version
public java.lang.Void exec() throws NotFoundException
exec
in interface SyncDockerCmd<java.lang.Void>
exec
in class AbstrDockerCmd<UpdateServiceCmd,java.lang.Void>
NotFoundException
- No such servicepublic java.lang.String toString()
toString
in class AbstrDockerCmd<UpdateServiceCmd,java.lang.Void>
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2018. All Rights Reserved.