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.ObjectRepresents the clock and timers of a vmi.
-
-
Field Summary
Fields Modifier and Type Field Description private V1Timertimerprivate java.lang.Stringtimezoneprivate V1ClockOffsetUTCutc
-
Constructor Summary
Constructors Constructor Description V1Clock()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)V1TimergetTimer()Timer specifies whih timers are attached to the vmi.java.lang.StringgetTimezone()Timezone sets the guest clock to the specified timezone.V1ClockOffsetUTCgetUtc()UTC sets the guest clock to UTC on each boot.inthashCode()voidsetTimer(V1Timer timer)voidsetTimezone(java.lang.String timezone)voidsetUtc(V1ClockOffsetUTC utc)V1Clocktimer(V1Timer timer)V1Clocktimezone(java.lang.String timezone)private java.lang.StringtoIndentedString(java.lang.Object o)Convert the given object to string with each line indented by 4 spaces (except the first line).java.lang.StringtoString()V1Clockutc(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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin 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).
-
-