public class Target
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Targets are the resources that can be invoked when a rule is triggered. For example, AWS Lambda functions, Amazon Kinesis streams, and built-in targets.
Input and InputPath are mutually-exclusive and optional parameters of a target. When a rule is triggered due to a matched event, if for a target:
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
arn
The Amazon Resource Name (ARN) associated of the target.
|
private java.lang.String |
id
The unique target assignment ID.
|
private java.lang.String |
input
Valid JSON text passed to the target.
|
private java.lang.String |
inputPath
The value of the JSONPath that is used for extracting part of the matched
event when passing it to the target.
|
Constructor and Description |
---|
Target() |
Modifier and Type | Method and Description |
---|---|
Target |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getArn()
The Amazon Resource Name (ARN) associated of the target.
|
java.lang.String |
getId()
The unique target assignment ID.
|
java.lang.String |
getInput()
Valid JSON text passed to the target.
|
java.lang.String |
getInputPath()
The value of the JSONPath that is used for extracting part of the matched
event when passing it to the target.
|
int |
hashCode() |
void |
setArn(java.lang.String arn)
The Amazon Resource Name (ARN) associated of the target.
|
void |
setId(java.lang.String id)
The unique target assignment ID.
|
void |
setInput(java.lang.String input)
Valid JSON text passed to the target.
|
void |
setInputPath(java.lang.String inputPath)
The value of the JSONPath that is used for extracting part of the matched
event when passing it to the target.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Target |
withArn(java.lang.String arn)
The Amazon Resource Name (ARN) associated of the target.
|
Target |
withId(java.lang.String id)
The unique target assignment ID.
|
Target |
withInput(java.lang.String input)
Valid JSON text passed to the target.
|
Target |
withInputPath(java.lang.String inputPath)
The value of the JSONPath that is used for extracting part of the matched
event when passing it to the target.
|
private java.lang.String id
The unique target assignment ID.
private java.lang.String arn
The Amazon Resource Name (ARN) associated of the target.
private java.lang.String input
Valid JSON text passed to the target. For more information about JSON text, see The JavaScript Object Notation (JSON) Data Interchange Format.
private java.lang.String inputPath
The value of the JSONPath that is used for extracting part of the matched event when passing it to the target. For more information about JSON paths, see JSONPath.
public void setId(java.lang.String id)
The unique target assignment ID.
id
- The unique target assignment ID.public java.lang.String getId()
The unique target assignment ID.
public Target withId(java.lang.String id)
The unique target assignment ID.
id
- The unique target assignment ID.public void setArn(java.lang.String arn)
The Amazon Resource Name (ARN) associated of the target.
arn
- The Amazon Resource Name (ARN) associated of the target.public java.lang.String getArn()
The Amazon Resource Name (ARN) associated of the target.
public Target withArn(java.lang.String arn)
The Amazon Resource Name (ARN) associated of the target.
arn
- The Amazon Resource Name (ARN) associated of the target.public void setInput(java.lang.String input)
Valid JSON text passed to the target. For more information about JSON text, see The JavaScript Object Notation (JSON) Data Interchange Format.
input
- Valid JSON text passed to the target. For more information about
JSON text, see The JavaScript
Object Notation (JSON) Data Interchange Format.public java.lang.String getInput()
Valid JSON text passed to the target. For more information about JSON text, see The JavaScript Object Notation (JSON) Data Interchange Format.
public Target withInput(java.lang.String input)
Valid JSON text passed to the target. For more information about JSON text, see The JavaScript Object Notation (JSON) Data Interchange Format.
input
- Valid JSON text passed to the target. For more information about
JSON text, see The JavaScript
Object Notation (JSON) Data Interchange Format.public void setInputPath(java.lang.String inputPath)
The value of the JSONPath that is used for extracting part of the matched event when passing it to the target. For more information about JSON paths, see JSONPath.
inputPath
- The value of the JSONPath that is used for extracting part of the
matched event when passing it to the target. For more information
about JSON paths, see JSONPath.public java.lang.String getInputPath()
The value of the JSONPath that is used for extracting part of the matched event when passing it to the target. For more information about JSON paths, see JSONPath.
public Target withInputPath(java.lang.String inputPath)
The value of the JSONPath that is used for extracting part of the matched event when passing it to the target. For more information about JSON paths, see JSONPath.
inputPath
- The value of the JSONPath that is used for extracting part of the
matched event when passing it to the target. For more information
about JSON paths, see JSONPath.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Target clone()
clone
in class java.lang.Object