LedgerProperties Class
- java.
lang. Object - com.
azure. resourcemanager. confidentialledger. models. LedgerProperties
- com.
Implements
public final class LedgerProperties
implements JsonSerializable<LedgerProperties>
LedgerProperties Additional Confidential Ledger properties.
Constructor Summary
Constructor | Description |
---|---|
LedgerProperties() |
Creates an instance of Ledger |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<Aad |
aadBasedSecurityPrincipals()
Get the aad |
Application |
applicationType()
Get the application |
List<Cert |
certBasedSecurityPrincipals()
Get the cert |
Enclave |
enclavePlatform()
Get the enclave |
static
Ledger |
fromJson(JsonReader jsonReader)
Reads an instance of Ledger |
String |
hostLevel()
Get the host |
String |
identityServiceUri()
Get the identity |
String |
ledgerInternalNamespace()
Get the ledger |
String |
ledgerName()
Get the ledger |
Ledger |
ledgerSku()
Get the ledger |
Ledger |
ledgerType()
Get the ledger |
String |
ledgerUri()
Get the ledger |
Integer |
maxBodySizeInMb()
Get the max |
Integer |
nodeCount()
Get the node |
Provisioning |
provisioningState()
Get the provisioning |
Running |
runningState()
Get the running |
String |
subjectName()
Get the subject |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Ledger |
withAadBasedSecurityPrincipals(List<AadBasedSecurityPrincipal> aadBasedSecurityPrincipals)
Set the aad |
Ledger |
withApplicationType(ApplicationType applicationType)
Set the application |
Ledger |
withCertBasedSecurityPrincipals(List<CertBasedSecurityPrincipal> certBasedSecurityPrincipals)
Set the cert |
Ledger |
withEnclavePlatform(EnclavePlatform enclavePlatform)
Set the enclave |
Ledger |
withHostLevel(String hostLevel)
Set the host |
Ledger |
withLedgerSku(LedgerSku ledgerSku)
Set the ledger |
Ledger |
withLedgerType(LedgerType ledgerType)
Set the ledger |
Ledger |
withMaxBodySizeInMb(Integer maxBodySizeInMb)
Set the max |
Ledger |
withNodeCount(Integer nodeCount)
Set the node |
Ledger |
withRunningState(RunningState runningState)
Set the running |
Ledger |
withSubjectName(String subjectName)
Set the subject |
Ledger |
withWorkerThreads(Integer workerThreads)
Set the worker |
Ledger |
withWriteLBAddressPrefix(String writeLBAddressPrefix)
Set the write |
Integer |
workerThreads()
Get the worker |
String |
writeLBAddressPrefix()
Get the write |
Methods inherited from java.lang.Object
Constructor Details
LedgerProperties
public LedgerProperties()
Creates an instance of LedgerProperties class.
Method Details
aadBasedSecurityPrincipals
public List<AadBasedSecurityPrincipal> aadBasedSecurityPrincipals()
Get the aadBasedSecurityPrincipals property: Array of all AAD based Security Principals.
Returns:
applicationType
public ApplicationType applicationType()
Get the applicationType property: Application type of the Confidential Ledger.
Returns:
certBasedSecurityPrincipals
public List<CertBasedSecurityPrincipal> certBasedSecurityPrincipals()
Get the certBasedSecurityPrincipals property: Array of all cert based Security Principals.
Returns:
enclavePlatform
public EnclavePlatform enclavePlatform()
Get the enclavePlatform property: Enclave platform of the Confidential Ledger.
Returns:
fromJson
public static LedgerProperties fromJson(JsonReader jsonReader)
Reads an instance of LedgerProperties from the JsonReader.
Parameters:
Returns:
Throws:
hostLevel
public String hostLevel()
Get the hostLevel property: CCF Property for the logging level for the untrusted host: Trace, Debug, Info, Fail, Fatal.
Returns:
identityServiceUri
public String identityServiceUri()
Get the identityServiceUri property: Endpoint for accessing network identity.
Returns:
ledgerInternalNamespace
public String ledgerInternalNamespace()
Get the ledgerInternalNamespace property: Internal namespace for the Ledger.
Returns:
ledgerName
public String ledgerName()
Get the ledgerName property: Unique name for the Confidential Ledger.
Returns:
ledgerSku
public LedgerSku ledgerSku()
Get the ledgerSku property: SKU associated with the ledger.
Returns:
ledgerType
public LedgerType ledgerType()
Get the ledgerType property: Type of Confidential Ledger.
Returns:
ledgerUri
public String ledgerUri()
Get the ledgerUri property: Endpoint for calling Ledger Service.
Returns:
maxBodySizeInMb
public Integer maxBodySizeInMb()
Get the maxBodySizeInMb property: CCF Property for the maximum size of the http request body: 1MB, 5MB, 10MB.
Returns:
nodeCount
public Integer nodeCount()
Get the nodeCount property: Number of CCF nodes in the ACC Ledger.
Returns:
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: Provisioning state of Ledger Resource.
Returns:
runningState
public RunningState runningState()
Get the runningState property: Object representing RunningState for Ledger.
Returns:
subjectName
public String subjectName()
Get the subjectName property: CCF Property for the subject name to include in the node certificate. Default: CN=CCF Node.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAadBasedSecurityPrincipals
public LedgerProperties withAadBasedSecurityPrincipals(List<AadBasedSecurityPrincipal> aadBasedSecurityPrincipals)
Set the aadBasedSecurityPrincipals property: Array of all AAD based Security Principals.
Parameters:
Returns:
withApplicationType
public LedgerProperties withApplicationType(ApplicationType applicationType)
Set the applicationType property: Application type of the Confidential Ledger.
Parameters:
Returns:
withCertBasedSecurityPrincipals
public LedgerProperties withCertBasedSecurityPrincipals(List<CertBasedSecurityPrincipal> certBasedSecurityPrincipals)
Set the certBasedSecurityPrincipals property: Array of all cert based Security Principals.
Parameters:
Returns:
withEnclavePlatform
public LedgerProperties withEnclavePlatform(EnclavePlatform enclavePlatform)
Set the enclavePlatform property: Enclave platform of the Confidential Ledger.
Parameters:
Returns:
withHostLevel
public LedgerProperties withHostLevel(String hostLevel)
Set the hostLevel property: CCF Property for the logging level for the untrusted host: Trace, Debug, Info, Fail, Fatal.
Parameters:
Returns:
withLedgerSku
public LedgerProperties withLedgerSku(LedgerSku ledgerSku)
Set the ledgerSku property: SKU associated with the ledger.
Parameters:
Returns:
withLedgerType
public LedgerProperties withLedgerType(LedgerType ledgerType)
Set the ledgerType property: Type of Confidential Ledger.
Parameters:
Returns:
withMaxBodySizeInMb
public LedgerProperties withMaxBodySizeInMb(Integer maxBodySizeInMb)
Set the maxBodySizeInMb property: CCF Property for the maximum size of the http request body: 1MB, 5MB, 10MB.
Parameters:
Returns:
withNodeCount
public LedgerProperties withNodeCount(Integer nodeCount)
Set the nodeCount property: Number of CCF nodes in the ACC Ledger.
Parameters:
Returns:
withRunningState
public LedgerProperties withRunningState(RunningState runningState)
Set the runningState property: Object representing RunningState for Ledger.
Parameters:
Returns:
withSubjectName
public LedgerProperties withSubjectName(String subjectName)
Set the subjectName property: CCF Property for the subject name to include in the node certificate. Default: CN=CCF Node.
Parameters:
Returns:
withWorkerThreads
public LedgerProperties withWorkerThreads(Integer workerThreads)
Set the workerThreads property: Number of additional threads processing incoming client requests in the enclave (modify with care!).
Parameters:
Returns:
withWriteLBAddressPrefix
public LedgerProperties withWriteLBAddressPrefix(String writeLBAddressPrefix)
Set the writeLBAddressPrefix property: Prefix for the write load balancer. Example: write.
Parameters:
Returns:
workerThreads
public Integer workerThreads()
Get the workerThreads property: Number of additional threads processing incoming client requests in the enclave (modify with care!).
Returns:
writeLBAddressPrefix
public String writeLBAddressPrefix()
Get the writeLBAddressPrefix property: Prefix for the write load balancer. Example: write.
Returns: