Freigeben über


LedgerProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.confidentialledger.models.LedgerProperties

Implements

public final class LedgerProperties
implements JsonSerializable<LedgerProperties>

LedgerProperties Additional Confidential Ledger properties.

Constructor Summary

Constructor Description
LedgerProperties()

Creates an instance of LedgerProperties class.

Method Summary

Modifier and Type Method and Description
List<AadBasedSecurityPrincipal> aadBasedSecurityPrincipals()

Get the aadBasedSecurityPrincipals property: Array of all AAD based Security Principals.

ApplicationType applicationType()

Get the applicationType property: Application type of the Confidential Ledger.

List<CertBasedSecurityPrincipal> certBasedSecurityPrincipals()

Get the certBasedSecurityPrincipals property: Array of all cert based Security Principals.

EnclavePlatform enclavePlatform()

Get the enclavePlatform property: Enclave platform of the Confidential Ledger.

static LedgerProperties fromJson(JsonReader jsonReader)

Reads an instance of LedgerProperties from the JsonReader.

String hostLevel()

Get the hostLevel property: CCF Property for the logging level for the untrusted host: Trace, Debug, Info, Fail, Fatal.

String identityServiceUri()

Get the identityServiceUri property: Endpoint for accessing network identity.

String ledgerInternalNamespace()

Get the ledgerInternalNamespace property: Internal namespace for the Ledger.

String ledgerName()

Get the ledgerName property: Unique name for the Confidential Ledger.

LedgerSku ledgerSku()

Get the ledgerSku property: SKU associated with the ledger.

LedgerType ledgerType()

Get the ledgerType property: Type of Confidential Ledger.

String ledgerUri()

Get the ledgerUri property: Endpoint for calling Ledger Service.

Integer maxBodySizeInMb()

Get the maxBodySizeInMb property: CCF Property for the maximum size of the http request body: 1MB, 5MB, 10MB.

Integer nodeCount()

Get the nodeCount property: Number of CCF nodes in the ACC Ledger.

ProvisioningState provisioningState()

Get the provisioningState property: Provisioning state of Ledger Resource.

RunningState runningState()

Get the runningState property: Object representing RunningState for Ledger.

String subjectName()

Get the subjectName property: CCF Property for the subject name to include in the node certificate.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

LedgerProperties withAadBasedSecurityPrincipals(List<AadBasedSecurityPrincipal> aadBasedSecurityPrincipals)

Set the aadBasedSecurityPrincipals property: Array of all AAD based Security Principals.

LedgerProperties withApplicationType(ApplicationType applicationType)

Set the applicationType property: Application type of the Confidential Ledger.

LedgerProperties withCertBasedSecurityPrincipals(List<CertBasedSecurityPrincipal> certBasedSecurityPrincipals)

Set the certBasedSecurityPrincipals property: Array of all cert based Security Principals.

LedgerProperties withEnclavePlatform(EnclavePlatform enclavePlatform)

Set the enclavePlatform property: Enclave platform of the Confidential Ledger.

LedgerProperties withHostLevel(String hostLevel)

Set the hostLevel property: CCF Property for the logging level for the untrusted host: Trace, Debug, Info, Fail, Fatal.

LedgerProperties withLedgerSku(LedgerSku ledgerSku)

Set the ledgerSku property: SKU associated with the ledger.

LedgerProperties withLedgerType(LedgerType ledgerType)

Set the ledgerType property: Type of Confidential Ledger.

LedgerProperties withMaxBodySizeInMb(Integer maxBodySizeInMb)

Set the maxBodySizeInMb property: CCF Property for the maximum size of the http request body: 1MB, 5MB, 10MB.

LedgerProperties withNodeCount(Integer nodeCount)

Set the nodeCount property: Number of CCF nodes in the ACC Ledger.

LedgerProperties withRunningState(RunningState runningState)

Set the runningState property: Object representing RunningState for Ledger.

LedgerProperties withSubjectName(String subjectName)

Set the subjectName property: CCF Property for the subject name to include in the node certificate.

LedgerProperties withWorkerThreads(Integer workerThreads)

Set the workerThreads property: Number of additional threads processing incoming client requests in the enclave (modify with care!).

LedgerProperties withWriteLBAddressPrefix(String writeLBAddressPrefix)

Set the writeLBAddressPrefix property: Prefix for the write load balancer.

Integer workerThreads()

Get the workerThreads property: Number of additional threads processing incoming client requests in the enclave (modify with care!).

String writeLBAddressPrefix()

Get the writeLBAddressPrefix property: Prefix for the write load balancer.

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:

the aadBasedSecurityPrincipals value.

applicationType

public ApplicationType applicationType()

Get the applicationType property: Application type of the Confidential Ledger.

Returns:

the applicationType value.

certBasedSecurityPrincipals

public List<CertBasedSecurityPrincipal> certBasedSecurityPrincipals()

Get the certBasedSecurityPrincipals property: Array of all cert based Security Principals.

Returns:

the certBasedSecurityPrincipals value.

enclavePlatform

public EnclavePlatform enclavePlatform()

Get the enclavePlatform property: Enclave platform of the Confidential Ledger.

Returns:

the enclavePlatform value.

fromJson

public static LedgerProperties fromJson(JsonReader jsonReader)

Reads an instance of LedgerProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of LedgerProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the LedgerProperties.

hostLevel

public String hostLevel()

Get the hostLevel property: CCF Property for the logging level for the untrusted host: Trace, Debug, Info, Fail, Fatal.

Returns:

the hostLevel value.

identityServiceUri

public String identityServiceUri()

Get the identityServiceUri property: Endpoint for accessing network identity.

Returns:

the identityServiceUri value.

ledgerInternalNamespace

public String ledgerInternalNamespace()

Get the ledgerInternalNamespace property: Internal namespace for the Ledger.

Returns:

the ledgerInternalNamespace value.

ledgerName

public String ledgerName()

Get the ledgerName property: Unique name for the Confidential Ledger.

Returns:

the ledgerName value.

ledgerSku

public LedgerSku ledgerSku()

Get the ledgerSku property: SKU associated with the ledger.

Returns:

the ledgerSku value.

ledgerType

public LedgerType ledgerType()

Get the ledgerType property: Type of Confidential Ledger.

Returns:

the ledgerType value.

ledgerUri

public String ledgerUri()

Get the ledgerUri property: Endpoint for calling Ledger Service.

Returns:

the ledgerUri value.

maxBodySizeInMb

public Integer maxBodySizeInMb()

Get the maxBodySizeInMb property: CCF Property for the maximum size of the http request body: 1MB, 5MB, 10MB.

Returns:

the maxBodySizeInMb value.

nodeCount

public Integer nodeCount()

Get the nodeCount property: Number of CCF nodes in the ACC Ledger.

Returns:

the nodeCount value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: Provisioning state of Ledger Resource.

Returns:

the provisioningState value.

runningState

public RunningState runningState()

Get the runningState property: Object representing RunningState for Ledger.

Returns:

the runningState value.

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:

the subjectName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

aadBasedSecurityPrincipals - the aadBasedSecurityPrincipals value to set.

Returns:

the LedgerProperties object itself.

withApplicationType

public LedgerProperties withApplicationType(ApplicationType applicationType)

Set the applicationType property: Application type of the Confidential Ledger.

Parameters:

applicationType - the applicationType value to set.

Returns:

the LedgerProperties object itself.

withCertBasedSecurityPrincipals

public LedgerProperties withCertBasedSecurityPrincipals(List<CertBasedSecurityPrincipal> certBasedSecurityPrincipals)

Set the certBasedSecurityPrincipals property: Array of all cert based Security Principals.

Parameters:

certBasedSecurityPrincipals - the certBasedSecurityPrincipals value to set.

Returns:

the LedgerProperties object itself.

withEnclavePlatform

public LedgerProperties withEnclavePlatform(EnclavePlatform enclavePlatform)

Set the enclavePlatform property: Enclave platform of the Confidential Ledger.

Parameters:

enclavePlatform - the enclavePlatform value to set.

Returns:

the LedgerProperties object itself.

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:

hostLevel - the hostLevel value to set.

Returns:

the LedgerProperties object itself.

withLedgerSku

public LedgerProperties withLedgerSku(LedgerSku ledgerSku)

Set the ledgerSku property: SKU associated with the ledger.

Parameters:

ledgerSku - the ledgerSku value to set.

Returns:

the LedgerProperties object itself.

withLedgerType

public LedgerProperties withLedgerType(LedgerType ledgerType)

Set the ledgerType property: Type of Confidential Ledger.

Parameters:

ledgerType - the ledgerType value to set.

Returns:

the LedgerProperties object itself.

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:

maxBodySizeInMb - the maxBodySizeInMb value to set.

Returns:

the LedgerProperties object itself.

withNodeCount

public LedgerProperties withNodeCount(Integer nodeCount)

Set the nodeCount property: Number of CCF nodes in the ACC Ledger.

Parameters:

nodeCount - the nodeCount value to set.

Returns:

the LedgerProperties object itself.

withRunningState

public LedgerProperties withRunningState(RunningState runningState)

Set the runningState property: Object representing RunningState for Ledger.

Parameters:

runningState - the runningState value to set.

Returns:

the LedgerProperties object itself.

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:

subjectName - the subjectName value to set.

Returns:

the LedgerProperties object itself.

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:

workerThreads - the workerThreads value to set.

Returns:

the LedgerProperties object itself.

withWriteLBAddressPrefix

public LedgerProperties withWriteLBAddressPrefix(String writeLBAddressPrefix)

Set the writeLBAddressPrefix property: Prefix for the write load balancer. Example: write.

Parameters:

writeLBAddressPrefix - the writeLBAddressPrefix value to set.

Returns:

the LedgerProperties object itself.

workerThreads

public Integer workerThreads()

Get the workerThreads property: Number of additional threads processing incoming client requests in the enclave (modify with care!).

Returns:

the workerThreads value.

writeLBAddressPrefix

public String writeLBAddressPrefix()

Get the writeLBAddressPrefix property: Prefix for the write load balancer. Example: write.

Returns:

the writeLBAddressPrefix value.

Applies to