public interface Timezone extends Service, TimezoneTypes
Timezone
interface provides methods to get and set the appliance
timezone. This interface was added in vSphere API 6.7.Modifier and Type | Method and Description |
---|---|
java.lang.String |
get()
Get time zone.
|
void |
get(AsyncCallback<java.lang.String> asyncCallback)
Get time zone.
|
void |
get(AsyncCallback<java.lang.String> asyncCallback,
InvocationConfig invocationConfig)
Get time zone.
|
java.lang.String |
get(InvocationConfig invocationConfig)
Get time zone.
|
void |
set(java.lang.String name)
Set time zone.
|
void |
set(java.lang.String name,
AsyncCallback<java.lang.Void> asyncCallback)
Set time zone.
|
void |
set(java.lang.String name,
AsyncCallback<java.lang.Void> asyncCallback,
InvocationConfig invocationConfig)
Set time zone.
|
void |
set(java.lang.String name,
InvocationConfig invocationConfig)
Set time zone.
|
void set(java.lang.String name)
Synchronous method overload. Result of the invocation will be reported as a method return value.
name
- Time zone name.InvalidArgument
- if passed arguments are invalid.Error
- if any error occurs during the execution of the operation.void set(java.lang.String name, InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
name
- Time zone name.invocationConfig
- Configuration for the method invocation.InvalidArgument
- if passed arguments are invalid.Error
- if any error occurs during the execution of the operation.void set(java.lang.String name, AsyncCallback<java.lang.Void> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Errors:
InvalidArgument
- if passed arguments are invalid.
Error
- if any error occurs during the execution of the operation.
name
- Time zone name.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void set(java.lang.String name, AsyncCallback<java.lang.Void> asyncCallback, InvocationConfig invocationConfig)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Errors:
InvalidArgument
- if passed arguments are invalid.
Error
- if any error occurs during the execution of the operation.
name
- Time zone name.asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.java.lang.String get()
Synchronous method overload. Result of the invocation will be reported as a method return value.
Error
- if timezone cannot be read.java.lang.String get(InvocationConfig invocationConfig)
Synchronous method overload. Result of the invocation will be
reported as a method return value.
Use invocationConfig
to specify configuration for this particular invocation.
invocationConfig
- Configuration for the method invocation.Error
- if timezone cannot be read.void get(AsyncCallback<java.lang.String> asyncCallback)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Operation Result:
Time zone name.
Operation Errors:
Error
- if timezone cannot be read.
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.void get(AsyncCallback<java.lang.String> asyncCallback, InvocationConfig invocationConfig)
Asynchronous method overload. Result of the invocation will be
reported via the specified asyncCallback
.
Use invocationConfig
to specify configuration for this particular invocation.
Operation Result:
Time zone name.
Operation Errors:
Error
- if timezone cannot be read.
asyncCallback
- Receives the status (progress, result or error) of the operation invocation.invocationConfig
- Configuration for the method invocation.