/** * <p> * The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the Lambda action is taken. An example of * an Amazon SNS topic ARN is <code>arn:aws:sns:us-west-2:123456789012:MyTopic</code>. For more information about * Amazon SNS topics, see the <a href="http://docs.aws.amazon.com/sns/latest/dg/CreateTopic.html">Amazon SNS * Developer Guide</a>. * </p> * * @param topicArn * The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the Lambda action is taken. An * example of an Amazon SNS topic ARN is <code>arn:aws:sns:us-west-2:123456789012:MyTopic</code>. For more * information about Amazon SNS topics, see the <a * href="http://docs.aws.amazon.com/sns/latest/dg/CreateTopic.html">Amazon SNS Developer Guide</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public LambdaAction withTopicArn(String topicArn) { setTopicArn(topicArn); 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 Amazon SNS topic to notify when the Lambda action is taken. An example of * an Amazon SNS topic ARN is <code>arn:aws:sns:us-west-2:123456789012:MyTopic</code>. For more information about * Amazon SNS topics, see the <a href="http://docs.aws.amazon.com/sns/latest/dg/CreateTopic.html">Amazon SNS * Developer Guide</a>. * </p> * * @param topicArn * The Amazon Resource Name (ARN) of the Amazon SNS topic to notify when the Lambda action is taken. An * example of an Amazon SNS topic ARN is <code>arn:aws:sns:us-west-2:123456789012:MyTopic</code>. For more * information about Amazon SNS topics, see the <a * href="http://docs.aws.amazon.com/sns/latest/dg/CreateTopic.html">Amazon SNS Developer Guide</a>. * @return Returns a reference to this object so that method calls can be chained together. */ public LambdaAction withTopicArn(String topicArn) { setTopicArn(topicArn); return this; }
lambdaAction.setTopicArn(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; } } } }