/** * Constructs a new ResourceRecord object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param value * The current or new DNS record value, not to exceed 4,000 characters. In the case of a <code>DELETE</code> * action, if the current value does not match the actual value, an error is returned. For descriptions about * how to format <code>Value</code> for different record types, see <a * href="http://docs.aws.amazon.com/Route53/latest/DeveloperGuide/ResourceRecordTypes.html">Supported DNS * Resource Record Types</a> in the <i>Amazon Route 53 Developer Guide</i>.</p> * <p> * You can specify more than one value for all record types except <code>CNAME</code> and <code>SOA</code>. * </p> * <note> * <p> * If you're creating an alias resource record set, omit <code>Value</code>. * </p> */ public ResourceRecord(String value) { setValue(value); }
setValue(value); return this;
private void unbindFromDomain(String domain) throws InterruptedException { ResourceRecordSetWithHostedZone resourceRecordSetWithHostedZone = getResourceRecordSetWithHostedZone(domain); if (hasValue(resourceRecordSetWithHostedZone, registrationHostname)) { resourceRecordSetWithHostedZone.getResourceRecordSet().getResourceRecords().get(0).setValue(NULL_DOMAIN); executeChangeWithRetry(new Change(ChangeAction.UPSERT, resourceRecordSetWithHostedZone.getResourceRecordSet()), resourceRecordSetWithHostedZone.getHostedZone()); } }
public ResourceRecord unmarshall(StaxUnmarshallerContext context) throws Exception { ResourceRecord resourceRecord = new ResourceRecord(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return resourceRecord; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("Value", targetDepth)) { resourceRecord.setValue(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return resourceRecord; } } } }
private void unbindFromDomain(String domain) throws InterruptedException { ResourceRecordSetWithHostedZone resourceRecordSetWithHostedZone = getResourceRecordSetWithHostedZone(domain); if (hasValue(resourceRecordSetWithHostedZone, registrationHostname)) { resourceRecordSetWithHostedZone.getResourceRecordSet().getResourceRecords().get(0).setValue(NULL_DOMAIN); executeChangeWithRetry(new Change(ChangeAction.UPSERT, resourceRecordSetWithHostedZone.getResourceRecordSet()), resourceRecordSetWithHostedZone.getHostedZone()); } }