blob: 1a75fb8834929a5b4aab38447ec5aa385422cffb [file] [log] [blame]
/**
*
* Copyright (C) 2011 Cloud Conscious, LLC. <info@cloudconscious.com>
*
* ====================================================================
* Licensed 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.terremark.ecloud.domain.internal;
import static com.google.common.base.Preconditions.checkNotNull;
import java.net.URI;
import java.util.Map;
import org.jclouds.terremark.ecloud.domain.TerremarkECloudOrg;
import org.jclouds.vcloud.domain.ReferenceType;
import org.jclouds.vcloud.terremark.domain.internal.TerremarkOrgImpl;
/**
* Locations of resources in a Terremark eCloud Org
*
* @author Adrian Cole
*
*/
public class TerremarkECloudOrgImpl extends TerremarkOrgImpl implements TerremarkECloudOrg {
private final ReferenceType dataCentersList;
private final ReferenceType deviceTags;
private final ReferenceType vAppCatalog;
public TerremarkECloudOrgImpl(String name, String type, URI id, String description,
Map<String, ReferenceType> catalogs, Map<String, ReferenceType> vdcs, Map<String, ReferenceType> networks,
Map<String, ReferenceType> tasksLists, ReferenceType keysList, ReferenceType deviceTags,
ReferenceType vAppCatalog, ReferenceType dataCentersList) {
super(name, type, id, name, catalogs, vdcs, networks, tasksLists, keysList);
this.deviceTags = checkNotNull(deviceTags, "deviceTags");
this.vAppCatalog = checkNotNull(vAppCatalog, "vAppCatalog");
this.dataCentersList = checkNotNull(dataCentersList, "dataCentersList");
}
@Override
public ReferenceType getDataCenters() {
return dataCentersList;
}
@Override
public ReferenceType getTags() {
return deviceTags;
}
@Override
public ReferenceType getVAppCatalog() {
return vAppCatalog;
}
}