Class TsigKey.Builder

  • Enclosing class:
    TsigKey

    public static class TsigKey.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • algorithm

        public TsigKey.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 TsigKey.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 TsigKey.Builder compartmentId​(String compartmentId)
        The OCID of the compartment containing the TSIG key.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • secret

        public TsigKey.Builder secret​(String secret)
        A base64 string encoding the binary shared secret.
        Parameters:
        secret - the value to set
        Returns:
        this builder
      • freeformTags

        public TsigKey.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 TsigKey.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
      • id

        public TsigKey.Builder id​(String id)
        The OCID of the resource.
        Parameters:
        id - the value to set
        Returns:
        this builder
      • self

        public TsigKey.Builder self​(String self)
        The canonical absolute URL of the resource.
        Parameters:
        self - the value to set
        Returns:
        this builder
      • timeCreated

        public TsigKey.Builder timeCreated​(Date timeCreated)
        The date and time the resource was created, expressed in RFC 3339 timestamp format.

        *Example:** 2016-07-22T17:23:59:60Z

        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • lifecycleState

        public TsigKey.Builder lifecycleState​(TsigKey.LifecycleState lifecycleState)
        The current state of the resource.
        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder
      • timeUpdated

        public TsigKey.Builder timeUpdated​(Date timeUpdated)
        The date and time the resource was last updated, expressed in RFC 3339 timestamp format.

        *Example:** 2016-07-22T17:23:59:60Z

        Parameters:
        timeUpdated - the value to set
        Returns:
        this builder