/** * <p> * The Amazon Resource Name (ARN) of the AWS Lambda function. An example of an AWS Lambda function ARN is * <code>arn:aws:lambda:us-west-2:account-id:function:MyFunction</code>. For more information about AWS Lambda, see * the <a href="http://docs.aws.amazon.com/lambda/latest/dg/welcome.html">AWS Lambda Developer Guide</a>. * </p> * * @param functionArn * The Amazon Resource Name (ARN) of the AWS Lambda function. An example of an AWS Lambda function ARN is * <code>arn:aws:lambda:us-west-2:account-id:function:MyFunction</code>. For more information about AWS * Lambda, see the <a href="http://docs.aws.amazon.com/lambda/latest/dg/welcome.html">AWS Lambda Developer * Guide</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public LambdaAction withFunctionArn(String functionArn) { setFunctionArn(functionArn); return this; }
public LambdaAction unmarshall(StaxUnmarshallerContext context) throws Exception { LambdaAction lambdaAction = new LambdaAction(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return lambdaAction; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("TopicArn", targetDepth)) { lambdaAction.setTopicArn(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("FunctionArn", targetDepth)) { lambdaAction.setFunctionArn(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("InvocationType", targetDepth)) { lambdaAction.setInvocationType(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return lambdaAction; } } } }
/** * <p> * The Amazon Resource Name (ARN) of the AWS Lambda function. An example of an AWS Lambda function ARN is * <code>arn:aws:lambda:us-west-2:account-id:function:MyFunction</code>. For more information about AWS Lambda, see * the <a href="http://docs.aws.amazon.com/lambda/latest/dg/welcome.html">AWS Lambda Developer Guide</a>. * </p> * * @param functionArn * The Amazon Resource Name (ARN) of the AWS Lambda function. An example of an AWS Lambda function ARN is * <code>arn:aws:lambda:us-west-2:account-id:function:MyFunction</code>. For more information about AWS * Lambda, see the <a href="http://docs.aws.amazon.com/lambda/latest/dg/welcome.html">AWS Lambda Developer * Guide</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public LambdaAction withFunctionArn(String functionArn) { setFunctionArn(functionArn); return this; }
lambdaAction.setFunctionArn(StringStaxUnmarshaller.getInstance().unmarshall( context)); continue;
public LambdaAction unmarshall(StaxUnmarshallerContext context) throws Exception { LambdaAction lambdaAction = new LambdaAction(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return lambdaAction; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("TopicArn", targetDepth)) { lambdaAction.setTopicArn(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("FunctionArn", targetDepth)) { lambdaAction.setFunctionArn(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("InvocationType", targetDepth)) { lambdaAction.setInvocationType(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return lambdaAction; } } } }