DiscardRequest Class
- java.
lang. Object - com.
azure. resourcemanager. resourcemover. models. DiscardRequest
- com.
Implements
public final class DiscardRequest
implements JsonSerializable<DiscardRequest>
Defines the request body for discard operation.
Constructor Summary
| Constructor | Description |
|---|---|
| DiscardRequest() |
Creates an instance of Discard |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Discard |
fromJson(JsonReader jsonReader)
Reads an instance of Discard |
|
Move |
moveResourceInputType()
Get the move |
| List<String> |
moveResources()
Get the move |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
| Boolean |
validateOnly()
Get the validate |
|
Discard |
withMoveResourceInputType(MoveResourceInputType moveResourceInputType)
Set the move |
|
Discard |
withMoveResources(List<String> moveResources)
Set the move |
|
Discard |
withValidateOnly(Boolean validateOnly)
Set the validate |
Methods inherited from java.lang.Object
Constructor Details
DiscardRequest
public DiscardRequest()
Creates an instance of DiscardRequest class.
Method Details
fromJson
public static DiscardRequest fromJson(JsonReader jsonReader)
Reads an instance of DiscardRequest from the JsonReader.
Parameters:
Returns:
Throws:
moveResourceInputType
public MoveResourceInputType moveResourceInputType()
Get the moveResourceInputType property: Defines the move resource input type.
Returns:
moveResources
public List<String> moveResources()
Get the moveResources property: Gets or sets the list of resource Id's, by default it accepts move resource id's unless the input type is switched via moveResourceInputType property.
Returns:
toJson
validate
public void validate()
Validates the instance.
validateOnly
public Boolean validateOnly()
Get the validateOnly property: Gets or sets a value indicating whether the operation needs to only run pre-requisite.
Returns:
withMoveResourceInputType
public DiscardRequest withMoveResourceInputType(MoveResourceInputType moveResourceInputType)
Set the moveResourceInputType property: Defines the move resource input type.
Parameters:
Returns:
withMoveResources
public DiscardRequest withMoveResources(List<String> moveResources)
Set the moveResources property: Gets or sets the list of resource Id's, by default it accepts move resource id's unless the input type is switched via moveResourceInputType property.
Parameters:
Returns:
withValidateOnly
public DiscardRequest withValidateOnly(Boolean validateOnly)
Set the validateOnly property: Gets or sets a value indicating whether the operation needs to only run pre-requisite.
Parameters:
Returns: