Class ImmutableSecurityGroupRule.Builder

  • Enclosing class:
    ImmutableSecurityGroupRule

    public static final class ImmutableSecurityGroupRule.Builder
    extends Object
    Builds instances of type ImmutableSecurityGroupRule. Initialize attributes and then invoke the build() method to create an immutable instance.

    Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

    • Method Detail

      • from

        public final ImmutableSecurityGroupRule.Builder from​(SecurityGroupRule instance)
        Fill a builder with attribute values from the provided SecurityGroupRule instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • protocol

        public final ImmutableSecurityGroupRule.Builder protocol​(String protocol)
        Initializes the value for the protocol attribute.
        Parameters:
        protocol - The value for protocol
        Returns:
        this builder for use in a chained invocation
      • destination

        public final ImmutableSecurityGroupRule.Builder destination​(String destination)
        Initializes the value for the destination attribute.
        Parameters:
        destination - The value for destination
        Returns:
        this builder for use in a chained invocation
      • log

        public final ImmutableSecurityGroupRule.Builder log​(Boolean log)
        Initializes the value for the log attribute.
        Parameters:
        log - The value for log (can be null)
        Returns:
        this builder for use in a chained invocation
      • type

        public final ImmutableSecurityGroupRule.Builder type​(Integer type)
        Initializes the value for the type attribute.
        Parameters:
        type - The value for type (can be null)
        Returns:
        this builder for use in a chained invocation
      • code

        public final ImmutableSecurityGroupRule.Builder code​(Integer code)
        Initializes the value for the code attribute.
        Parameters:
        code - The value for code (can be null)
        Returns:
        this builder for use in a chained invocation