@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableCloudSecurityGroup extends Object implements CloudSecurityGroup
CloudSecurityGroup.
Use the builder to create immutable instances:
ImmutableCloudSecurityGroup.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableCloudSecurityGroup.Builder
Builds instances of type
ImmutableCloudSecurityGroup. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableCloudSecurityGroup.Builder |
builder()
Creates a builder for
ImmutableCloudSecurityGroup. |
static ImmutableCloudSecurityGroup |
copyOf(CloudSecurityGroup instance)
Creates an immutable copy of a
CloudSecurityGroup value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableCloudSecurityGroup that have equal attribute values. |
CloudMetadata |
getMetadata() |
String |
getName() |
List<SecurityGroupRule> |
getRules() |
org.cloudfoundry.client.v3.Metadata |
getV3Metadata() |
int |
hashCode()
Computes a hash code from attributes:
name, metadata, v3Metadata, rules, isRunningDefault, isStagingDefault. |
Boolean |
isRunningDefault() |
Boolean |
isStagingDefault() |
String |
toString()
Prints the immutable value
CloudSecurityGroup with attribute values. |
ImmutableCloudSecurityGroup |
withIsRunningDefault(Boolean value)
Copy the current immutable object by setting a value for the
isRunningDefault attribute. |
ImmutableCloudSecurityGroup |
withIsStagingDefault(Boolean value)
Copy the current immutable object by setting a value for the
isStagingDefault attribute. |
ImmutableCloudSecurityGroup |
withMetadata(CloudMetadata value)
Copy the current immutable object by setting a value for the
metadata attribute. |
ImmutableCloudSecurityGroup |
withName(String value)
Copy the current immutable object by setting a value for the
name attribute. |
ImmutableCloudSecurityGroup |
withRules(Iterable<? extends SecurityGroupRule> elements)
Copy the current immutable object with elements that replace the content of
rules. |
ImmutableCloudSecurityGroup |
withRules(SecurityGroupRule... elements)
Copy the current immutable object with elements that replace the content of
rules. |
ImmutableCloudSecurityGroup |
withV3Metadata(org.cloudfoundry.client.v3.Metadata value)
Copy the current immutable object by setting a value for the
v3Metadata attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitderivepublic String getName()
getName in interface CloudEntityname attributepublic CloudMetadata getMetadata()
getMetadata in interface CloudEntitymetadata attributepublic org.cloudfoundry.client.v3.Metadata getV3Metadata()
getV3Metadata in interface CloudEntityv3Metadata attributepublic List<SecurityGroupRule> getRules()
getRules in interface CloudSecurityGrouprules attributepublic Boolean isRunningDefault()
isRunningDefault in interface CloudSecurityGroupisRunningDefault attributepublic Boolean isStagingDefault()
isStagingDefault in interface CloudSecurityGroupisStagingDefault attributepublic final ImmutableCloudSecurityGroup withName(String value)
name attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for name (can be null)this objectpublic final ImmutableCloudSecurityGroup withMetadata(CloudMetadata value)
metadata attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for metadata (can be null)this objectpublic final ImmutableCloudSecurityGroup withV3Metadata(org.cloudfoundry.client.v3.Metadata value)
v3Metadata attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for v3Metadata (can be null)this objectpublic final ImmutableCloudSecurityGroup withRules(SecurityGroupRule... elements)
rules.elements - The elements to setthis objectpublic final ImmutableCloudSecurityGroup withRules(Iterable<? extends SecurityGroupRule> elements)
rules.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of rules elements to setthis objectpublic final ImmutableCloudSecurityGroup withIsRunningDefault(Boolean value)
isRunningDefault attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for isRunningDefault (can be null)this objectpublic final ImmutableCloudSecurityGroup withIsStagingDefault(Boolean value)
isStagingDefault attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for isStagingDefault (can be null)this objectpublic boolean equals(Object another)
ImmutableCloudSecurityGroup that have equal attribute values.public int hashCode()
name, metadata, v3Metadata, rules, isRunningDefault, isStagingDefault.public String toString()
CloudSecurityGroup with attribute values.public static ImmutableCloudSecurityGroup copyOf(CloudSecurityGroup instance)
CloudSecurityGroup 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 ImmutableCloudSecurityGroup.Builder builder()
ImmutableCloudSecurityGroup.
ImmutableCloudSecurityGroup.builder()
.name(String | null) // nullable name
.metadata(org.cloudfoundry.client.lib.domain.CloudMetadata | null) // nullable metadata
.v3Metadata(org.cloudfoundry.client.v3.Metadata | null) // nullable v3Metadata
.addRule|addAllRules(org.cloudfoundry.client.lib.domain.SecurityGroupRule) // rules elements
.isRunningDefault(Boolean | null) // nullable isRunningDefault
.isStagingDefault(Boolean | null) // nullable isStagingDefault
.build();
Copyright © 2020 SAP SE. All rights reserved.