Class NetworkACLRulePatch.Builder

java.lang.Object
com.ibm.cloud.is.vpc.v1.model.NetworkACLRulePatch.Builder
Enclosing class:
NetworkACLRulePatch

public static class NetworkACLRulePatch.Builder extends Object
Builder.
  • Constructor Details

    • Builder

      public Builder()
      Instantiates a new builder.
  • Method Details

    • build

      public NetworkACLRulePatch build()
      Builds a NetworkACLRulePatch.
      Returns:
      the new NetworkACLRulePatch instance
    • action

      public NetworkACLRulePatch.Builder action(String action)
      Set the action.
      Parameters:
      action - the action
      Returns:
      the NetworkACLRulePatch builder
    • before

      Set the before.
      Parameters:
      before - the before
      Returns:
      the NetworkACLRulePatch builder
    • code

      public NetworkACLRulePatch.Builder code(long code)
      Set the code.
      Parameters:
      code - the code
      Returns:
      the NetworkACLRulePatch builder
    • destination

      public NetworkACLRulePatch.Builder destination(String destination)
      Set the destination.
      Parameters:
      destination - the destination
      Returns:
      the NetworkACLRulePatch builder
    • destinationPortMax

      public NetworkACLRulePatch.Builder destinationPortMax(long destinationPortMax)
      Set the destinationPortMax.
      Parameters:
      destinationPortMax - the destinationPortMax
      Returns:
      the NetworkACLRulePatch builder
    • destinationPortMin

      public NetworkACLRulePatch.Builder destinationPortMin(long destinationPortMin)
      Set the destinationPortMin.
      Parameters:
      destinationPortMin - the destinationPortMin
      Returns:
      the NetworkACLRulePatch builder
    • direction

      public NetworkACLRulePatch.Builder direction(String direction)
      Set the direction.
      Parameters:
      direction - the direction
      Returns:
      the NetworkACLRulePatch builder
    • name

      public NetworkACLRulePatch.Builder name(String name)
      Set the name.
      Parameters:
      name - the name
      Returns:
      the NetworkACLRulePatch builder
    • source

      public NetworkACLRulePatch.Builder source(String source)
      Set the source.
      Parameters:
      source - the source
      Returns:
      the NetworkACLRulePatch builder
    • sourcePortMax

      public NetworkACLRulePatch.Builder sourcePortMax(long sourcePortMax)
      Set the sourcePortMax.
      Parameters:
      sourcePortMax - the sourcePortMax
      Returns:
      the NetworkACLRulePatch builder
    • sourcePortMin

      public NetworkACLRulePatch.Builder sourcePortMin(long sourcePortMin)
      Set the sourcePortMin.
      Parameters:
      sourcePortMin - the sourcePortMin
      Returns:
      the NetworkACLRulePatch builder
    • type

      public NetworkACLRulePatch.Builder type(long type)
      Set the type.
      Parameters:
      type - the type
      Returns:
      the NetworkACLRulePatch builder