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
      • 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)
        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
      • 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