@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableLocationBackupSummaryStats extends Object implements LocationBackupSummaryStats
LocationBackupSummaryStats
.
Use the builder to create immutable instances:
ImmutableLocationBackupSummaryStats.builder()
.
Modifier and Type | Class and Description |
---|---|
static class |
ImmutableLocationBackupSummaryStats.Builder
Builds instances of type
ImmutableLocationBackupSummaryStats . |
Modifier and Type | Method and Description |
---|---|
static ImmutableLocationBackupSummaryStats.Builder |
builder()
Creates a builder for
ImmutableLocationBackupSummaryStats . |
com.google.common.collect.ImmutableSet<CompanyLocationBackupSummaryStats> |
companyLocationStats()
The underlying company-location stats.
|
static ImmutableLocationBackupSummaryStats |
copyOf(LocationBackupSummaryStats instance)
Creates an immutable copy of a
LocationBackupSummaryStats value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableLocationBackupSummaryStats that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
locationId , stats , companyLocationStats . |
LocationId |
locationId()
The location ID.
|
SummaryStats |
stats()
The location summary stats.
|
String |
toString()
Prints the immutable value
LocationBackupSummaryStats with attribute values. |
ImmutableLocationBackupSummaryStats |
withCompanyLocationStats(CompanyLocationBackupSummaryStats... elements)
Copy the current immutable object with elements that replace the content of
companyLocationStats . |
ImmutableLocationBackupSummaryStats |
withCompanyLocationStats(Iterable<? extends CompanyLocationBackupSummaryStats> elements)
Copy the current immutable object with elements that replace the content of
companyLocationStats . |
ImmutableLocationBackupSummaryStats |
withLocationId(LocationId value)
Copy the current immutable object by setting a value for the
locationId attribute. |
ImmutableLocationBackupSummaryStats |
withStats(SummaryStats value)
Copy the current immutable object by setting a value for the
stats attribute. |
public LocationId locationId()
locationId
in interface LocationBackupSummaryStats
LocationId
public SummaryStats stats()
stats
in interface LocationBackupSummaryStats
SummaryStats
public com.google.common.collect.ImmutableSet<CompanyLocationBackupSummaryStats> companyLocationStats()
companyLocationStats
in interface LocationBackupSummaryStats
Set
of CompanyLocationBackupSummaryStats
public final ImmutableLocationBackupSummaryStats withLocationId(LocationId value)
locationId
attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this
.value
- A new value for locationIdthis
objectpublic final ImmutableLocationBackupSummaryStats withStats(SummaryStats value)
stats
attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this
.value
- A new value for statsthis
objectpublic final ImmutableLocationBackupSummaryStats withCompanyLocationStats(CompanyLocationBackupSummaryStats... elements)
companyLocationStats
.elements
- The elements to setthis
objectpublic final ImmutableLocationBackupSummaryStats withCompanyLocationStats(Iterable<? extends CompanyLocationBackupSummaryStats> elements)
companyLocationStats
.
A shallow reference equality check is used to prevent copying of the same value by returning this
.elements
- An iterable of companyLocationStats elements to setthis
objectpublic boolean equals(@Nullable Object another)
ImmutableLocationBackupSummaryStats
that have equal attribute values.public int hashCode()
locationId
, stats
, companyLocationStats
.public String toString()
LocationBackupSummaryStats
with attribute values.public static ImmutableLocationBackupSummaryStats copyOf(LocationBackupSummaryStats instance)
LocationBackupSummaryStats
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 ImmutableLocationBackupSummaryStats.Builder builder()
ImmutableLocationBackupSummaryStats
.
ImmutableLocationBackupSummaryStats.builder() .locationId(com.iland.cohesity.iaas.backups.common.model.LocationId) // requiredlocationId
.stats(com.iland.cohesity.iaas.backups.common.model.SummaryStats) // requiredstats
.addCompanyLocationStats|addAllCompanyLocationStats(com.iland.cohesity.iaas.backups.backupgroups.api.model.CompanyLocationBackupSummaryStats) //companyLocationStats
elements .build();
Copyright © 2023 iland Internet Solutions, Corp. All rights reserved.