Skip to content

Commit

Permalink
[AutoPR servicefabric/data-plane] Swagger specification for Service F…
Browse files Browse the repository at this point in the history
…abric runtime version 6.4 (#2657)

* Generated from 6415c5920fc51ac978815e71c12089643a219c49

Swagger specification for Service Fabric runtime version 6.4

* Generated from c69b3d22ae7f74ae4932d3fdce146ff567441664

fix typos specificed -> specified, sucessful -> successful, resturns -> returns, commited -> committed, Double word "maximum", Double word "with"

* Generated from 494e01db96f17beb1d349ab74358274971b26d08

remove invalid character
  • Loading branch information
AutorestCI authored Dec 5, 2018
1 parent 2f7db90 commit 1d86cce
Show file tree
Hide file tree
Showing 136 changed files with 15,201 additions and 1,423 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.servicefabric;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
* Describes the horizontal auto scaling mechanism that adds or removes
* replicas (containers or container groups).
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "kind")
@JsonTypeName("AddRemoveReplica")
public class AddRemoveReplicaScalingMechanism extends AutoScalingMechanism {
/**
* Minimum number of containers (scale down won't be performed below this
* number).
*/
@JsonProperty(value = "minCount", required = true)
private int minCount;

/**
* Maximum number of containers (scale up won't be performed above this
* number).
*/
@JsonProperty(value = "maxCount", required = true)
private int maxCount;

/**
* Each time auto scaling is performed, this number of containers will be
* added or removed.
*/
@JsonProperty(value = "scaleIncrement", required = true)
private int scaleIncrement;

/**
* Get minimum number of containers (scale down won't be performed below this number).
*
* @return the minCount value
*/
public int minCount() {
return this.minCount;
}

/**
* Set minimum number of containers (scale down won't be performed below this number).
*
* @param minCount the minCount value to set
* @return the AddRemoveReplicaScalingMechanism object itself.
*/
public AddRemoveReplicaScalingMechanism withMinCount(int minCount) {
this.minCount = minCount;
return this;
}

/**
* Get maximum number of containers (scale up won't be performed above this number).
*
* @return the maxCount value
*/
public int maxCount() {
return this.maxCount;
}

/**
* Set maximum number of containers (scale up won't be performed above this number).
*
* @param maxCount the maxCount value to set
* @return the AddRemoveReplicaScalingMechanism object itself.
*/
public AddRemoveReplicaScalingMechanism withMaxCount(int maxCount) {
this.maxCount = maxCount;
return this;
}

/**
* Get each time auto scaling is performed, this number of containers will be added or removed.
*
* @return the scaleIncrement value
*/
public int scaleIncrement() {
return this.scaleIncrement;
}

/**
* Set each time auto scaling is performed, this number of containers will be added or removed.
*
* @param scaleIncrement the scaleIncrement value to set
* @return the AddRemoveReplicaScalingMechanism object itself.
*/
public AddRemoveReplicaScalingMechanism withScaleIncrement(int scaleIncrement) {
this.scaleIncrement = scaleIncrement;
return this;
}

}
Loading

0 comments on commit 1d86cce

Please sign in to comment.