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

com.spotinst.sdkjava.model.bl.spotStorage.AzureStorageVolumeTag Maven / Gradle / Ivy

There is a newer version: 1.0.121
Show newest version
package com.spotinst.sdkjava.model.bl.spotStorage;

import com.fasterxml.jackson.annotation.JsonIgnore;

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

public class AzureStorageVolumeTag {
    //region Members
    @JsonIgnore
    private Set isSet;
    private String      tagKey;
    private String      tagValue;
    //endregion

    //region Constructor
    private AzureStorageVolumeTag() {
        isSet = new HashSet<>();
    }
    //endregion

    //region getters &setters
    public Set getIsSet() {
        return isSet;
    }

    public void setIsSet(Set isSet) {
        this.isSet = isSet;
    }

    public String getTagKey() {
        return tagKey;
    }

    public void setTagKey(String tagKey) {
        isSet.add("tagKey");
        this.tagKey = tagKey;
    }

    public String getTagValue() {
        return tagValue;
    }

    public void setTagValue(String tagValue) {
        isSet.add("tagValue");
        this.tagValue = tagValue;
    }
    //end region

    //region Builder class
    public static class Builder {
        //region Members
        private AzureStorageVolumeTag volumeTag;
        //endregion


        private Builder() {
            this.volumeTag = new AzureStorageVolumeTag();
        }

        public static Builder get() {
            return new Builder();
        }

        //region Build methods
        public Builder setTagKey(final String tagKey) {
            volumeTag.setTagKey(tagKey);
            return this;
        }

        public Builder setTagValue(final String tagValue) {
            volumeTag.setTagValue(tagValue);
            return this;
        }

        public AzureStorageVolumeTag build() {
            // Validations
            return volumeTag;
        }
        //endregion
    }
    //endregion

    //region isSet methods
    // Is tagKey Set boolean method
    @JsonIgnore
    public boolean isTagKeySet() {
        return isSet.contains("tagKey");
    }

    // Is tagValue Set boolean method
    @JsonIgnore
    public boolean isTagValueSet() {
        return isSet.contains("tagValue");
    }
    //endregion
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy