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

com.spotinst.sdkjava.model.requests.elastigroup.ElastigroupInstanceLockRequest Maven / Gradle / Ivy

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

public class ElastigroupInstanceLockRequest {
    //region Members
    private String accountId;
    private Integer ttlInMinutes;
    //endregion

    //region Private Constructor

    private ElastigroupInstanceLockRequest() {
    }

    //endregion

    //region Getters & Setters

    public String getAccountId() {
        return this.accountId;
    }

    public void setAccountId(String accountId) {
        this.accountId = accountId;
    }

    public Integer getTtlInMinutes() {
        return this.ttlInMinutes;
    }

    public void setTtlInMinutes(Integer ttlValue) {
        this.ttlInMinutes = ttlValue;
    }
    //endregion

    //Builder class
    public static class Builder {
        private ElastigroupInstanceLockRequest elastigroupInstanceLockUnlockRequest;

        private Builder() {
            this.elastigroupInstanceLockUnlockRequest = new ElastigroupInstanceLockRequest();
        }

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

        public ElastigroupInstanceLockRequest.Builder setAccountId(final String accountId) {
            elastigroupInstanceLockUnlockRequest.setAccountId(accountId);
            return this;
        }

        public ElastigroupInstanceLockRequest.Builder setTtlInMinutes(final Integer ttlValue) {
            elastigroupInstanceLockUnlockRequest.setTtlInMinutes(ttlValue);
            return this;
        }

        public ElastigroupInstanceLockRequest build() {
            return elastigroupInstanceLockUnlockRequest;
        }
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy