Package kubevirt.io
Class V1Clock
- java.lang.Object
-
- kubevirt.io.V1Clock
-
@Generated(value="io.swagger.codegen.languages.JavaClientCodegen", date="2019-11-10T14:44:51.030+02:00") public class V1Clock extends java.lang.Object
Represents the clock and timers of a vmi.
-
-
Field Summary
Fields Modifier and Type Field Description private V1Timer
timer
private java.lang.String
timezone
private V1ClockOffsetUTC
utc
-
Constructor Summary
Constructors Constructor Description V1Clock()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
V1Timer
getTimer()
Timer specifies whih timers are attached to the vmi.java.lang.String
getTimezone()
Timezone sets the guest clock to the specified timezone.V1ClockOffsetUTC
getUtc()
UTC sets the guest clock to UTC on each boot.int
hashCode()
void
setTimer(V1Timer timer)
void
setTimezone(java.lang.String timezone)
void
setUtc(V1ClockOffsetUTC utc)
V1Clock
timer(V1Timer timer)
V1Clock
timezone(java.lang.String timezone)
private java.lang.String
toIndentedString(java.lang.Object o)
Convert the given object to string with each line indented by 4 spaces (except the first line).java.lang.String
toString()
V1Clock
utc(V1ClockOffsetUTC utc)
-
-
-
Field Detail
-
timer
private V1Timer timer
-
timezone
private java.lang.String timezone
-
utc
private V1ClockOffsetUTC utc
-
-
Method Detail
-
getTimer
public V1Timer getTimer()
Timer specifies whih timers are attached to the vmi.- Returns:
- timer
-
setTimer
public void setTimer(V1Timer timer)
-
timezone
public V1Clock timezone(java.lang.String timezone)
-
getTimezone
public java.lang.String getTimezone()
Timezone sets the guest clock to the specified timezone. Zone name follows the TZ environment variable format (e.g. 'America/New_York').- Returns:
- timezone
-
setTimezone
public void setTimezone(java.lang.String timezone)
-
utc
public V1Clock utc(V1ClockOffsetUTC utc)
-
getUtc
public V1ClockOffsetUTC getUtc()
UTC sets the guest clock to UTC on each boot. If an offset is specified, guest changes to the clock will be kept during reboots and are not reset.- Returns:
- utc
-
setUtc
public void setUtc(V1ClockOffsetUTC utc)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toIndentedString
private java.lang.String toIndentedString(java.lang.Object o)
Convert the given object to string with each line indented by 4 spaces (except the first line).
-
-