/** * Sets the {@link FileRequestOptions} that is used for any requests associated with this * <code>CloudFileClient</code> object. * * @param defaultRequestOptions * A {@link FileRequestOptions} object which specifies the options to use. */ public void setDefaultRequestOptions(FileRequestOptions defaultRequestOptions) { Utility.assertNotNull("defaultRequestOptions", defaultRequestOptions); this.defaultRequestOptions = defaultRequestOptions; }
/** * Reserved for internal use. Sets the resolver to project the entity retrieved as a particular type. * * @param resolver * The {@link EntityResolver} instance to use. */ protected void setResolver(final EntityResolver<?> resolver) { Utility.assertNotNull(SR.QUERY_REQUIRES_VALID_CLASSTYPE_OR_RESOLVER, resolver); this.resolver = resolver; }
/** * Sets the {@link TableRequestOptions} that is used for any table accessed with this <code>CloudTableClient</code> * object. * * @param defaultRequestOptions * The TableRequestOptions to use. */ public void setDefaultRequestOptions(TableRequestOptions defaultRequestOptions) { Utility.assertNotNull("defaultRequestOptions", defaultRequestOptions); this.defaultRequestOptions = defaultRequestOptions; }
/** * Sets the {@link QueueRequestOptions} that is used for any queue accessed with this <code>CloudQueueClient</code> * object. * * @param defaultRequestOptions * The QueueRequestOptions to use. */ public void setDefaultRequestOptions(QueueRequestOptions defaultRequestOptions) { Utility.assertNotNull("defaultRequestOptions", defaultRequestOptions); this.defaultRequestOptions = defaultRequestOptions; } }
/** * Sets the {@link QueueRequestOptions} that is used for any queue accessed with this <code>CloudQueueClient</code> * object. * * @param defaultRequestOptions * The QueueRequestOptions to use. */ public void setDefaultRequestOptions(QueueRequestOptions defaultRequestOptions) { Utility.assertNotNull("defaultRequestOptions", defaultRequestOptions); this.defaultRequestOptions = defaultRequestOptions; } }
/** * Sets the {@link BlobRequestOptions} that is used for any requests associated with this * <code>CloudBlobClient</code> object. * * @param defaultRequestOptions * A {@link BlobRequestOptions} object which specifies the options to use. */ public void setDefaultRequestOptions(BlobRequestOptions defaultRequestOptions) { Utility.assertNotNull("defaultRequestOptions", defaultRequestOptions); this.defaultRequestOptions = defaultRequestOptions; }
/** * Sets the {@link TableRequestOptions} that is used for any table accessed with this <code>CloudTableClient</code> * object. * * @param defaultRequestOptions * The TableRequestOptions to use. */ public void setDefaultRequestOptions(TableRequestOptions defaultRequestOptions) { Utility.assertNotNull("defaultRequestOptions", defaultRequestOptions); this.defaultRequestOptions = defaultRequestOptions; }
/** * Reserved for internal use. Sets the resolver to project the entity retrieved as a particular type. * * @param resolver * The {@link EntityResolver} instance to use. */ protected void setResolver(final EntityResolver<?> resolver) { Utility.assertNotNull(SR.QUERY_REQUIRES_VALID_CLASSTYPE_OR_RESOLVER, resolver); this.resolver = resolver; }
/** * Sets the {@link FileRequestOptions} that is used for any requests associated with this * <code>CloudFileClient</code> object. * * @param defaultRequestOptions * A {@link FileRequestOptions} object which specifies the options to use. */ public void setDefaultRequestOptions(FileRequestOptions defaultRequestOptions) { Utility.assertNotNull("defaultRequestOptions", defaultRequestOptions); this.defaultRequestOptions = defaultRequestOptions; }
/** * Returns an enumerable collection of log records, retrieved lazily. * * @param logBlobs * An {@link Iterable} of blobs to parse LogRecords from. * @return * An enumerable collection of objects that implement {@link LogRecord} and are retrieved lazily. */ public static Iterable<LogRecord> parseLogBlobs(Iterable<ListBlobItem> logBlobs) { Utility.assertNotNull("logBlobs", logBlobs); return new LogRecordIterable(logBlobs.iterator()); }
/** * Applies defaults to the options passed in. * * @param modifiedOptions * The options to apply defaults to. */ protected static void applyDefaults(QueueRequestOptions modifiedOptions) { Utility.assertNotNull("modifiedOptions", modifiedOptions); RequestOptions.applyBaseDefaultsInternal(modifiedOptions); } }
/** * Sets the content of the message as a <code>byte</code> array. * * @param content * A <code>byte</code> array which contains the content of the message. */ public final void setMessageContent(final byte[] content) { Utility.assertNotNull("content", content); this.messageContent = Base64.encode(content); this.messageType = QueueMessageType.BASE_64_ENCODED; }
/** * Applies defaults to the options passed in. * * @param modifiedOptions * The options to apply defaults to. */ protected static void applyDefaults(QueueRequestOptions modifiedOptions) { Utility.assertNotNull("modifiedOptions", modifiedOptions); RequestOptions.applyBaseDefaultsInternal(modifiedOptions); }
/** * Sets the content of the message as a <code>byte</code> array. * * @param content * A <code>byte</code> array which contains the content of the message. */ public final void setMessageContent(final byte[] content) { Utility.assertNotNull("content", content); this.messageContent = Base64.encode(content); this.messageType = QueueMessageType.BASE_64_ENCODED; }
/** * Reserved for internal use. Sets the class type of the entity returned by the query. * * @param clazzType * The <code>java.lang.Class</code> implementing {@link TableEntity} that represents the entity type for * the query. */ protected void setClazzType(final Class<? extends TableEntity> clazzType) { Utility.assertNotNull("clazzType", clazzType); Utility.checkNullaryCtor(clazzType); this.clazzType = clazzType; }
/** * Creates an IP Range using the specified single IP address. The IP address must be IPv4. * * @param ip * the single IP address */ public IPRange(String ip) { Utility.assertNotNull("ip", ip); IPRange.validateIPAddress(ip); this.ipMin = ip; this.ipMax = ip; }
/** * Creates an IP Range using the specified single IP address. The IP address must be IPv4. * * @param ip * the single IP address */ public IPRange(String ip) { Utility.assertNotNull("ip", ip); IPRange.validateIPAddress(ip); this.ipMin = ip; this.ipMax = ip; }
/** * Reserved for internal use. Sets the class type of the entity returned by the query. * * @param clazzType * The <code>java.lang.Class</code> implementing {@link TableEntity} that represents the entity type for * the query. */ protected void setClazzType(final Class<? extends TableEntity> clazzType) { Utility.assertNotNull("clazzType", clazzType); Utility.checkNullaryCtor(clazzType); this.clazzType = clazzType; }
/** * Initializes a new instance of the {@link RetryInfo} class. * * @param retryContext * The {@link RetryContext} object that was passed in to the retry policy. */ public RetryInfo(RetryContext retryContext) { Utility.assertNotNull("retryContext", retryContext); this.targetLocation = retryContext.getNextLocation(); this.updatedLocationMode = retryContext.getLocationMode(); }
/** * Initializes a new instance of the {@link "RetryInfo"} class. * * @param retryContext * The {@link RetryContext} object that was passed in to the retry policy. */ public RetryInfo(RetryContext retryContext) { Utility.assertNotNull("retryContext", retryContext); this.targetLocation = retryContext.getNextLocation(); this.updatedLocationMode = retryContext.getLocationMode(); }