@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableSecurityGroupRule extends Object implements SecurityGroupRule
SecurityGroupRule.
Use the builder to create immutable instances:
ImmutableSecurityGroupRule.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableSecurityGroupRule.Builder
Builds instances of type
ImmutableSecurityGroupRule. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableSecurityGroupRule.Builder |
builder()
Creates a builder for
ImmutableSecurityGroupRule. |
static ImmutableSecurityGroupRule |
copyOf(SecurityGroupRule instance)
Creates an immutable copy of a
SecurityGroupRule value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableSecurityGroupRule that have equal attribute values. |
Integer |
getCode() |
String |
getDestination() |
Boolean |
getLog() |
String |
getPorts() |
String |
getProtocol() |
Integer |
getType() |
int |
hashCode()
Computes a hash code from attributes:
protocol, ports, destination, log, type, code. |
String |
toString()
Prints the immutable value
SecurityGroupRule with attribute values. |
ImmutableSecurityGroupRule |
withCode(Integer value)
Copy the current immutable object by setting a value for the
code attribute. |
ImmutableSecurityGroupRule |
withDestination(String value)
Copy the current immutable object by setting a value for the
destination attribute. |
ImmutableSecurityGroupRule |
withLog(Boolean value)
Copy the current immutable object by setting a value for the
log attribute. |
ImmutableSecurityGroupRule |
withPorts(String value)
Copy the current immutable object by setting a value for the
ports attribute. |
ImmutableSecurityGroupRule |
withProtocol(String value)
Copy the current immutable object by setting a value for the
protocol attribute. |
ImmutableSecurityGroupRule |
withType(Integer value)
Copy the current immutable object by setting a value for the
type attribute. |
public String getProtocol()
getProtocol in interface SecurityGroupRuleprotocol attributepublic String getPorts()
getPorts in interface SecurityGroupRuleports attributepublic String getDestination()
getDestination in interface SecurityGroupRuledestination attributepublic Boolean getLog()
getLog in interface SecurityGroupRulelog attributepublic Integer getType()
getType in interface SecurityGroupRuletype attributepublic Integer getCode()
getCode in interface SecurityGroupRulecode attributepublic final ImmutableSecurityGroupRule withProtocol(String value)
protocol attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for protocolthis objectpublic final ImmutableSecurityGroupRule withPorts(String value)
ports attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for portsthis objectpublic final ImmutableSecurityGroupRule withDestination(String value)
destination attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for destinationthis objectpublic final ImmutableSecurityGroupRule withLog(Boolean value)
log attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for log (can be null)this objectpublic final ImmutableSecurityGroupRule withType(Integer value)
type attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for type (can be null)this objectpublic final ImmutableSecurityGroupRule withCode(Integer value)
code attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for code (can be null)this objectpublic boolean equals(Object another)
ImmutableSecurityGroupRule that have equal attribute values.public int hashCode()
protocol, ports, destination, log, type, code.public String toString()
SecurityGroupRule with attribute values.public static ImmutableSecurityGroupRule copyOf(SecurityGroupRule instance)
SecurityGroupRule value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableSecurityGroupRule.Builder builder()
ImmutableSecurityGroupRule.
ImmutableSecurityGroupRule.builder()
.protocol(String) // required protocol
.ports(String) // required ports
.destination(String) // required destination
.log(Boolean | null) // nullable log
.type(Integer | null) // nullable type
.code(Integer | null) // nullable code
.build();
Copyright © 2020 SAP SE. All rights reserved.