Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jclouds.packet.domain;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Set;
import org.jclouds.javax.annotation.Nullable;
import org.jclouds.json.SerializedNames;
import com.google.auto.value.AutoValue;
import shaded.com.google.common.base.Enums;
import shaded.com.google.common.base.Joiner;
import shaded.com.google.common.base.Optional;
import shaded.com.google.common.collect.ImmutableList;
import shaded.com.google.common.collect.ImmutableMap;
import shaded.com.google.common.collect.ImmutableSet;
import static shaded.com.google.common.base.Preconditions.checkArgument;
@AutoValue
public abstract class Device {
public enum State {
PROVISIONING, QUEUED, ACTIVE, REBOOTING, POWERING_OFF, POWERING_ON, INACTIVE;
public static State fromValue(String value) {
Optional state = Enums.getIfPresent(State.class, value.toUpperCase());
checkArgument(state.isPresent(), "Expected one of %s but was %s", Joiner.on(',').join(State.values()), value);
return state.get();
}
}
public abstract String id();
public abstract String shortId();
public abstract String hostname();
@Nullable
public abstract String description();
public abstract State state();
public abstract List tags();
public abstract String billingCycle();
public abstract String user();
public abstract String iqn();
public abstract Boolean locked();
public abstract String bondingMode();
public abstract Date createdAt();
public abstract Date updatedAt();
public abstract OperatingSystem operatingSystem();
public abstract Facility facility();
public abstract Href project();
public abstract List sshKeys();
public abstract Href projectLite();
public abstract List