Package com.vmware.nsx_policy.model
Class ConstraintTarget.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.ConstraintTarget.Builder
-
- Enclosing class:
- ConstraintTarget
public static final class ConstraintTarget.Builder extends java.lang.ObjectBuilder class forConstraintTarget.
-
-
Constructor Summary
Constructors Constructor Description Builder()Constructor with parameters for the required properties ofConstraintTarget.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConstraintTargetbuild()ConstraintTarget.BuildersetAttribute(java.lang.String attribute)Attribute name of the target entity.ConstraintTarget.BuildersetPathPrefix(java.lang.String pathPrefix)ConstraintTarget.BuildersetTargetResourceType(java.lang.String targetResourceType)Target resource type accepts input as DTO Type and or FQDN.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofConstraintTarget.
-
-
Method Detail
-
setAttribute
public ConstraintTarget.Builder setAttribute(java.lang.String attribute)
Attribute name of the target entity.- Parameters:
attribute- New value for the property.
-
setPathPrefix
public ConstraintTarget.Builder setPathPrefix(java.lang.String pathPrefix)
- Parameters:
pathPrefix- New value for the property.
-
setTargetResourceType
public ConstraintTarget.Builder setTargetResourceType(java.lang.String targetResourceType)
Target resource type accepts input as DTO Type and or FQDN. It also supports dot format like SecurityPolicy.Rule in a scenario where same DTO type shared across across policy sub tree. For example DTO type Rule shared by both security policy and gateway policy rules. So to specify any constraint for Security policy rule, user can define the target resource type as SecurityPolicy.Rule.- Parameters:
targetResourceType- New value for the property.
-
build
public ConstraintTarget build()
-
-