PolicyDefinition.DefinitionStages.WithParameters Interface
public static interface PolicyDefinition.DefinitionStages.WithParameters
A policy definition allowing parameters to be set.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract
With |
withParameter(String name, ParameterDefinitionsValue definition)
Specifies the parameters of the policy. |
abstract
With |
withParameter(String name, ParameterType parameterType, Object defaultValue)
Specifies the parameters of the policy. |
Method Details
withParameter
public abstract PolicyDefinition.DefinitionStages.WithCreate withParameter(String name, ParameterDefinitionsValue definition)
Specifies the parameters of the policy.
Parameters:
name
- the name of the parameter
definition
- the definition of the parameter
Returns:
the next stage of policy definition
withParameter
public abstract PolicyDefinition.DefinitionStages.WithCreate withParameter(String name, ParameterType parameterType, Object defaultValue)
Specifies the parameters of the policy.
Parameters:
name
- the name of the parameter
parameterType
- the type of the parameter
defaultValue
- the default value of the parameter
Returns:
the next stage of policy definition
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java