/** * Set the body of the stored procedure. * * @param body the body of the stored procedure. */ public void setBody(String body) { super.set(Constants.Properties.BODY, body); } }
/** * Set the medialink of the databaseAccount. * * @param medialink the media link. */ void setMediaLink(String medialink) { super.set(Constants.Properties.MEDIA_LINK, medialink); }
/** * Sets the offer version. * * @param offerVersion the version of the offer. */ public void setOfferVersion(String offerVersion) { super.set(Constants.Properties.OFFER_VERSION, offerVersion); }
/** * Sets the list of writable locations for this database account. * <p> * The list of writable locations are returned by the service. * * @param locations the list of writable locations. */ void setWritableLocations(Iterable<DatabaseAccountLocation> locations) { super.set(Constants.Properties.WRITABLE_LOCATIONS, locations); }
/** * Sets the MIME content type of the attachment. * * @param contentType the content type to use. */ public void setContentType(String contentType) { super.set(Constants.Properties.CONTENT_TYPE, contentType); }
/** * Sets the target resource id of a resource to which this offer applies. * * @param resourceId the resource id. */ void setOfferResourceId(String resourceId) { super.set(Constants.Properties.OFFER_RESOURCE_ID, resourceId); }
/** * Sets the list of readable locations for this database account. * <p> * The list of readable locations are returned by the service. * * @param locations the list of readable locations. */ void setReadableLocations(Iterable<DatabaseAccountLocation> locations) { super.set(Constants.Properties.READABLE_LOCATIONS, locations); }
/** * Set the enableMulipleWritableLocations flag of the databaseAccount. * * @param enableMulipleWritableLocations true if enableMultipleWritableLocations flag should be set. */ void setEnableMultipleWritableLocations(boolean enableMultipleWritableLocations) { super.set(Constants.Properties.ENABLE_MULTIPLE_WRITE_LOCATIONS, enableMultipleWritableLocations); }
/** * Set the body of the trigger. * * @param body the body of the trigger. */ public void setBody(String body) { super.set(Constants.Properties.BODY, body); }
/** * Sets the self-link of a resource to which the resource offer applies. * * @param resourceLink the resource link. */ void setResourceLink(String resourceLink) { super.set(Constants.Properties.RESOURCE_LINK, resourceLink); }
/** * Sets the offer content that contains the details of the offer. * * @param offerContent the content object. */ public void setContent(JSONObject offerContent) { super.set(Constants.Properties.OFFER_CONTENT, offerContent); } }
/** * Sets the error code. * * @param code the error code. */ private void setCode(String code) { super.set(Constants.Properties.CODE, code); }
/** * Set the addresseslink of the databaseAccount. * * @param addresseslink the addresses link. */ void setAddressesLink(String addresseslink) { super.set(Constants.Properties.ADDRESS_LINK, addresseslink); }
/** * Sets the media link associated with the attachment content. * * @param mediaLink the media link to use. */ public void setMediaLink(String mediaLink) { super.set(Constants.Properties.MEDIA_LINK, mediaLink); } }
/** * Sets the collection's partition key definition. * * @param partitionKey the partition key definition. */ public void setPartitionKey(PartitionKeyDefinition partitionKey) { if (partitionKey == null) { throw new IllegalArgumentException("partitionKey cannot be null."); } super.set(Constants.Properties.PARTITION_KEY, partitionKey); }
/** * Sets the conflictResolutionPolicy that is used for resolving conflicting writes * on documents in different regions, in a collection in the Azure Cosmos DB service. * * @param value ConflictResolutionPolicy to be used. */ public void setConflictResolutionPolicy(ConflictResolutionPolicy value) { if (value == null) { throw new IllegalArgumentException("CONFLICT_RESOLUTION_POLICY cannot be null."); } super.set(Constants.Properties.CONFLICT_RESOLUTION_POLICY, value); }
/** * Set the operation type of the trigger. * * @param triggerOperation the trigger operation. */ public void setTriggerOperation(TriggerOperation triggerOperation) { super.set(Constants.Properties.TRIGGER_OPERATION, triggerOperation.name()); } }
/** * Sets the OfferType for the resource offer. * * @param offerType the offer type. */ public void setOfferType(String offerType) { super.set(Constants.Properties.OFFER_TYPE, offerType); if (StringUtils.isNotEmpty(offerType)) { // OfferType is only supported for V2 offers. this.setOfferVersion(Constants.Properties.OFFER_VERSION_V1); } }
/** * Sets the resource partition key associated with this permission object. * * @param partitionkey the partition key. */ public void setResourcePartitionKey(PartitionKey partitionkey) { super.set(Constants.Properties.RESOURCE_PARTITION_KEY, partitionkey.getKey()); } }
@Override void populatePropertyBag() { if (this.consistencyPolicy != null) { this.consistencyPolicy.populatePropertyBag(); super.set(Constants.Properties.USER_CONSISTENCY_POLICY, this.consistencyPolicy); } } }