/** * <p> * The Amazon Resource Name (ARN) of the instance profile. * </p> * * @param arn * The Amazon Resource Name (ARN) of the instance profile. * @return Returns a reference to this object so that method calls can be chained together. */ public IamInstanceProfileSpecification withArn(String arn) { setArn(arn); return this; }
public IamInstanceProfileSpecification toIamInstanceProfileSpecification() { final IamInstanceProfileSpecification spec = new IamInstanceProfileSpecification(); spec.setName(name); spec.setArn(arn); return spec; }
public IamInstanceProfileSpecification unmarshall(StaxUnmarshallerContext context) throws Exception { IamInstanceProfileSpecification iamInstanceProfileSpecification = new IamInstanceProfileSpecification(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return iamInstanceProfileSpecification; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("arn", targetDepth)) { iamInstanceProfileSpecification.setArn(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("name", targetDepth)) { iamInstanceProfileSpecification.setName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return iamInstanceProfileSpecification; } } } }
/** * <p> * The Amazon Resource Name (ARN) of the instance profile. * </p> * * @param arn * The Amazon Resource Name (ARN) of the instance profile. * @return Returns a reference to this object so that method calls can be chained together. */ public IamInstanceProfileSpecification withArn(String arn) { setArn(arn); return this; }
public IamInstanceProfileSpecification unmarshall(StaxUnmarshallerContext context) throws Exception { IamInstanceProfileSpecification iamInstanceProfileSpecification = new IamInstanceProfileSpecification(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { int xmlEvent = context.nextEvent(); if (xmlEvent == XmlPullParser.END_DOCUMENT) return iamInstanceProfileSpecification; if (xmlEvent == XmlPullParser.START_TAG) { if (context.testExpression("arn", targetDepth)) { iamInstanceProfileSpecification.setArn(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("name", targetDepth)) { iamInstanceProfileSpecification.setName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent == XmlPullParser.END_TAG) { if (context.getCurrentDepth() < originalDepth) { return iamInstanceProfileSpecification; } } } }
public IamInstanceProfileSpecification toIamInstanceProfileSpecification() { final IamInstanceProfileSpecification spec = new IamInstanceProfileSpecification(); spec.setName(name); spec.setArn(arn); return spec; }
public IamInstanceProfileSpecification toIamInstanceProfileSpecification() { final IamInstanceProfileSpecification spec = new IamInstanceProfileSpecification(); spec.setName(name); spec.setArn(arn); return spec; }
public IamInstanceProfileSpecification unmarshall(StaxUnmarshallerContext context) throws Exception { IamInstanceProfileSpecification iamInstanceProfileSpecification = new IamInstanceProfileSpecification(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return iamInstanceProfileSpecification; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("arn", targetDepth)) { iamInstanceProfileSpecification.setArn(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("name", targetDepth)) { iamInstanceProfileSpecification.setName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return iamInstanceProfileSpecification; } } } }