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

com.spotinst.sdkjava.model.requests.elastigroup.aws.ElastigroupSuspendScalingPoliciesRequest Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonProperty;
import com.spotinst.sdkjava.model.bl.elastigroup.aws.ScalingPolicySuspension;

public class ElastigroupSuspendScalingPoliciesRequest {
    @JsonProperty("suspension")
    private ScalingPolicySuspension suspension;
    private String                  groupId;
    private String                  policyName;

    private ElastigroupSuspendScalingPoliciesRequest() {
    }

    public ScalingPolicySuspension getSuspension() {
        return suspension;
    }

    public void setSuspension(ScalingPolicySuspension suspension) {
        this.suspension = suspension;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }

    public String getPolicyName() {
        return policyName;
    }

    public void setPolicyName(String policyName) {
        this.policyName = policyName;
    }

    public static class Builder {
        private ElastigroupSuspendScalingPoliciesRequest elastigroupSuspendScalingPoliciesRequest;

        private Builder() {
            this.elastigroupSuspendScalingPoliciesRequest = new ElastigroupSuspendScalingPoliciesRequest();
        }

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

        public Builder setSuspension(final ScalingPolicySuspension suspension) {
            elastigroupSuspendScalingPoliciesRequest.setSuspension(suspension);
            return this;
        }

        public Builder setGroupId(final String groupId){
            elastigroupSuspendScalingPoliciesRequest.setGroupId(groupId);
            return this;
        }

        public Builder setPolicyName(final String policyName){
            elastigroupSuspendScalingPoliciesRequest.setPolicyName(policyName);
            return this;
        }

        public ElastigroupSuspendScalingPoliciesRequest build() {
            return elastigroupSuspendScalingPoliciesRequest;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy