public void marshall(LambdaAction lambdaAction, AwsJsonWriter jsonWriter) throws Exception {
   jsonWriter.beginObject();
   if (lambdaAction.getFunctionArn() != null) {
     String functionArn = lambdaAction.getFunctionArn();
     jsonWriter.name("functionArn");
     jsonWriter.value(functionArn);
   }
   jsonWriter.endObject();
 }
Exemple #2
0
  @Override
  public boolean equals(Object obj) {
    if (this == obj) return true;
    if (obj == null) return false;

    if (obj instanceof LambdaAction == false) return false;
    LambdaAction other = (LambdaAction) obj;
    if (other.getFunctionArn() == null ^ this.getFunctionArn() == null) return false;
    if (other.getFunctionArn() != null
        && other.getFunctionArn().equals(this.getFunctionArn()) == false) return false;
    return true;
  }