com.huawei.openstack4j.openstack.scaling.domain.ASAutoScalingGroup Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openstack4j Show documentation
Show all versions of openstack4j Show documentation
Huawei Cloud Open API SDK for Java
/*******************************************************************************
* Copyright 2017 Huawei Technologies Co., Ltd.
*
* 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 com.huawei.openstack4j.openstack.scaling.domain;
import java.util.Date;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonRootName;
import com.huawei.openstack4j.model.scaling.ScalingGroup;
import com.huawei.openstack4j.openstack.common.DateTimeUtils;
import com.huawei.openstack4j.openstack.common.IdResourceEntity;
import com.huawei.openstack4j.openstack.common.ListResult;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.ToString;
/**
*
* @author QianBiao.NG
* @date 2017-06-14 09:04:49
*/
@Getter
@ToString
@Builder(toBuilder = true)
@NoArgsConstructor
@AllArgsConstructor
@JsonRootName("scaling_group")
public class ASAutoScalingGroup implements ScalingGroup {
private static final long serialVersionUID = -1524859815313839858L;
@JsonProperty("scaling_group_id")
String groupId;
@JsonProperty("scaling_group_name")
String groupName;
@JsonProperty("scaling_group_status")
ScalingGroupStatus groupStatus;
@JsonProperty("scaling_configuration_id")
String configId;
@JsonProperty("scaling_configuration_name")
String configName;
@JsonProperty("current_instance_number")
Integer currentInstanceNumber;
@JsonProperty("desire_instance_number")
Integer desireInstanceNumber;
@JsonProperty("min_instance_number")
Integer minInstanceNumber;
@JsonProperty("max_instance_number")
Integer maxInstanceNumber;
@JsonProperty("cool_down_time")
Integer coolDownTime;
@JsonProperty("lb_listener_id")
String lbListenerId;
@JsonProperty("lbaas_listeners")
List lbaasListeners;
@JsonProperty("available_zones")
List availabilityZones;
@JsonProperty("networks")
List networks;
@JsonProperty("security_groups")
List securityGroups;
@JsonProperty("create_time")
@JsonFormat(pattern = DateTimeUtils.FORMAT_YMDTHMSZ)
Date createTime;
@JsonProperty("vpc_id")
String vpcId;
@JsonProperty
String detail;
@JsonProperty("is_scaling")
Boolean isScaling;
@JsonProperty("health_periodic_audit_method")
HealthPeriodicAuditMethod healthPeriodicAuditMethod;
@JsonProperty("health_periodic_audit_time")
Integer healthPeriodicAuditTime;
@JsonProperty("health_periodic_audit_grace_period")
Integer healthPeriodicAuditGracePeriod;
@JsonProperty("instance_terminate_policy")
InstanceTerminatePolicy instanceTerminatePolicy;
@JsonProperty("notifications")
List notifications;
@JsonProperty("delete_publicip")
Boolean deletePublicip;
@JsonProperty("multi_az_priority_policy")
MultiAZPriorityPolicy multiAZPriorityPolicy;
public static class ASAutoScalingGroups extends ListResult {
private static final long serialVersionUID = 1L;
@JsonProperty("scaling_groups")
private List scalingGroups;
@Override
protected List value() {
return scalingGroups;
}
}
}