
org.jclouds.googlecomputeengine.domain.AutoValue_Zone_MaintenanceWindow Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jclouds-shaded Show documentation
Show all versions of jclouds-shaded Show documentation
Provides a shaded jclouds with relocated guava and guice
The newest version!
package org.jclouds.googlecomputeengine.domain;
import java.util.Date;
import javax.annotation.Generated;
import org.jclouds.javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_Zone_MaintenanceWindow extends Zone.MaintenanceWindow {
private final String name;
private final String description;
private final Date beginTime;
private final Date endTime;
AutoValue_Zone_MaintenanceWindow(
String name,
@Nullable String description,
Date beginTime,
Date endTime) {
if (name == null) {
throw new NullPointerException("Null name");
}
this.name = name;
this.description = description;
if (beginTime == null) {
throw new NullPointerException("Null beginTime");
}
this.beginTime = beginTime;
if (endTime == null) {
throw new NullPointerException("Null endTime");
}
this.endTime = endTime;
}
@Override
public String name() {
return name;
}
@Nullable
@Override
public String description() {
return description;
}
@Override
public Date beginTime() {
return beginTime;
}
@Override
public Date endTime() {
return endTime;
}
@Override
public String toString() {
return "MaintenanceWindow{"
+ "name=" + name + ", "
+ "description=" + description + ", "
+ "beginTime=" + beginTime + ", "
+ "endTime=" + endTime
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Zone.MaintenanceWindow) {
Zone.MaintenanceWindow that = (Zone.MaintenanceWindow) o;
return (this.name.equals(that.name()))
&& ((this.description == null) ? (that.description() == null) : this.description.equals(that.description()))
&& (this.beginTime.equals(that.beginTime()))
&& (this.endTime.equals(that.endTime()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.name.hashCode();
h *= 1000003;
h ^= (description == null) ? 0 : this.description.hashCode();
h *= 1000003;
h ^= this.beginTime.hashCode();
h *= 1000003;
h ^= this.endTime.hashCode();
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy