public class UpdateModelRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Request to update an existing model in an existing RestApi resource.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
modelName
The name of the model to update.
|
private java.util.List<PatchOperation> |
patchOperations
A list of operations describing the updates to apply to the specified
resource.
|
private java.lang.String |
restApiId
The RestApi identifier under which the model exists.
|
NOOP
Constructor and Description |
---|
UpdateModelRequest() |
Modifier and Type | Method and Description |
---|---|
UpdateModelRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getModelName()
The name of the model to update.
|
java.util.List<PatchOperation> |
getPatchOperations()
A list of operations describing the updates to apply to the specified
resource.
|
java.lang.String |
getRestApiId()
The RestApi identifier under which the model exists.
|
int |
hashCode() |
void |
setModelName(java.lang.String modelName)
The name of the model to update.
|
void |
setPatchOperations(java.util.Collection<PatchOperation> patchOperations)
A list of operations describing the updates to apply to the specified
resource.
|
void |
setRestApiId(java.lang.String restApiId)
The RestApi identifier under which the model exists.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UpdateModelRequest |
withModelName(java.lang.String modelName)
The name of the model to update.
|
UpdateModelRequest |
withPatchOperations(java.util.Collection<PatchOperation> patchOperations)
A list of operations describing the updates to apply to the specified
resource.
|
UpdateModelRequest |
withPatchOperations(PatchOperation... patchOperations)
A list of operations describing the updates to apply to the specified
resource.
|
UpdateModelRequest |
withRestApiId(java.lang.String restApiId)
The RestApi identifier under which the model exists.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String restApiId
The RestApi identifier under which the model exists.
private java.lang.String modelName
The name of the model to update.
private java.util.List<PatchOperation> patchOperations
A list of operations describing the updates to apply to the specified resource. The patches are applied in the order specified in the list.
public void setRestApiId(java.lang.String restApiId)
The RestApi identifier under which the model exists.
restApiId
- The RestApi identifier under which the model exists.public java.lang.String getRestApiId()
The RestApi identifier under which the model exists.
public UpdateModelRequest withRestApiId(java.lang.String restApiId)
The RestApi identifier under which the model exists.
restApiId
- The RestApi identifier under which the model exists.public void setModelName(java.lang.String modelName)
The name of the model to update.
modelName
- The name of the model to update.public java.lang.String getModelName()
The name of the model to update.
public UpdateModelRequest withModelName(java.lang.String modelName)
The name of the model to update.
modelName
- The name of the model to update.public java.util.List<PatchOperation> getPatchOperations()
A list of operations describing the updates to apply to the specified resource. The patches are applied in the order specified in the list.
public void setPatchOperations(java.util.Collection<PatchOperation> patchOperations)
A list of operations describing the updates to apply to the specified resource. The patches are applied in the order specified in the list.
patchOperations
- A list of operations describing the updates to apply to the
specified resource. The patches are applied in the order specified
in the list.public UpdateModelRequest withPatchOperations(PatchOperation... patchOperations)
A list of operations describing the updates to apply to the specified resource. The patches are applied in the order specified in the list.
NOTE: This method appends the values to the existing list (if
any). Use setPatchOperations(java.util.Collection)
or
withPatchOperations(java.util.Collection)
if you want to
override the existing values.
patchOperations
- A list of operations describing the updates to apply to the
specified resource. The patches are applied in the order specified
in the list.public UpdateModelRequest withPatchOperations(java.util.Collection<PatchOperation> patchOperations)
A list of operations describing the updates to apply to the specified resource. The patches are applied in the order specified in the list.
patchOperations
- A list of operations describing the updates to apply to the
specified resource. The patches are applied in the order specified
in the list.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public UpdateModelRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()