Interface UpdateProxyRuleResponse.Builder

  • Method Details

    • proxyRule

      The updated proxy rule resource that reflects the updates from the request.

      Parameters:
      proxyRule - The updated proxy rule resource that reflects the updates from the request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • proxyRule

      The updated proxy rule resource that reflects the updates from the request.

      This is a convenience method that creates an instance of the ProxyRule.Builder avoiding the need to create one manually via ProxyRule.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to proxyRule(ProxyRule).

      Parameters:
      proxyRule - a consumer that will call methods on ProxyRule.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • removedConditions

      UpdateProxyRuleResponse.Builder removedConditions(Collection<ProxyRuleCondition> removedConditions)

      Proxy rule conditions removed from the rule.

      Parameters:
      removedConditions - Proxy rule conditions removed from the rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • removedConditions

      UpdateProxyRuleResponse.Builder removedConditions(ProxyRuleCondition... removedConditions)

      Proxy rule conditions removed from the rule.

      Parameters:
      removedConditions - Proxy rule conditions removed from the rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • removedConditions

      UpdateProxyRuleResponse.Builder removedConditions(Consumer<ProxyRuleCondition.Builder>... removedConditions)

      Proxy rule conditions removed from the rule.

      This is a convenience method that creates an instance of the ProxyRuleCondition.Builder avoiding the need to create one manually via ProxyRuleCondition.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to removedConditions(List<ProxyRuleCondition>).

      Parameters:
      removedConditions - a consumer that will call methods on ProxyRuleCondition.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • updateToken

      UpdateProxyRuleResponse.Builder updateToken(String updateToken)

      A token used for optimistic locking. Network Firewall returns a token to your requests that access the proxy rule. The token marks the state of the proxy rule resource at the time of the request.

      To make changes to the proxy rule, you provide the token in your request. Network Firewall uses the token to ensure that the proxy rule hasn't changed since you last retrieved it. If it has changed, the operation fails with an InvalidTokenException. If this happens, retrieve the proxy rule again to get a current copy of it with a current token. Reapply your changes as needed, then try the operation again using the new token.

      Parameters:
      updateToken - A token used for optimistic locking. Network Firewall returns a token to your requests that access the proxy rule. The token marks the state of the proxy rule resource at the time of the request.

      To make changes to the proxy rule, you provide the token in your request. Network Firewall uses the token to ensure that the proxy rule hasn't changed since you last retrieved it. If it has changed, the operation fails with an InvalidTokenException. If this happens, retrieve the proxy rule again to get a current copy of it with a current token. Reapply your changes as needed, then try the operation again using the new token.

      Returns:
      Returns a reference to this object so that method calls can be chained together.