Package com.vmware.nsx_policy.model
Class AviConnectionInfo.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.AviConnectionInfo.Builder
-
- Enclosing class:
- AviConnectionInfo
public static final class AviConnectionInfo.Builder extends java.lang.Object
Builder class forAviConnectionInfo
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofAviConnectionInfo
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AviConnectionInfo
build()
AviConnectionInfo.Builder
setCertificate(java.lang.String certificate)
Certificate used when on-borading workflow created by LCM/VCF.AviConnectionInfo.Builder
setCloud(java.lang.String cloud)
Clouds are containers for the environment that Avi Vantage is installed or operating within.AviConnectionInfo.Builder
setEnforcementPointAddress(java.lang.String enforcementPointAddress)
Value of this property could be Hostname or IP.AviConnectionInfo.Builder
setExpiresAt(java.lang.String expiresAt)
Expiry time of the token will be set by LCM at the time of Enforcement Point Creation.AviConnectionInfo.Builder
setIsDefaultCert(java.lang.Boolean isDefaultCert)
Advanced Load Balancer controller using default portal certificate.AviConnectionInfo.Builder
setManagedBy(java.lang.String managedBy)
Managed by used when on-borading workflow created by LCM/VCF.AviConnectionInfo.Builder
setPassword(java.lang.String password)
Password or Token for Avi Controller.AviConnectionInfo.Builder
setStatus(java.lang.String status)
Possible values are:AviConnectionInfo.STATUS_ACTIVATE
AviConnectionInfo.STATUS_DEACTIVATE_PROVIDER
AviConnectionInfo.STATUS_DEACTIVATE_API
This is connection property which checks whether ALB is connected to the controller.AviConnectionInfo.Builder
setTenant(java.lang.String tenant)
A tenant is an isolated instance of Avi Controller.AviConnectionInfo.Builder
setThumbprint(java.lang.String thumbprint)
Thumbprint of EnforcementPoint in the form of a SHA-256 hash represented in lower case HEX.AviConnectionInfo.Builder
setUsername(java.lang.String username)
Username.AviConnectionInfo.Builder
setVersion(java.lang.String version)
Avi supports API versioning for backward compatibility with automation scripts written for an object model older than the current one.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofAviConnectionInfo
.
-
-
Method Detail
-
setCertificate
public AviConnectionInfo.Builder setCertificate(java.lang.String certificate)
Certificate used when on-borading workflow created by LCM/VCF.- Parameters:
certificate
- New value for the property.
-
setCloud
public AviConnectionInfo.Builder setCloud(java.lang.String cloud)
Clouds are containers for the environment that Avi Vantage is installed or operating within. During initial setup of Vantage, a default cloud, named Default-Cloud, is created. This is where the first Controller is deployed, into Default-Cloud. Additional clouds may be added, containing SEs and virtual services. This is a deprecated property. Cloud has been renamed to cloud_name and it will added from specific ALB entity.- Parameters:
cloud
- New value for the property.
-
setExpiresAt
public AviConnectionInfo.Builder setExpiresAt(java.lang.String expiresAt)
Expiry time of the token will be set by LCM at the time of Enforcement Point Creation.- Parameters:
expiresAt
- New value for the property.
-
setIsDefaultCert
public AviConnectionInfo.Builder setIsDefaultCert(java.lang.Boolean isDefaultCert)
Advanced Load Balancer controller using default portal certificate.- Parameters:
isDefaultCert
- New value for the property.
-
setManagedBy
public AviConnectionInfo.Builder setManagedBy(java.lang.String managedBy)
Managed by used when on-borading workflow created by LCM/VCF.- Parameters:
managedBy
- New value for the property.
-
setPassword
public AviConnectionInfo.Builder setPassword(java.lang.String password)
Password or Token for Avi Controller.- Parameters:
password
- New value for the property.
-
setStatus
public AviConnectionInfo.Builder setStatus(java.lang.String status)
Possible values are: This is connection property which checks whether ALB is connected to the controller. Enum options - ACTIVATE, DEACTIVATE_PROVIDER, DEACTIVATE_API. Default value is DEACTIVATE_API.- Parameters:
status
- New value for the property.
-
setTenant
public AviConnectionInfo.Builder setTenant(java.lang.String tenant)
A tenant is an isolated instance of Avi Controller. Each Avi user account is associated with one or more tenants. The tenant associated with a user account defines the resources that user can access within Avi Vantage. When a user logs in, Avi restricts their access to only those resources that are in the same tenant- Parameters:
tenant
- New value for the property.
-
setThumbprint
public AviConnectionInfo.Builder setThumbprint(java.lang.String thumbprint)
Thumbprint of EnforcementPoint in the form of a SHA-256 hash represented in lower case HEX.- Parameters:
thumbprint
- New value for the property.
-
setUsername
public AviConnectionInfo.Builder setUsername(java.lang.String username)
Username.- Parameters:
username
- New value for the property.
-
setVersion
public AviConnectionInfo.Builder setVersion(java.lang.String version)
Avi supports API versioning for backward compatibility with automation scripts written for an object model older than the current one. Such scripts need not be updated to keep up with object model changes This is a deprecated property. The version is now auto populated from property file and its value can be read using APIs- Parameters:
version
- New value for the property.
-
setEnforcementPointAddress
public AviConnectionInfo.Builder setEnforcementPointAddress(java.lang.String enforcementPointAddress)
Value of this property could be Hostname or IP. For instance: - On an NSX-T MP running on default port, the value could be \"10.192.1.1\" - On an NSX-T MP running on custom port, the value could be \"192.168.1.1:32789\" - On an NSX-T MP in VMC deployments, the value could be \"192.168.1.1:5480/nsxapi\"- Parameters:
enforcementPointAddress
- New value for the property.
-
build
public AviConnectionInfo build()
-
-