public static class AttributeResponse.Builder extends Object
Constructor and Description |
---|
Builder() |
public AttributeResponse.Builder attributeName(String attributeName)
Attribute that was activated or deactivated by this bulk operation.
attributeName
- the value to setpublic AttributeResponse.Builder attributeType(AttributeResponse.AttributeType attributeType)
Type of the attribute.
attributeType
- the value to setpublic AttributeResponse.Builder unit(AttributeResponse.Unit unit)
Unit of the attribute.
unit
- the value to setpublic AttributeResponse.Builder notes(String notes)
Notes for the activated attribute.
notes
- the value to setpublic AttributeResponse.Builder operationType(AttributeResponse.OperationType operationType)
Type of operation - activate or deactivate.
operationType
- the value to setpublic AttributeResponse.Builder attributeNameSpace(AttributeResponse.AttributeNameSpace attributeNameSpace)
Namespace of the attribute whose properties were updated. The attributeNamespace will default to TRACES if it is not passed in.
attributeNameSpace
- the value to setpublic AttributeResponse.Builder attributeStatus(AttributeResponse.AttributeStatus attributeStatus)
Status of the attribute after this operation. The attribute can have one of the following statuses after the activate or deactivate operation. The attribute can have either a success status or an error status. The status of the attribute must be correlated with the operation status property in the bulk operation metadata object. The bulk operation will be successful only when all attributes in the bulk request are processed successful and they get a success status back. The following are successful status values of individual attribute items in a bulk attribute activation operation. ATTRIBUTE_ACTIVATED
attributeStatus
- the value to setpublic AttributeResponse.Builder timeUpdated(Date timeUpdated)
Time when the attribute was activated or deactivated. Note that ingest might not have picked up the changes even if this time has elapsed.
timeUpdated
- the value to setpublic AttributeResponse build()
public AttributeResponse.Builder copy(AttributeResponse model)
Copyright © 2016–2024. All rights reserved.