Class UpdateServiceGatewayDetails.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • blockTraffic

        public UpdateServiceGatewayDetails.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
      • definedTags

        public UpdateServiceGatewayDetails.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 UpdateServiceGatewayDetails.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 UpdateServiceGatewayDetails.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 UpdateServiceGatewayDetails.Builder services​(List<ServiceIdRequestDetails> services)
        List of all the Service objects you want enabled on this service gateway.

        Sending an empty list means you want to disable all services. Omitting this parameter entirely keeps the existing list of services intact.

        You can also enable or disable a particular Service by using attachServiceId or detachServiceId.

        For each enabled Service, make sure there's a route rule with the Service object's cidrBlock as the rule's destination and the service gateway as the rule's target. See RouteTable.

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