com.aliyuncs.batchcompute.pojo.v20151111.ClusterDescription Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aliyun-java-sdk-batchcompute Show documentation
Show all versions of aliyun-java-sdk-batchcompute Show documentation
Aliyun Open API SDK for Java
Copyright (C) Alibaba Cloud Computing
All rights reserved.
版权所有 (C)阿里云计算有限公司
http://www.aliyun.com
/*
* 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 com.aliyuncs.batchcompute.pojo.v20151111;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.HashMap;
import java.util.Map;
/**
* Created by guangchun.luo on 15/12/05.
*/
@JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_DEFAULT)
public class ClusterDescription {
@JsonProperty("Name")
private String name;
@JsonProperty("Description")
private String description;
@JsonProperty("ImageId")
private String imageId;
@JsonProperty("InstanceType")
private String instanceType;
@JsonIgnore
public String getScheduleType() {
return scheduleType;
}
@JsonIgnore
public void setScheduleType(String scheduleType) {
this.scheduleType = scheduleType;
}
@JsonProperty("ScheduleType")
private String scheduleType;
@JsonProperty("Groups")
private Map groups;
@JsonProperty("UserData")
private Map userData;
@JsonProperty("Bootstrap")
private String bootstrap;
@JsonProperty("EnvVars")
private Map envVars;
@JsonIgnore
public String getBootstrap() {
return bootstrap;
}
@JsonIgnore
public void setBootstrap(String bootstrap) {
this.bootstrap = bootstrap;
}
@JsonIgnore
public Map getEnvVars() {
return envVars;
}
@JsonIgnore
public void setEnvVars(Map envVars) {
this.envVars = envVars;
}
public void addEnvVar(String key, String value) {
if(this.envVars==null){
this.envVars = new HashMap();
}
this.envVars.put(key, value);
}
@JsonIgnore
public Notification getNotification() {
return notification;
}
@JsonIgnore
public void setNotification(Notification notification) {
this.notification = notification;
}
@JsonProperty("Notification")
private Notification notification;
@JsonIgnore
public Configs getConfigs() {
return configs;
}
@JsonIgnore
public void setConfigs(Configs configs) {
this.configs = configs;
}
@JsonProperty("Configs")
private Configs configs;
@JsonIgnore
public String getInstanceType() {
return instanceType;
}
@JsonIgnore
public void setInstanceType(String instanceType) {
this.instanceType = instanceType;
}
@JsonIgnore
public Map getUserData() {
return userData;
}
@JsonIgnore
public void setUserData(Map userData) {
this.userData = userData;
}
public void addUserData(String key, String value) {
if(this.userData==null){
this.userData = new HashMap();
}
this.userData.put(key, value);
}
@JsonIgnore
public String getName() {
return name;
}
@JsonIgnore
public void setName(String name) {
this.name = name;
}
@JsonIgnore
public String getDescription() {
return description;
}
@JsonIgnore
public void setDescription(String description) {
this.description = description;
}
@JsonIgnore
public String getImageId() {
return imageId;
}
@JsonIgnore
public void setImageId(String imageId) {
this.imageId = imageId;
}
@JsonIgnore
public Map getGroups() {
return groups;
}
@JsonIgnore
public void setGroups(Map groups) {
this.groups = groups;
}
public void addGroup(String groupName, GroupDescription group) {
if(null == this.groups){
this.groups = new HashMap();
}
this.groups.put(groupName, group);
}
public void mountDataDisk(DataDisk dataDisk){
Configs configs = getConfigs();
if(configs==null){
configs = new Configs();
setConfigs(configs);
}
Disks disks = configs.getDisks();
if(disks==null){
disks = new Disks();
configs.setDisks(disks);
}
disks.setDataDisk(dataDisk);
}
public void mountSystemDisk(SystemDisk systemDisk){
Configs configs = getConfigs();
if(configs==null){
configs = new Configs();
setConfigs(configs);
}
Disks disks = configs.getDisks();
if(disks==null){
disks = new Disks();
configs.setDisks(disks);
}
disks.setSystemDisk(systemDisk);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy