-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR servicefabric/data-plane] Swagger specification for Service F…
…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
1 parent
2f7db90
commit 1d86cce
Showing
136 changed files
with
15,201 additions
and
1,423 deletions.
There are no files selected for viewing
103 changes: 103 additions & 0 deletions
103
...ric/src/main/java/com/microsoft/azure/servicefabric/AddRemoveReplicaScalingMechanism.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
} |
Oops, something went wrong.