Class TrafficWeight
- java.lang.Object
-
- com.azure.resourcemanager.appcontainers.models.TrafficWeight
-
public final class TrafficWeight extends Object
Traffic weight assigned to a revision.
-
-
Constructor Summary
Constructors Constructor Description TrafficWeight()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
label()
Get the label property: Associates a traffic label with a revision.Boolean
latestRevision()
Get the latestRevision property: Indicates that the traffic weight belongs to a latest stable revision.String
revisionName()
Get the revisionName property: Name of a revision.void
validate()
Validates the instance.Integer
weight()
Get the weight property: Traffic weight assigned to a revision.TrafficWeight
withLabel(String label)
Set the label property: Associates a traffic label with a revision.TrafficWeight
withLatestRevision(Boolean latestRevision)
Set the latestRevision property: Indicates that the traffic weight belongs to a latest stable revision.TrafficWeight
withRevisionName(String revisionName)
Set the revisionName property: Name of a revision.TrafficWeight
withWeight(Integer weight)
Set the weight property: Traffic weight assigned to a revision.
-
-
-
Method Detail
-
revisionName
public String revisionName()
Get the revisionName property: Name of a revision.- Returns:
- the revisionName value.
-
withRevisionName
public TrafficWeight withRevisionName(String revisionName)
Set the revisionName property: Name of a revision.- Parameters:
revisionName
- the revisionName value to set.- Returns:
- the TrafficWeight object itself.
-
weight
public Integer weight()
Get the weight property: Traffic weight assigned to a revision.- Returns:
- the weight value.
-
withWeight
public TrafficWeight withWeight(Integer weight)
Set the weight property: Traffic weight assigned to a revision.- Parameters:
weight
- the weight value to set.- Returns:
- the TrafficWeight object itself.
-
latestRevision
public Boolean latestRevision()
Get the latestRevision property: Indicates that the traffic weight belongs to a latest stable revision.- Returns:
- the latestRevision value.
-
withLatestRevision
public TrafficWeight withLatestRevision(Boolean latestRevision)
Set the latestRevision property: Indicates that the traffic weight belongs to a latest stable revision.- Parameters:
latestRevision
- the latestRevision value to set.- Returns:
- the TrafficWeight object itself.
-
label
public String label()
Get the label property: Associates a traffic label with a revision.- Returns:
- the label value.
-
withLabel
public TrafficWeight withLabel(String label)
Set the label property: Associates a traffic label with a revision.- Parameters:
label
- the label value to set.- Returns:
- the TrafficWeight object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-