Class RestSimplePolicy
java.lang.Object
de.dlr.proseo.prodclmgr.rest.model.RestSimplePolicy
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DeltaTimeT0The delta time to apply to the start of the selection period.protected DeltaTimeT1The delta time to apply to the end of the selection period.protected LongThe persistent id of this objectprotected StringThe policy type to use; for acceptable values see ESA's Generic IPF Interface Specifications(package private) static final longprotected LongA version identifier to track updates to the object (especially to detect concurrent update attempts) -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new RestSimplePolicy.RestSimplePolicy(Long id, Long version, String policyType, DeltaTimeT0 deltaTimeT0, DeltaTimeT1 deltaTimeT1) Creates a new RestSimplePolicy. -
Method Summary
Modifier and TypeMethodDescriptionboolean@NotNull @Valid DeltaTimeT0Returns the deltaTimeT0.@NotNull @Valid DeltaTimeT1Returns the deltaTimeT1.getId()Returns the id.@NotNull StringReturns the policyType.Returns the version.inthashCode()voidsetDeltaTimeT0(DeltaTimeT0 deltaTimeT0) Set the deltaTimeT0.voidsetDeltaTimeT1(DeltaTimeT1 deltaTimeT1) Set the deltaTimeT1.voidSet the id.voidsetPolicyType(String policyType) Set the policyType.voidsetVersion(Long version) Set the version.toString()
-
Field Details
-
serialVersionUID
static final long serialVersionUID- See Also:
-
id
The persistent id of this object -
version
A version identifier to track updates to the object (especially to detect concurrent update attempts) -
policyType
The policy type to use; for acceptable values see ESA's Generic IPF Interface Specifications -
deltaTimeT0
The delta time to apply to the start of the selection period. Delta times must not be negative (i. e. reduce the interval). Default is zero days -
deltaTimeT1
The delta time to apply to the end of the selection period. Delta times must not be negative (i. e. reduce the interval). Default is zero days
-
-
Constructor Details
-
RestSimplePolicy
public RestSimplePolicy()Creates a new RestSimplePolicy. -
RestSimplePolicy
public RestSimplePolicy(Long id, Long version, String policyType, DeltaTimeT0 deltaTimeT0, DeltaTimeT1 deltaTimeT1) Creates a new RestSimplePolicy.
-
-
Method Details
-
getId
Returns the id.- Returns:
- id
-
setId
Set the id.- Parameters:
id- the new id
-
getVersion
Returns the version.- Returns:
- version
-
setVersion
Set the version.- Parameters:
version- the new version
-
getPolicyType
Returns the policyType.- Returns:
- policyType
-
setPolicyType
Set the policyType.- Parameters:
policyType- the new policyType
-
getDeltaTimeT0
Returns the deltaTimeT0.- Returns:
- deltaTimeT0
-
setDeltaTimeT0
Set the deltaTimeT0.- Parameters:
deltaTimeT0- the new deltaTimeT0
-
getDeltaTimeT1
Returns the deltaTimeT1.- Returns:
- deltaTimeT1
-
setDeltaTimeT1
Set the deltaTimeT1.- Parameters:
deltaTimeT1- the new deltaTimeT1
-
hashCode
public int hashCode() -
equals
-
toString
-