Package com.oracle.bmc.dns.model
Class CreateTsigKeyDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.dns.model.CreateTsigKeyDetails.Builder
-
- Enclosing class:
- CreateTsigKeyDetails
public static class CreateTsigKeyDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateTsigKeyDetails.Builderalgorithm(String algorithm)TSIG key algorithms are encoded as domain names, but most consist of only one non-empty label, which is not required to be explicitly absolute.CreateTsigKeyDetailsbuild()CreateTsigKeyDetails.BuildercompartmentId(String compartmentId)The OCID of the compartment containing the TSIG key.CreateTsigKeyDetails.Buildercopy(CreateTsigKeyDetails model)CreateTsigKeyDetails.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.CreateTsigKeyDetails.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.CreateTsigKeyDetails.Buildername(String name)A globally unique domain name identifying the key for a given pair of hosts.CreateTsigKeyDetails.Buildersecret(String secret)A base64 string encoding the binary shared secret.
-
-
-
Method Detail
-
algorithm
public CreateTsigKeyDetails.Builder algorithm(String algorithm)
TSIG key algorithms are encoded as domain names, but most consist of only one non-empty label, which is not required to be explicitly absolute.Applicable algorithms include: hmac-sha1, hmac-sha224, hmac-sha256, hmac-sha512. For more information on these algorithms, see RFC 4635.
- Parameters:
algorithm- the value to set- Returns:
- this builder
-
name
public CreateTsigKeyDetails.Builder name(String name)
A globally unique domain name identifying the key for a given pair of hosts.- Parameters:
name- the value to set- Returns:
- this builder
-
compartmentId
public CreateTsigKeyDetails.Builder compartmentId(String compartmentId)
The OCID of the compartment containing the TSIG key.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
secret
public CreateTsigKeyDetails.Builder secret(String secret)
A base64 string encoding the binary shared secret.- Parameters:
secret- the value to set- Returns:
- this builder
-
freeformTags
public CreateTsigKeyDetails.Builder freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
**Example:** {"Department": "Finance"}
- Parameters:
freeformTags- the value to set- Returns:
- this builder
-
definedTags
public CreateTsigKeyDetails.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
**Example:** {"Operations": {"CostCenter": "42"}}
- Parameters:
definedTags- the value to set- Returns:
- this builder
-
build
public CreateTsigKeyDetails build()
-
copy
public CreateTsigKeyDetails.Builder copy(CreateTsigKeyDetails model)
-
-