ResizeError Class

  • java.lang.Object
    • com.microsoft.azure.management.batch.ResizeError

public class ResizeError

An error that occurred when resizing a pool.

Method Summary

Modifier and Type Method and Description
String code()

Get an identifier for the error. Codes are invariant and are intended to be consumed programmatically.

List<ResizeError> details()

Get the details value.

String message()

Get a message describing the error, intended to be suitable for display in a user interface.

ResizeError withCode(String code)

Set an identifier for the error. Codes are invariant and are intended to be consumed programmatically.

ResizeError withDetails(List<ResizeError> details)

Set the details value.

ResizeError withMessage(String message)

Set a message describing the error, intended to be suitable for display in a user interface.

Method Details

code

public String code()

Get an identifier for the error. Codes are invariant and are intended to be consumed programmatically.

Returns:

the code value

details

public List details()

Get the details value.

Returns:

the details value

message

public String message()

Get a message describing the error, intended to be suitable for display in a user interface.

Returns:

the message value

withCode

public ResizeError withCode(String code)

Set an identifier for the error. Codes are invariant and are intended to be consumed programmatically.

Parameters:

code - the code value to set

Returns:

the ResizeError object itself.

withDetails

public ResizeError withDetails(List details)

Set the details value.

Parameters:

details - the details value to set

Returns:

the ResizeError object itself.

withMessage

public ResizeError withMessage(String message)

Set a message describing the error, intended to be suitable for display in a user interface.

Parameters:

message - the message value to set

Returns:

the ResizeError object itself.

Applies to