Class SaveConfigurationParameter
- java.lang.Object
-
- com.azure.resourcemanager.apimanagement.models.SaveConfigurationParameter
-
public final class SaveConfigurationParameter extends Object
Save Tenant Configuration Contract details.
-
-
Constructor Summary
Constructors Constructor Description SaveConfigurationParameter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
branch()
Get the branch property: The name of the Git branch in which to commit the current configuration snapshot.Boolean
force()
Get the force property: The value if true, the current configuration database is committed to the Git repository, even if the Git repository has newer changes that would be overwritten.void
validate()
Validates the instance.SaveConfigurationParameter
withBranch(String branch)
Set the branch property: The name of the Git branch in which to commit the current configuration snapshot.SaveConfigurationParameter
withForce(Boolean force)
Set the force property: The value if true, the current configuration database is committed to the Git repository, even if the Git repository has newer changes that would be overwritten.
-
-
-
Method Detail
-
branch
public String branch()
Get the branch property: The name of the Git branch in which to commit the current configuration snapshot.- Returns:
- the branch value.
-
withBranch
public SaveConfigurationParameter withBranch(String branch)
Set the branch property: The name of the Git branch in which to commit the current configuration snapshot.- Parameters:
branch
- the branch value to set.- Returns:
- the SaveConfigurationParameter object itself.
-
force
public Boolean force()
Get the force property: The value if true, the current configuration database is committed to the Git repository, even if the Git repository has newer changes that would be overwritten.- Returns:
- the force value.
-
withForce
public SaveConfigurationParameter withForce(Boolean force)
Set the force property: The value if true, the current configuration database is committed to the Git repository, even if the Git repository has newer changes that would be overwritten.- Parameters:
force
- the force value to set.- Returns:
- the SaveConfigurationParameter object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-