TrafficWeight Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. TrafficWeight
- com.
Implements
public final class TrafficWeight
implements JsonSerializable<TrafficWeight>
Traffic weight assigned to a revision.
Constructor Summary
Constructor | Description |
---|---|
TrafficWeight() |
Creates an instance of Traffic |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Traffic |
fromJson(JsonReader jsonReader)
Reads an instance of Traffic |
Boolean |
latestRevision()
Get the latest |
String |
revisionName()
Get the revision |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Integer |
weight()
Get the weight property: Traffic weight assigned to a revision. |
Traffic |
withLatestRevision(Boolean latestRevision)
Set the latest |
Traffic |
withRevisionName(String revisionName)
Set the revision |
Traffic |
withWeight(Integer weight)
Set the weight property: Traffic weight assigned to a revision. |
Methods inherited from java.lang.Object
Constructor Details
TrafficWeight
public TrafficWeight()
Creates an instance of TrafficWeight class.
Method Details
fromJson
public static TrafficWeight fromJson(JsonReader jsonReader)
Reads an instance of TrafficWeight from the JsonReader.
Parameters:
Returns:
Throws:
latestRevision
public Boolean latestRevision()
Get the latestRevision property: Indicates that the traffic weight belongs to a latest stable revision.
Returns:
revisionName
public String revisionName()
Get the revisionName property: Name of a revision.
Returns:
toJson
validate
public void validate()
Validates the instance.
weight
public Integer weight()
Get the weight property: Traffic weight assigned to a revision.
Returns:
withLatestRevision
public TrafficWeight withLatestRevision(Boolean latestRevision)
Set the latestRevision property: Indicates that the traffic weight belongs to a latest stable revision.
Parameters:
Returns:
withRevisionName
public TrafficWeight withRevisionName(String revisionName)
Set the revisionName property: Name of a revision.
Parameters:
Returns:
withWeight
public TrafficWeight withWeight(Integer weight)
Set the weight property: Traffic weight assigned to a revision.
Parameters:
Returns:
Applies to
Azure SDK for Java