@@ -69,14 +69,11 @@ following operations:
6969- Construct a ``MongoClientSettings`` instance using the
7070 ``MongoClientSettings.Builder`` class.
7171- Specify a server to connect to using a ``ServerAddress`` instance.
72- - Instantiate a ``MongoClient`` using the ``MongoClients .create()`` method
72+ - Instantiate a ``MongoClient`` using the ``MongoClient .create()`` method
7373 and pass your ``MongoClientSettings`` instance as a parameter.
7474
75- .. literalinclude:: /includes/fundamentals/code-snippets/StableApiExample.java
76- :start-after: start serverAPIVersion
77- :end-before: end serverAPIVersion
78- :language: java
79- :dedent:
75+ .. literalinclude:: /examples/generated/StableApiTest.snippet.connect-to-stable-api.kt
76+ :language: kotlin
8077
8178.. warning::
8279
@@ -95,14 +92,14 @@ following operations:
9592For more information on the methods and classes referenced in this
9693section, see the following API Documentation:
9794
98- - `ServerApi <{+api+}/apidocs/mongodb-driver-core/com/mongodb/ServerApi.html >`__
99- - `ServerApi.Builder <{+api+}/apidocs/mongodb-driver-core/com/mongodb/ServerApi.Builder.html >`__
100- - `ServerApiVersion <{+api+}/apidocs/mongodb-driver-core/com/mongodb/ServerApiVersion.html >`__
101- - `ServerAddress <{+api+}/apidocs/mongodb-driver-core/com/mongodb/ServerAddress.html >`__
102- - `MongoClientSettings <{+api+}/apidocs/mongodb-driver-core/com/mongodb/MongoClientSettings.html >`__
103- - `MongoClientSettings.Builder <{+api+}/apidocs/mongodb-driver-core/com/mongodb/MongoClientSettings.Builder.html >`__
104- - `MongoClients .create() <{+api+}/apidocs/mongodb-driver-sync/com/mongodb/client/MongoClients.html#create(com.mongodb.MongoClientSettings )>`__
105- - `MongoClient <{+api+}/apidocs/mongodb-driver-sync/com/mongodb/client/MongoClient.html >`__
95+ - `ServerApi <TODO:(DOCSP-29169) >`__
96+ - `ServerApi.Builder <TODO:(DOCSP-29169) >`__
97+ - `ServerApiVersion <TODO:(DOCSP-29169) >`__
98+ - `ServerAddress <TODO:(DOCSP-29169) >`__
99+ - `MongoClientSettings <TODO:(DOCSP-29169) >`__
100+ - `MongoClientSettings.Builder <TODO:(DOCSP-29169) >`__
101+ - `MongoClient .create() <TODO:(DOCSP-29169 )>`__
102+ - `MongoClient <TODO:(DOCSP-29169) >`__
106103
107104.. _versioned-api-options:
108105.. _stable-api-options:
@@ -134,15 +131,12 @@ described in the following table.
134131The following example shows how you can set the two options on an instance
135132of ``ServerApi`` by chaining methods on the ``ServerApi.Builder``:
136133
137- .. literalinclude:: /includes/fundamentals/code-snippets/StableApiExample.java
138- :start-after: start apiVersionOptions
139- :end-before: end apiVersionOptions
140- :language: java
141- :dedent:
134+ .. literalinclude:: /examples/generated/StableApiTest.snippet.stable-api-settings.kt
135+ :language: kotlin
142136
143137For more information on the options in this section, see the following
144138API Documentation:
145139
146- - `strict() <{+api+}/apidocs/mongodb-driver-core/com/mongodb/ServerApi.Builder.html#strict(boolean )>`__
147- - `deprecationErrors() <{+api+}/apidocs/mongodb-driver-core/com/mongodb/ServerApi.Builder.html# >`__
140+ - `strict() <TODO:(DOCSP-29169 )>`__
141+ - `deprecationErrors() <TODO:(DOCSP-29169) >`__
148142
0 commit comments