BuilderT - Type of concrete builder (for method chaining).public interface ResultSelectorBuilder<BuilderT>
This interface should not be implemented outside the SDK.
| Modifier and Type | Method and Description | 
|---|---|
| BuilderT | resultSelector(Object resultSelector)OPTIONAL. | 
| BuilderT | resultSelector(String resultSelector)OPTIONAL. | 
BuilderT resultSelector(String resultSelector)
 
 {
 ...
   "ResultSelector": {
     "ClusterId.$": "$.output.ClusterId",
     "ResourceType.$": "$.resourceType"
   },
   "ResultPath": "$.EMROutput"
 ...
 }
 
 
 Suppose the result of the Task is as follows:
 
 
 {
 ...
   "resourceType": "elasticmapreduce",
   "output": {
     "ClusterId": "AKIAIOSFODNN7EXAMPLE"
   }
 ...
 }
 
 
 Then the effective result from the task will be as follows:
 
 
 {
 ...
   "EMROutput": {
     "ClusterId": "AKIAIOSFODNN7EXAMPLE",
     "ResourceType": "elasticmapreduce"
   }
 ...
 }
 
 resultSelector - Raw JSON string representing ResultSelector value.BuilderT resultSelector(Object resultSelector)
 
 {
 ...
   "ResultSelector": {
     "ClusterId.$": "$.output.ClusterId",
     "ResourceType.$": "$.resourceType"
   },
   "ResultPath": "$.EMROutput"
 ...
 }
 
 
 Suppose the result of the Task is as follows:
 
 
 {
 ...
   "resourceType": "elasticmapreduce",
   "output": {
     "ClusterId": "AKIAIOSFODNN7EXAMPLE"
   }
 ...
 }
 
 
 Then the effective result from the task will be as follows:
 
 
 {
 ...
   "EMROutput": {
     "ClusterId": "AKIAIOSFODNN7EXAMPLE",
     "ResourceType": "elasticmapreduce"
   }
 ...
 }
 
 resultSelector - Object that will be serialized into the JSON document representing this state's ResultSelector.