Package com.vmware.nsx_policy.model
Class PolicyNonCompliantConfig.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.PolicyNonCompliantConfig.Builder
-
- Enclosing class:
- PolicyNonCompliantConfig
public static final class PolicyNonCompliantConfig.Builder extends java.lang.ObjectBuilder class forPolicyNonCompliantConfig.
-
-
Constructor Summary
Constructors Constructor Description Builder()Constructor with parameters for the required properties ofPolicyNonCompliantConfig.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicyNonCompliantConfigbuild()PolicyNonCompliantConfig.BuildersetAffectedResources(java.util.List<PolicyResourceReference> affectedResources)Resources/Services impacted by non compliant configuration This property may be present in responses from the server, but if it is present in a request to server it will be ignored.PolicyNonCompliantConfig.BuildersetComplianceNames(java.util.List<java.lang.String> complianceNames)Names of the compliance programs according to which the affected resources are non-compliant.PolicyNonCompliantConfig.BuildersetDescription(java.lang.String description)Detail description of non compliant configuration with suggestive action This property may be present in responses from the server, but if it is present in a request to server it will be ignored.PolicyNonCompliantConfig.BuildersetNonComplianceCode(java.lang.Long nonComplianceCode)Code for non compliant configuration format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.PolicyNonCompliantConfig.BuildersetReportedBy(PolicyResourceReference reportedBy)
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofPolicyNonCompliantConfig.
-
-
Method Detail
-
setAffectedResources
public PolicyNonCompliantConfig.Builder setAffectedResources(java.util.List<PolicyResourceReference> affectedResources)
Resources/Services impacted by non compliant configuration This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
affectedResources- New value for the property.
-
setComplianceNames
public PolicyNonCompliantConfig.Builder setComplianceNames(java.util.List<java.lang.String> complianceNames)
Names of the compliance programs according to which the affected resources are non-compliant. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
complianceNames- New value for the property.
-
setDescription
public PolicyNonCompliantConfig.Builder setDescription(java.lang.String description)
Detail description of non compliant configuration with suggestive action This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
description- New value for the property.
-
setNonComplianceCode
public PolicyNonCompliantConfig.Builder setNonComplianceCode(java.lang.Long nonComplianceCode)
Code for non compliant configuration format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
nonComplianceCode- New value for the property.
-
setReportedBy
public PolicyNonCompliantConfig.Builder setReportedBy(PolicyResourceReference reportedBy)
- Parameters:
reportedBy- New value for the property.
-
build
public PolicyNonCompliantConfig build()
-
-