Class ServiceGateway.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • blockTraffic

        public ServiceGateway.Builder blockTraffic​(Boolean blockTraffic)
        Whether the service gateway blocks all traffic through it.

        The default is false. When this is true, traffic is not routed to any services, regardless of route rules.

        Example: true

        Parameters:
        blockTraffic - the value to set
        Returns:
        this builder
      • compartmentId

        public ServiceGateway.Builder compartmentId​(String compartmentId)
        The OCID of the compartment that contains the service gateway.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • definedTags

        public ServiceGateway.Builder definedTags​(Map<String,​Map<String,​Object>> definedTags)
        Defined tags for this resource.

        Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}

        Parameters:
        definedTags - the value to set
        Returns:
        this builder
      • displayName

        public ServiceGateway.Builder displayName​(String displayName)
        A user-friendly name.

        Does not have to be unique, and it’s changeable. Avoid entering confidential information.

        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • freeformTags

        public ServiceGateway.Builder freeformTags​(Map<String,​String> freeformTags)
        Simple key-value pair that is applied without any predefined name, type or scope.

        Exists for cross-compatibility only. Example: {“bar-key”: “value”}

        Parameters:
        freeformTags - the value to set
        Returns:
        this builder
      • services

        public ServiceGateway.Builder services​(List<ServiceIdResponseDetails> services)
        List of the Service objects enabled for this service gateway.

        The list can be empty. You can enable a particular Service by using attachServiceId or updateServiceGateway.

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

        public ServiceGateway.Builder timeCreated​(Date timeCreated)
        The date and time the service gateway was created, in the format defined by RFC3339.

        Example: 2016-08-25T21:10:29.600Z

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

        public ServiceGateway.Builder vcnId​(String vcnId)
        The OCID of the VCN the service gateway belongs to.
        Parameters:
        vcnId - the value to set
        Returns:
        this builder