public static final class ImmutableCloudBuild.ImmutablePackageInfo extends Object implements CloudBuild.PackageInfo
CloudBuild.PackageInfo.
Use the builder to create immutable instances:
ImmutableCloudBuild.ImmutablePackageInfo.builder().
Use the static factory method to create immutable instances:
ImmutableCloudBuild.ImmutablePackageInfo.of().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableCloudBuild.ImmutablePackageInfo.Builder
Builds instances of type
ImmutablePackageInfo. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableCloudBuild.ImmutablePackageInfo.Builder |
builder()
Creates a builder for
ImmutablePackageInfo. |
static ImmutableCloudBuild.ImmutablePackageInfo |
copyOf(CloudBuild.PackageInfo instance)
Creates an immutable copy of a
CloudBuild.PackageInfo value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutablePackageInfo that have equal attribute values. |
UUID |
getGuid() |
int |
hashCode()
Computes a hash code from attributes:
guid. |
static ImmutableCloudBuild.ImmutablePackageInfo |
of(UUID guid)
Construct a new immutable
PackageInfo instance. |
String |
toString()
Prints the immutable value
PackageInfo with attribute values. |
ImmutableCloudBuild.ImmutablePackageInfo |
withGuid(UUID value)
Copy the current immutable object by setting a value for the
guid attribute. |
public UUID getGuid()
getGuid in interface CloudBuild.PackageInfoguid attributepublic final ImmutableCloudBuild.ImmutablePackageInfo withGuid(UUID value)
guid attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for guid (can be null)this objectpublic boolean equals(Object another)
ImmutablePackageInfo that have equal attribute values.public int hashCode()
guid.public String toString()
PackageInfo with attribute values.public static ImmutableCloudBuild.ImmutablePackageInfo of(UUID guid)
PackageInfo instance.guid - The value for the guid attributepublic static ImmutableCloudBuild.ImmutablePackageInfo copyOf(CloudBuild.PackageInfo instance)
CloudBuild.PackageInfo 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 ImmutableCloudBuild.ImmutablePackageInfo.Builder builder()
ImmutablePackageInfo.
ImmutableCloudBuild.ImmutablePackageInfo.builder()
.guid(UUID | null) // nullable guid
.build();
Copyright © 2020 SAP SE. All rights reserved.