public static final class AcqSpecsTypes.CreateSpec.Builder
extends java.lang.Object
AcqSpecsTypes.CreateSpec
.Constructor and Description |
---|
Builder(AcqSpecsTypes.CounterSpec counters,
java.util.List<RsrcId> resources)
Constructor with parameters for the required properties of
AcqSpecsTypes.CreateSpec . |
Modifier and Type | Method and Description |
---|---|
AcqSpecsTypes.CreateSpec |
build() |
AcqSpecsTypes.CreateSpec.Builder |
setExpiration(java.lang.Long expiration)
Expiration time for this acquisition specification in Unix UTC number of seconds
(since epoch).
|
AcqSpecsTypes.CreateSpec.Builder |
setInterval(java.lang.Long interval)
Desired sampling rate in seconds.
|
AcqSpecsTypes.CreateSpec.Builder |
setMemo_(java.lang.String memo_)
Consumer provided text about this acquisition specification.
|
public Builder(AcqSpecsTypes.CounterSpec counters, java.util.List<RsrcId> resources)
AcqSpecsTypes.CreateSpec
.public AcqSpecsTypes.CreateSpec.Builder setInterval(java.lang.Long interval)
null
default of 10s will be used.interval
- New value for the property.public AcqSpecsTypes.CreateSpec.Builder setExpiration(java.lang.Long expiration)
null
or 0, default expiration duration is 100
minutes.expiration
- New value for the property.public AcqSpecsTypes.CreateSpec.Builder setMemo_(java.lang.String memo_)
null
default empty string will be used.memo_
- New value for the property.public AcqSpecsTypes.CreateSpec build()