Package com.amazon.A3L.location
Class A3LLastLocationRequest.Builder
- java.lang.Object
-
- com.amazon.A3L.location.A3LLastLocationRequest.Builder
-
- Enclosing class:
- A3LLastLocationRequest
public static final class A3LLastLocationRequest.Builder extends java.lang.ObjectBuilder forA3LLastLocationRequest.
-
-
Constructor Summary
Constructors Constructor Description Builder()Constructs a new builder with default values.Builder(A3LLastLocationRequest request)Constructs a new builder with values copied from the givenA3LLastLocationRequest
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description A3LLastLocationRequestbuild()Builds a newA3LLastLocationRequest.A3LLastLocationRequest.BuildersetGranularity(int granularity)Sets the Granularity of locations returned for this request.A3LLastLocationRequest.BuildersetMaxUpdateAgeMillis(long maxUpdateAgeMillis)Sets the maximum age of any location returned for this request.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructs a new builder with default values.
-
Builder
public Builder(@NonNull A3LLastLocationRequest request)Constructs a new builder with values copied from the givenA3LLastLocationRequest- Parameters:
request- :A3LLastLocationRequestobject to copy values.
-
-
Method Detail
-
setGranularity
@NonNull public A3LLastLocationRequest.Builder setGranularity(int granularity)
Sets the Granularity of locations returned for this request. This controls whether fine or coarse locations may be returned.The default value is A3LGranularity.GRANULARITY_PERMISSION_LEVEL.
- Parameters:
granularity- : Granularity of locations to be returned for this request.- Returns:
A3LLastLocationRequest.Builder
-
setMaxUpdateAgeMillis
@NonNull public A3LLastLocationRequest.Builder setMaxUpdateAgeMillis(long maxUpdateAgeMillis)
Sets the maximum age of any location returned for this request. A value ofLong.MAX_VALUErepresents an effectively unbounded maximum age.The default value is
Long.MAX_VALUE.- Parameters:
maxUpdateAgeMillis- : Maximum age of any location to be returned for this request.- Returns:
A3LLastLocationRequest.Builder
-
build
@NonNull public A3LLastLocationRequest build()
Builds a newA3LLastLocationRequest.- Returns:
A3LLastLocationRequest
-
-