azure-docs-sdk-java/docs-ref-autogen/com.microsoft.azure.documen...

808 строки
30 KiB
YAML

### YamlMime:ManagedReference
items:
- uid: com.microsoft.azure.documentdb._conflict
id: _conflict
parent: com.microsoft.azure.documentdb
children:
- com.microsoft.azure.documentdb._conflict.Conflict()
- com.microsoft.azure.documentdb._conflict.Conflict(JSONObject)
- com.microsoft.azure.documentdb._conflict.Conflict(String)
- com.microsoft.azure.documentdb._conflict.getOperationKind()
- com.microsoft.azure.documentdb._conflict.getResouceType()
href: com.microsoft.azure.documentdb._conflict.yml
langs:
- java
name: Conflict
nameWithType: Conflict
fullName: com.microsoft.azure.documentdb.Conflict
type: Class
source:
remote: &o0
path: DocumentDB/src/main/java/com/microsoft/azure/documentdb/Conflict.java
branch: master
repo: https://github.com/Azure/azure-documentdb-java-pr
path: DocumentDB/src/main/java/com/microsoft/azure/documentdb/Conflict.java
startLine: 12
package: com.microsoft.azure.documentdb
summary: >-
<p>Represents a conflict in the version of a particular resource in the Azure Cosmos DB database service. </p>
<p>During rare failure scenarios, conflicts are generated for the documents in transit. Clients can inspect the respective conflict instances for resources and operations in conflict. </p>
syntax:
content: public class Conflict extends Resource
inheritance:
- java.lang.Object
- Serializable
- com.microsoft.azure.documentdb._json_serializable
- com.microsoft.azure.documentdb._resource
inheritedMembers:
- com.microsoft.azure.documentdb._json_serializable.get(String)
- com.microsoft.azure.documentdb._json_serializable.getBoolean(String)
- com.microsoft.azure.documentdb._json_serializable.getCollection(String)
- com.microsoft.azure.documentdb._json_serializable.getDouble(String)
- com.microsoft.azure.documentdb._resource.getETag()
- com.microsoft.azure.documentdb._json_serializable.getHashMap()
- com.microsoft.azure.documentdb._resource.getId()
- com.microsoft.azure.documentdb._json_serializable.getInt(String)
- com.microsoft.azure.documentdb._json_serializable.getLogger()
- com.microsoft.azure.documentdb._json_serializable.getLong(String)
- com.microsoft.azure.documentdb._json_serializable.getMapper()
- com.microsoft.azure.documentdb._json_serializable.getObject(String)
- com.microsoft.azure.documentdb._json_serializable.getObjectByPath(Collection<String>)
- com.microsoft.azure.documentdb._resource.getResourceId()
- com.microsoft.azure.documentdb._resource.getSelfLink()
- com.microsoft.azure.documentdb._json_serializable.getString(String)
- com.microsoft.azure.documentdb._resource.getTimestamp()
- com.microsoft.azure.documentdb._json_serializable.has(String)
- com.microsoft.azure.documentdb._json_serializable.JsonSerializable()
- com.microsoft.azure.documentdb._json_serializable.JsonSerializable(String,ObjectMapper)
- com.microsoft.azure.documentdb._json_serializable.JsonSerializable(String)
- com.microsoft.azure.documentdb._json_serializable.JsonSerializable(JSONObject)
- com.microsoft.azure.documentdb._json_serializable.remove(String)
- com.microsoft.azure.documentdb._resource.Resource()
- com.microsoft.azure.documentdb._resource.Resource(String,ObjectMapper)
- com.microsoft.azure.documentdb._resource.Resource(String)
- com.microsoft.azure.documentdb._resource.Resource(JSONObject)
- com.microsoft.azure.documentdb._resource.setId(String)
- com.microsoft.azure.documentdb._resource.setResourceId(String)
- com.microsoft.azure.documentdb._json_serializable.toJson()
- com.microsoft.azure.documentdb._json_serializable.toJson(SerializationFormattingPolicy)
- com.microsoft.azure.documentdb._json_serializable.toString()
- com.microsoft.azure.documentdb._json_serializable.toString(int)
- uid: com.microsoft.azure.documentdb._conflict.Conflict()
id: Conflict()
parent: com.microsoft.azure.documentdb._conflict
href: com.microsoft.azure.documentdb._conflict.yml
langs:
- java
name: Conflict()
nameWithType: Conflict.Conflict()
fullName: com.microsoft.azure.documentdb.Conflict.Conflict()
overload: com.microsoft.azure.documentdb._conflict.Conflict*
type: Constructor
source:
remote: *o0
path: DocumentDB/src/main/java/com/microsoft/azure/documentdb/Conflict.java
startLine: 16
package: com.microsoft.azure.documentdb
summary: <p>Initialize a conflict object. </p>
syntax:
content: public Conflict()
- uid: com.microsoft.azure.documentdb._conflict.Conflict(JSONObject)
id: Conflict(JSONObject)
parent: com.microsoft.azure.documentdb._conflict
href: com.microsoft.azure.documentdb._conflict.yml
langs:
- java
name: Conflict(JSONObject jsonObject)
nameWithType: Conflict.Conflict(JSONObject jsonObject)
fullName: com.microsoft.azure.documentdb.Conflict.Conflict(JSONObject jsonObject)
overload: com.microsoft.azure.documentdb._conflict.Conflict*
type: Constructor
source:
remote: *o0
path: DocumentDB/src/main/java/com/microsoft/azure/documentdb/Conflict.java
startLine: 34
package: com.microsoft.azure.documentdb
summary: >-
<p>Initialize a conflict object from json object.</p>
<p></p>
syntax:
content: public Conflict(JSONObject jsonObject)
parameters:
- id: jsonObject
type: 2b3125a5
description: <p>the json object that represents the conflict. </p>
- uid: com.microsoft.azure.documentdb._conflict.Conflict(String)
id: Conflict(String)
parent: com.microsoft.azure.documentdb._conflict
href: com.microsoft.azure.documentdb._conflict.yml
langs:
- java
name: Conflict(String jsonString)
nameWithType: Conflict.Conflict(String jsonString)
fullName: com.microsoft.azure.documentdb.Conflict.Conflict(String jsonString)
overload: com.microsoft.azure.documentdb._conflict.Conflict*
type: Constructor
source:
remote: *o0
path: DocumentDB/src/main/java/com/microsoft/azure/documentdb/Conflict.java
startLine: 25
package: com.microsoft.azure.documentdb
summary: >-
<p>Initialize a conflict object from json string.</p>
<p></p>
syntax:
content: public Conflict(String jsonString)
parameters:
- id: jsonString
type: "26831127"
description: <p>the json string that represents the conflict. </p>
- uid: com.microsoft.azure.documentdb._conflict.getOperationKind()
id: getOperationKind()
parent: com.microsoft.azure.documentdb._conflict
href: com.microsoft.azure.documentdb._conflict.yml
langs:
- java
name: getOperationKind()
nameWithType: Conflict.getOperationKind()
fullName: com.microsoft.azure.documentdb.Conflict.getOperationKind()
overload: com.microsoft.azure.documentdb._conflict.getOperationKind*
type: Method
source:
remote: *o0
path: DocumentDB/src/main/java/com/microsoft/azure/documentdb/Conflict.java
startLine: 43
package: com.microsoft.azure.documentdb
summary: >-
<p>Gets the operation kind.</p>
<p></p>
syntax:
content: public String getOperationKind()
return:
type: "26831127"
description: <p>the operation kind. </p>
- uid: com.microsoft.azure.documentdb._conflict.getResouceType()
id: getResouceType()
parent: com.microsoft.azure.documentdb._conflict
href: com.microsoft.azure.documentdb._conflict.yml
langs:
- java
name: getResouceType()
nameWithType: Conflict.getResouceType()
fullName: com.microsoft.azure.documentdb.Conflict.getResouceType()
overload: com.microsoft.azure.documentdb._conflict.getResouceType*
type: Method
source:
remote: *o0
path: DocumentDB/src/main/java/com/microsoft/azure/documentdb/Conflict.java
startLine: 52
package: com.microsoft.azure.documentdb
summary: >-
<p>Gets the type of the conflicting resource.</p>
<p></p>
syntax:
content: public String getResouceType()
return:
type: "26831127"
description: <p>the resource type. </p>
references:
- uid: com.microsoft.azure.documentdb._conflict.Conflict*
name: Conflict
nameWithType: Conflict.Conflict
fullName: com.microsoft.azure.documentdb.Conflict.Conflict
package: com.microsoft.azure.documentdb
- uid: "26831127"
spec.java:
- name: String
fullName: String
- uid: 2b3125a5
spec.java:
- name: JSONObject
fullName: JSONObject
- uid: com.microsoft.azure.documentdb._conflict.getOperationKind*
name: getOperationKind
nameWithType: Conflict.getOperationKind
fullName: com.microsoft.azure.documentdb.Conflict.getOperationKind
package: com.microsoft.azure.documentdb
- uid: com.microsoft.azure.documentdb._conflict.getResouceType*
name: getResouceType
nameWithType: Conflict.getResouceType
fullName: com.microsoft.azure.documentdb.Conflict.getResouceType
package: com.microsoft.azure.documentdb
- uid: com.microsoft.azure.documentdb._json_serializable.get(String)
parent: com.microsoft.azure.documentdb._json_serializable
href: com.microsoft.azure.documentdb._json_serializable.yml
name: get(String propertyName)
nameWithType: JsonSerializable.get(String propertyName)
fullName: com.microsoft.azure.documentdb.JsonSerializable.get(String propertyName)
type: Method
summary: >-
<p>Gets a property value as Object.</p>
<p></p>
syntax:
content: public Object get(String propertyName)
parameters:
- id: propertyName
type: "26831127"
description: <p>the property to get. </p>
return:
type: "79317049"
description: <p>the value of the property. </p>
- uid: com.microsoft.azure.documentdb._json_serializable.getBoolean(String)
parent: com.microsoft.azure.documentdb._json_serializable
href: com.microsoft.azure.documentdb._json_serializable.yml
name: getBoolean(String propertyName)
nameWithType: JsonSerializable.getBoolean(String propertyName)
fullName: com.microsoft.azure.documentdb.JsonSerializable.getBoolean(String propertyName)
type: Method
summary: >-
<p>Gets a boolean value.</p>
<p></p>
syntax:
content: public Boolean getBoolean(String propertyName)
parameters:
- id: propertyName
type: "26831127"
description: <p>the property to get. </p>
return:
type: 866c2227
description: <p>the boolean value. </p>
- uid: com.microsoft.azure.documentdb._json_serializable.getCollection(String)
parent: com.microsoft.azure.documentdb._json_serializable
href: com.microsoft.azure.documentdb._json_serializable.yml
name: getCollection(String propertyName)
nameWithType: JsonSerializable.getCollection(String propertyName)
fullName: com.microsoft.azure.documentdb.JsonSerializable.getCollection(String propertyName)
type: Method
summary: >-
<p>Gets a JSONObject collection.</p>
<p></p>
syntax:
content: public Collection<JSONObject> getCollection(String propertyName)
parameters:
- id: propertyName
type: "26831127"
description: <p>the property to get. </p>
return:
type: e8fa48f8
description: <p>the JSONObject collection. </p>
- uid: com.microsoft.azure.documentdb._json_serializable.getDouble(String)
parent: com.microsoft.azure.documentdb._json_serializable
href: com.microsoft.azure.documentdb._json_serializable.yml
name: getDouble(String propertyName)
nameWithType: JsonSerializable.getDouble(String propertyName)
fullName: com.microsoft.azure.documentdb.JsonSerializable.getDouble(String propertyName)
type: Method
summary: >-
<p>Gets a double value.</p>
<p></p>
syntax:
content: public Double getDouble(String propertyName)
parameters:
- id: propertyName
type: "26831127"
description: <p>the property to get. </p>
return:
type: 8dd309d9
description: <p>the double value. </p>
- uid: com.microsoft.azure.documentdb._resource.getETag()
parent: com.microsoft.azure.documentdb._resource
href: com.microsoft.azure.documentdb._resource.yml
name: getETag()
nameWithType: Resource.getETag()
fullName: com.microsoft.azure.documentdb.Resource.getETag()
type: Method
summary: >-
<p>Get the entity tag associated with the resource.</p>
<p></p>
syntax:
content: public String getETag()
return:
type: "26831127"
description: <p>the e tag. </p>
- uid: com.microsoft.azure.documentdb._json_serializable.getHashMap()
parent: com.microsoft.azure.documentdb._json_serializable
href: com.microsoft.azure.documentdb._json_serializable.yml
name: getHashMap()
nameWithType: JsonSerializable.getHashMap()
fullName: com.microsoft.azure.documentdb.JsonSerializable.getHashMap()
type: Method
summary: >-
<p>Returns the propertybag(JSONObject) in a hashMap</p>
<p></p>
syntax:
content: public HashMap<String, Object> getHashMap()
return:
type: f39c727f
description: <p>the HashMap. </p>
- uid: com.microsoft.azure.documentdb._resource.getId()
parent: com.microsoft.azure.documentdb._resource
href: com.microsoft.azure.documentdb._resource.yml
name: getId()
nameWithType: Resource.getId()
fullName: com.microsoft.azure.documentdb.Resource.getId()
type: Method
summary: >-
<p>Gets the name of the resource.</p>
<p></p>
syntax:
content: public String getId()
return:
type: "26831127"
description: <p>the name of the resource. </p>
- uid: com.microsoft.azure.documentdb._json_serializable.getInt(String)
parent: com.microsoft.azure.documentdb._json_serializable
href: com.microsoft.azure.documentdb._json_serializable.yml
name: getInt(String propertyName)
nameWithType: JsonSerializable.getInt(String propertyName)
fullName: com.microsoft.azure.documentdb.JsonSerializable.getInt(String propertyName)
type: Method
summary: >-
<p>Gets an integer value.</p>
<p></p>
syntax:
content: public Integer getInt(String propertyName)
parameters:
- id: propertyName
type: "26831127"
description: <p>the property to get. </p>
return:
type: 08effaa0
description: <p>the boolean value </p>
- uid: com.microsoft.azure.documentdb._json_serializable.getLogger()
parent: com.microsoft.azure.documentdb._json_serializable
href: com.microsoft.azure.documentdb._json_serializable.yml
name: getLogger()
nameWithType: JsonSerializable.getLogger()
fullName: com.microsoft.azure.documentdb.JsonSerializable.getLogger()
type: Method
syntax:
content: protected Logger getLogger()
return:
type: ef129195
- uid: com.microsoft.azure.documentdb._json_serializable.getLong(String)
parent: com.microsoft.azure.documentdb._json_serializable
href: com.microsoft.azure.documentdb._json_serializable.yml
name: getLong(String propertyName)
nameWithType: JsonSerializable.getLong(String propertyName)
fullName: com.microsoft.azure.documentdb.JsonSerializable.getLong(String propertyName)
type: Method
summary: >-
<p>Gets a long value.</p>
<p></p>
syntax:
content: public Long getLong(String propertyName)
parameters:
- id: propertyName
type: "26831127"
description: <p>the property to get. </p>
return:
type: 34f09483
description: <p>the long value </p>
- uid: com.microsoft.azure.documentdb._json_serializable.getMapper()
parent: com.microsoft.azure.documentdb._json_serializable
href: com.microsoft.azure.documentdb._json_serializable.yml
name: getMapper()
nameWithType: JsonSerializable.getMapper()
fullName: com.microsoft.azure.documentdb.JsonSerializable.getMapper()
type: Method
syntax:
content: protected ObjectMapper getMapper()
return:
type: 7db3dbca
- uid: com.microsoft.azure.documentdb._json_serializable.getObject(String)
parent: com.microsoft.azure.documentdb._json_serializable
href: com.microsoft.azure.documentdb._json_serializable.yml
name: getObject(String propertyName)
nameWithType: JsonSerializable.getObject(String propertyName)
fullName: com.microsoft.azure.documentdb.JsonSerializable.getObject(String propertyName)
type: Method
summary: >-
<p>Gets a JSONObject.</p>
<p></p>
syntax:
content: public JSONObject getObject(String propertyName)
parameters:
- id: propertyName
type: "26831127"
description: <p>the property to get. </p>
return:
type: 2b3125a5
description: <p>the JSONObject. </p>
- uid: com.microsoft.azure.documentdb._json_serializable.getObjectByPath(Collection<String>)
parent: com.microsoft.azure.documentdb._json_serializable
href: com.microsoft.azure.documentdb._json_serializable.yml
name: getObjectByPath(Collection<String> propertyNames)
nameWithType: JsonSerializable.getObjectByPath(Collection<String> propertyNames)
fullName: com.microsoft.azure.documentdb.JsonSerializable.getObjectByPath(Collection<String> propertyNames)
type: Method
summary: >-
<p>Gets the value of a property identified by an array of property names that forms the path.</p>
<p></p>
syntax:
content: public Object getObjectByPath(Collection<String> propertyNames)
parameters:
- id: propertyNames
type: 0248867e
description: <p>that form the path to the the property to get. </p>
return:
type: "79317049"
description: <p>the value of the property. </p>
- uid: com.microsoft.azure.documentdb._resource.getResourceId()
parent: com.microsoft.azure.documentdb._resource
href: com.microsoft.azure.documentdb._resource.yml
name: getResourceId()
nameWithType: Resource.getResourceId()
fullName: com.microsoft.azure.documentdb.Resource.getResourceId()
type: Method
summary: >-
<p>Gets the ID associated with the resource.</p>
<p></p>
syntax:
content: public String getResourceId()
return:
type: "26831127"
description: <p>the ID associated with the resource. </p>
- uid: com.microsoft.azure.documentdb._resource.getSelfLink()
parent: com.microsoft.azure.documentdb._resource
href: com.microsoft.azure.documentdb._resource.yml
name: getSelfLink()
nameWithType: Resource.getSelfLink()
fullName: com.microsoft.azure.documentdb.Resource.getSelfLink()
type: Method
summary: >-
<p>Get the self-link associated with the resource.</p>
<p></p>
syntax:
content: public String getSelfLink()
return:
type: "26831127"
description: <p>the self link. </p>
- uid: com.microsoft.azure.documentdb._json_serializable.getString(String)
parent: com.microsoft.azure.documentdb._json_serializable
href: com.microsoft.azure.documentdb._json_serializable.yml
name: getString(String propertyName)
nameWithType: JsonSerializable.getString(String propertyName)
fullName: com.microsoft.azure.documentdb.JsonSerializable.getString(String propertyName)
type: Method
summary: >-
<p>Gets a string value.</p>
<p></p>
syntax:
content: public String getString(String propertyName)
parameters:
- id: propertyName
type: "26831127"
description: <p>the property to get. </p>
return:
type: "26831127"
description: <p>the string value. </p>
- uid: com.microsoft.azure.documentdb._resource.getTimestamp()
parent: com.microsoft.azure.documentdb._resource
href: com.microsoft.azure.documentdb._resource.yml
name: getTimestamp()
nameWithType: Resource.getTimestamp()
fullName: com.microsoft.azure.documentdb.Resource.getTimestamp()
type: Method
summary: >-
<p>Get the last modified timestamp associated with the resource.</p>
<p></p>
syntax:
content: public Date getTimestamp()
return:
type: "12977444"
description: <p>the timestamp. </p>
- uid: com.microsoft.azure.documentdb._json_serializable.has(String)
parent: com.microsoft.azure.documentdb._json_serializable
href: com.microsoft.azure.documentdb._json_serializable.yml
name: has(String propertyName)
nameWithType: JsonSerializable.has(String propertyName)
fullName: com.microsoft.azure.documentdb.JsonSerializable.has(String propertyName)
type: Method
summary: >-
<p>Checks whether a property exists.</p>
<p></p>
syntax:
content: public boolean has(String propertyName)
parameters:
- id: propertyName
type: "26831127"
description: <p>the property to look up. </p>
return:
type: 4fc6e284
description: <p>true if the property exists. </p>
- uid: com.microsoft.azure.documentdb._json_serializable.JsonSerializable()
parent: com.microsoft.azure.documentdb._json_serializable
href: com.microsoft.azure.documentdb._json_serializable.yml
name: JsonSerializable()
nameWithType: JsonSerializable.JsonSerializable()
fullName: com.microsoft.azure.documentdb.JsonSerializable.JsonSerializable()
type: Constructor
syntax:
content: protected JsonSerializable()
- uid: com.microsoft.azure.documentdb._json_serializable.JsonSerializable(String,ObjectMapper)
parent: com.microsoft.azure.documentdb._json_serializable
href: com.microsoft.azure.documentdb._json_serializable.yml
name: JsonSerializable(String jsonString, ObjectMapper objectMapper)
nameWithType: JsonSerializable.JsonSerializable(String jsonString, ObjectMapper objectMapper)
fullName: com.microsoft.azure.documentdb.JsonSerializable.JsonSerializable(String jsonString, ObjectMapper objectMapper)
type: Constructor
summary: >-
<p>Constructor.</p>
<p></p>
syntax:
content: protected JsonSerializable(String jsonString, ObjectMapper objectMapper)
parameters:
- id: jsonString
type: "26831127"
description: <p>the json string that represents the JsonSerializable. </p>
- id: objectMapper
type: 7db3dbca
description: <p>the custom object mapper </p>
- uid: com.microsoft.azure.documentdb._json_serializable.JsonSerializable(String)
parent: com.microsoft.azure.documentdb._json_serializable
href: com.microsoft.azure.documentdb._json_serializable.yml
name: JsonSerializable(String jsonString)
nameWithType: JsonSerializable.JsonSerializable(String jsonString)
fullName: com.microsoft.azure.documentdb.JsonSerializable.JsonSerializable(String jsonString)
type: Constructor
summary: >-
<p>Constructor.</p>
<p></p>
syntax:
content: protected JsonSerializable(String jsonString)
parameters:
- id: jsonString
type: "26831127"
description: <p>the json string that represents the JsonSerializable. </p>
- uid: com.microsoft.azure.documentdb._json_serializable.JsonSerializable(JSONObject)
parent: com.microsoft.azure.documentdb._json_serializable
href: com.microsoft.azure.documentdb._json_serializable.yml
name: JsonSerializable(JSONObject jsonObject)
nameWithType: JsonSerializable.JsonSerializable(JSONObject jsonObject)
fullName: com.microsoft.azure.documentdb.JsonSerializable.JsonSerializable(JSONObject jsonObject)
type: Constructor
summary: >-
<p>Constructor.</p>
<p></p>
syntax:
content: protected JsonSerializable(JSONObject jsonObject)
parameters:
- id: jsonObject
type: 2b3125a5
description: <p>the json object that represents the JsonSerializable. </p>
- uid: com.microsoft.azure.documentdb._json_serializable.remove(String)
parent: com.microsoft.azure.documentdb._json_serializable
href: com.microsoft.azure.documentdb._json_serializable.yml
name: remove(String propertyName)
nameWithType: JsonSerializable.remove(String propertyName)
fullName: com.microsoft.azure.documentdb.JsonSerializable.remove(String propertyName)
type: Method
summary: >-
<p>Removes a value by propertyName.</p>
<p></p>
syntax:
content: public void remove(String propertyName)
parameters:
- id: propertyName
type: "26831127"
description: <p>the property to remove. </p>
- uid: com.microsoft.azure.documentdb._resource.Resource()
parent: com.microsoft.azure.documentdb._resource
href: com.microsoft.azure.documentdb._resource.yml
name: Resource()
nameWithType: Resource.Resource()
fullName: com.microsoft.azure.documentdb.Resource.Resource()
type: Constructor
summary: <p>Constructor. </p>
syntax:
content: protected Resource()
- uid: com.microsoft.azure.documentdb._resource.Resource(String,ObjectMapper)
parent: com.microsoft.azure.documentdb._resource
href: com.microsoft.azure.documentdb._resource.yml
name: Resource(String jsonString, ObjectMapper objectMapper)
nameWithType: Resource.Resource(String jsonString, ObjectMapper objectMapper)
fullName: com.microsoft.azure.documentdb.Resource.Resource(String jsonString, ObjectMapper objectMapper)
type: Constructor
summary: >-
<p>Constructor.</p>
<p></p>
syntax:
content: protected Resource(String jsonString, ObjectMapper objectMapper)
parameters:
- id: jsonString
type: "26831127"
description: <p>the json string that represents the resource. </p>
- id: objectMapper
type: 7db3dbca
description: <p>the custom object mapper </p>
- uid: com.microsoft.azure.documentdb._resource.Resource(String)
parent: com.microsoft.azure.documentdb._resource
href: com.microsoft.azure.documentdb._resource.yml
name: Resource(String jsonString)
nameWithType: Resource.Resource(String jsonString)
fullName: com.microsoft.azure.documentdb.Resource.Resource(String jsonString)
type: Constructor
summary: >-
<p>Constructor.</p>
<p></p>
syntax:
content: protected Resource(String jsonString)
parameters:
- id: jsonString
type: "26831127"
description: <p>the json string that represents the resource. </p>
- uid: com.microsoft.azure.documentdb._resource.Resource(JSONObject)
parent: com.microsoft.azure.documentdb._resource
href: com.microsoft.azure.documentdb._resource.yml
name: Resource(JSONObject jsonObject)
nameWithType: Resource.Resource(JSONObject jsonObject)
fullName: com.microsoft.azure.documentdb.Resource.Resource(JSONObject jsonObject)
type: Constructor
summary: >-
<p>Constructor.</p>
<p></p>
syntax:
content: protected Resource(JSONObject jsonObject)
parameters:
- id: jsonObject
type: 2b3125a5
description: <p>the json object that represents the resource. </p>
- uid: com.microsoft.azure.documentdb._resource.setId(String)
parent: com.microsoft.azure.documentdb._resource
href: com.microsoft.azure.documentdb._resource.yml
name: setId(String id)
nameWithType: Resource.setId(String id)
fullName: com.microsoft.azure.documentdb.Resource.setId(String id)
type: Method
summary: >-
<p>Sets the name of the resource.</p>
<p></p>
syntax:
content: public void setId(String id)
parameters:
- id: id
type: "26831127"
description: <p>the name of the resource. </p>
- uid: com.microsoft.azure.documentdb._resource.setResourceId(String)
parent: com.microsoft.azure.documentdb._resource
href: com.microsoft.azure.documentdb._resource.yml
name: setResourceId(String resourceId)
nameWithType: Resource.setResourceId(String resourceId)
fullName: com.microsoft.azure.documentdb.Resource.setResourceId(String resourceId)
type: Method
summary: >-
<p>Set the ID associated with the resource.</p>
<p></p>
syntax:
content: public void setResourceId(String resourceId)
parameters:
- id: resourceId
type: "26831127"
description: <p>the ID associated with the resource. </p>
- uid: com.microsoft.azure.documentdb._json_serializable.toJson()
parent: com.microsoft.azure.documentdb._json_serializable
href: com.microsoft.azure.documentdb._json_serializable.yml
name: toJson()
nameWithType: JsonSerializable.toJson()
fullName: com.microsoft.azure.documentdb.JsonSerializable.toJson()
type: Method
summary: >-
<p>Converts to a JSON string.</p>
<p></p>
syntax:
content: public String toJson()
return:
type: "26831127"
description: <p>the JSON string. </p>
- uid: com.microsoft.azure.documentdb._json_serializable.toJson(SerializationFormattingPolicy)
parent: com.microsoft.azure.documentdb._json_serializable
href: com.microsoft.azure.documentdb._json_serializable.yml
name: toJson(SerializationFormattingPolicy formattingPolicy)
nameWithType: JsonSerializable.toJson(SerializationFormattingPolicy formattingPolicy)
fullName: com.microsoft.azure.documentdb.JsonSerializable.toJson(SerializationFormattingPolicy formattingPolicy)
type: Method
summary: <p>Converts to a JSON string. </p>
syntax:
content: public String toJson(SerializationFormattingPolicy formattingPolicy)
parameters:
- id: formattingPolicy
type: com.microsoft.azure.documentdb._serialization_formatting_policy
description: <p>the formatting policy instance </p>
return:
type: "26831127"
description: <p>the JSON string. </p>
- uid: com.microsoft.azure.documentdb._json_serializable.toString()
parent: com.microsoft.azure.documentdb._json_serializable
href: com.microsoft.azure.documentdb._json_serializable.yml
name: toString()
nameWithType: JsonSerializable.toString()
fullName: com.microsoft.azure.documentdb.JsonSerializable.toString()
type: Method
summary: >-
<p>Gets Simple String representation of property bag.</p>
<p>For proper conversion to json and inclusion of the default values use <xref uid="com.microsoft.azure.documentdb._json_serializable.toJson()" data-throw-if-not-resolved="false">toJson()</xref>.</p>
<p></p>
syntax:
content: public String toString()
return:
type: "26831127"
description: <p>string representation of property bag. </p>
- uid: com.microsoft.azure.documentdb._json_serializable.toString(int)
parent: com.microsoft.azure.documentdb._json_serializable
href: com.microsoft.azure.documentdb._json_serializable.yml
name: toString(int indentFactor)
nameWithType: JsonSerializable.toString(int indentFactor)
fullName: com.microsoft.azure.documentdb.JsonSerializable.toString(int indentFactor)
type: Method
summary: >-
<p>Gets formatted String representation of property bag.</p>
<p>
<xrefsect id="deprecated_1_deprecated000030">
<xreftitle>Deprecated</xreftitle>
<xrefdescription>
<p>For proper conversion to json and inclusion of the default values use <xref uid="com.microsoft.azure.documentdb._json_serializable.toJson(SerializationFormattingPolicy)" data-throw-if-not-resolved="false">toJson(SerializationFormattingPolicy)</xref>.</p>
</xrefdescription>
</xrefsect>
</p>
syntax:
content: public String toString(int indentFactor)
parameters:
- id: indentFactor
type: f75371fa
description: <p>formatting indentation factor. </p>
return:
type: "26831127"
description: <p>formatted string representation of property bag.</p>
- uid: com.microsoft.azure.documentdb._resource
parent: com.microsoft.azure.documentdb
href: com.microsoft.azure.documentdb._resource.yml
name: Resource
nameWithType: Resource
fullName: com.microsoft.azure.documentdb.Resource
type: Class
summary: <p>Represents the base resource in the Azure Cosmos DB database service. </p>
syntax:
content: public class Resource