public Object clone() { return copyTo(createNewInstance()); }
public Object clone() { return copyTo(createNewInstance()); }
public Object clone() { return copyTo(createNewInstance()); }
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy2 strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof StorageUnitDownloadCredential) { final StorageUnitDownloadCredential copy = ((StorageUnitDownloadCredential) draftCopy); { Boolean awsCredentialShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.awsCredential!= null)); if (awsCredentialShouldBeCopiedAndSet == Boolean.TRUE) { AwsCredential sourceAwsCredential; sourceAwsCredential = this.getAwsCredential(); AwsCredential copyAwsCredential = ((AwsCredential) strategy.copy(LocatorUtils.property(locator, "awsCredential", sourceAwsCredential), sourceAwsCredential, (this.awsCredential!= null))); copy.setAwsCredential(copyAwsCredential); } else { if (awsCredentialShouldBeCopiedAndSet == Boolean.FALSE) { copy.awsCredential = null; } } } } return draftCopy; }
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy2 strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof StorageUnitDownloadCredential) { final StorageUnitDownloadCredential copy = ((StorageUnitDownloadCredential) draftCopy); { Boolean awsCredentialShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.awsCredential!= null)); if (awsCredentialShouldBeCopiedAndSet == Boolean.TRUE) { AwsCredential sourceAwsCredential; sourceAwsCredential = this.getAwsCredential(); AwsCredential copyAwsCredential = ((AwsCredential) strategy.copy(LocatorUtils.property(locator, "awsCredential", sourceAwsCredential), sourceAwsCredential, (this.awsCredential!= null))); copy.setAwsCredential(copyAwsCredential); } else { if (awsCredentialShouldBeCopiedAndSet == Boolean.FALSE) { copy.awsCredential = null; } } } } return draftCopy; }
public Object copyTo(ObjectLocator locator, Object target, CopyStrategy2 strategy) { final Object draftCopy = ((target == null)?createNewInstance():target); if (draftCopy instanceof StorageUnitDownloadCredential) { final StorageUnitDownloadCredential copy = ((StorageUnitDownloadCredential) draftCopy); { Boolean awsCredentialShouldBeCopiedAndSet = strategy.shouldBeCopiedAndSet(locator, (this.awsCredential!= null)); if (awsCredentialShouldBeCopiedAndSet == Boolean.TRUE) { AwsCredential sourceAwsCredential; sourceAwsCredential = this.getAwsCredential(); AwsCredential copyAwsCredential = ((AwsCredential) strategy.copy(LocatorUtils.property(locator, "awsCredential", sourceAwsCredential), sourceAwsCredential, (this.awsCredential!= null))); copy.setAwsCredential(copyAwsCredential); } else { if (awsCredentialShouldBeCopiedAndSet == Boolean.FALSE) { copy.awsCredential = null; } } } } return draftCopy; }