All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.spotinst.sdkjava.model.bl.azure.elastiGroup.V3.Deployment.GroupDeploymentGetAzure Maven / Gradle / Ivy

There is a newer version: 1.0.121
Show newest version
package com.spotinst.sdkjava.model.bl.azure.elastiGroup.V3.Deployment;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.spotinst.sdkjava.enums.GroupDeploymentStateEnumAzure;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

public class GroupDeploymentGetAzure {
    //region Members
    @JsonIgnore
    private Set                      isSet;
    private String                           id;
    private GroupDeploymentStateEnumAzure    status;
    private DeploymentProgressIndicatorAzure progress;
    private Date                             createdAt;
    private Date                             updatedAt;
    //endregion

    //region constructor
    public GroupDeploymentGetAzure() {
        isSet = new HashSet<>();
    }
    //endregion

    //region Getters and Setters
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
        touch("id");
    }

    public GroupDeploymentStateEnumAzure getStatus() {
        return status;
    }

    public void setStatus(GroupDeploymentStateEnumAzure status) {
        this.status = status;
        touch("status");
    }

    public DeploymentProgressIndicatorAzure getProgress() {
        return progress;
    }

    public void setProgress(DeploymentProgressIndicatorAzure progress) {
        this.progress = progress;
        touch("progress");
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
        touch("createdAt");
    }

    public Date getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Date updatedAt) {
        this.updatedAt = updatedAt;
        touch("updatedAt");
    }
    //endregion

    //region isSet boolean methods
    @JsonIgnore
    public Boolean isIdSet(){
        return this.isSet.contains("id");
    }
    @JsonIgnore
    public Boolean isStatusSet(){
        return this.isSet.contains("status");
    }
    @JsonIgnore
    public Boolean isProgressSet(){
        return this.isSet.contains("progress");
    }
    @JsonIgnore
    public Boolean isUpdatedAtSet(){
        return this.isSet.contains("updatedAt");
    }
    @JsonIgnore
    public Boolean isCreatedAtSet(){
        return this.isSet.contains("createdAt");
    }
    //endregion

    //region private methods - touch helper
    private void touch(String fieldName) {
        this.isSet.add(fieldName);
    }
    //endregion
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy