Class ImmutableApplicationLogsResponse.Builder
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.adapters.ImmutableApplicationLogsResponse.Builder
-
- Enclosing class:
- ImmutableApplicationLogsResponse
public static final class ImmutableApplicationLogsResponse.Builder extends Object
Builds instances of typeImmutableApplicationLogsResponse. Initialize attributes and then invoke thebuild()method to create an immutable instance.Builderis not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImmutableApplicationLogsResponse.BuilderaddAllLogs(Iterable<? extends ApplicationLogEntity> elements)Adds elements tologslist.ImmutableApplicationLogsResponse.BuilderaddLog(ApplicationLogEntity element)Adds one element tologslist.ImmutableApplicationLogsResponse.BuilderaddLogs(ApplicationLogEntity... elements)Adds elements tologslist.ImmutableApplicationLogsResponsebuild()Builds a newImmutableApplicationLogsResponse.ImmutableApplicationLogsResponse.Builderfrom(ApplicationLogsResponse instance)Fill a builder with attribute values from the providedApplicationLogsResponseinstance.ImmutableApplicationLogsResponse.Builderlogs(Iterable<? extends ApplicationLogEntity> elements)Sets or replaces all elements forlogslist.
-
-
-
Method Detail
-
from
public final ImmutableApplicationLogsResponse.Builder from(ApplicationLogsResponse instance)
Fill a builder with attribute values from the providedApplicationLogsResponseinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
addLog
public final ImmutableApplicationLogsResponse.Builder addLog(ApplicationLogEntity element)
Adds one element tologslist.- Parameters:
element- A logs element- Returns:
thisbuilder for use in a chained invocation
-
addLogs
public final ImmutableApplicationLogsResponse.Builder addLogs(ApplicationLogEntity... elements)
Adds elements tologslist.- Parameters:
elements- An array of logs elements- Returns:
thisbuilder for use in a chained invocation
-
logs
public final ImmutableApplicationLogsResponse.Builder logs(Iterable<? extends ApplicationLogEntity> elements)
Sets or replaces all elements forlogslist.- Parameters:
elements- An iterable of logs elements- Returns:
thisbuilder for use in a chained invocation
-
addAllLogs
public final ImmutableApplicationLogsResponse.Builder addAllLogs(Iterable<? extends ApplicationLogEntity> elements)
Adds elements tologslist.- Parameters:
elements- An iterable of logs elements- Returns:
thisbuilder for use in a chained invocation
-
build
public ImmutableApplicationLogsResponse build()
Builds a newImmutableApplicationLogsResponse.- Returns:
- An immutable instance of ApplicationLogsResponse
- Throws:
IllegalStateException- if any required attributes are missing
-
-