Record Class StoragePolicy.Subject
java.lang.Object
java.lang.Record
ecmwf.ecpds.master.storage.StoragePolicy.Subject
- Record Components:
destination- the destination namedestinationType- the destination typetransferGroup- the transfer group name (may be null)fileName- the file name (may be null)explicitPolicy- the policy named in the destination option (may be null)
- Enclosing class:
StoragePolicy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedestinationrecord component.intReturns the value of thedestinationTyperecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexplicitPolicyrecord component.fileName()Returns the value of thefileNamerecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Returns the value of thetransferGrouprecord component.
-
Constructor Details
-
Subject
public Subject(String destination, int destinationType, String transferGroup, String fileName, String explicitPolicy) Creates an instance of aSubjectrecord class.- Parameters:
destination- the value for thedestinationrecord componentdestinationType- the value for thedestinationTyperecord componenttransferGroup- the value for thetransferGrouprecord componentfileName- the value for thefileNamerecord componentexplicitPolicy- the value for theexplicitPolicyrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
destination
Returns the value of thedestinationrecord component.- Returns:
- the value of the
destinationrecord component
-
destinationType
public int destinationType()Returns the value of thedestinationTyperecord component.- Returns:
- the value of the
destinationTyperecord component
-
transferGroup
Returns the value of thetransferGrouprecord component.- Returns:
- the value of the
transferGrouprecord component
-
fileName
-
explicitPolicy
Returns the value of theexplicitPolicyrecord component.- Returns:
- the value of the
explicitPolicyrecord component
-