You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a87110e
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: azure-blob-payloads/src/main/java/com/microsoft/durabletask/azureblobpayloads/BlobPayloadStoreOptions.java
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -138,6 +138,7 @@ public static final class Builder {
138
138
/**
139
139
* Sets the Azure Storage connection string. Mutually exclusive with
140
140
* {@link #setBlobServiceEndpoint(String)} and {@link #setBlobServiceClient(BlobServiceClient)}.
141
+
* Setting this clears any previously set endpoint or pre-configured client.
141
142
*
142
143
* @param connectionString the connection string
143
144
* @return this builder
@@ -147,12 +148,16 @@ public Builder setConnectionString(String connectionString) {
147
148
thrownewIllegalArgumentException("connectionString must not be null or empty");
148
149
}
149
150
this.connectionString = connectionString;
151
+
this.blobServiceEndpoint = null;
152
+
this.credential = null;
153
+
this.blobServiceClient = null;
150
154
returnthis;
151
155
}
152
156
153
157
/**
154
158
* Sets the Azure Blob Storage service endpoint. Use with {@link #setCredential(TokenCredential)}.
155
159
* Mutually exclusive with {@link #setConnectionString(String)} and {@link #setBlobServiceClient(BlobServiceClient)}.
160
+
* Setting this clears any previously set connection string or pre-configured client.
156
161
*
157
162
* @param blobServiceEndpoint the blob service endpoint URL
158
163
* @return this builder
@@ -162,6 +167,8 @@ public Builder setBlobServiceEndpoint(String blobServiceEndpoint) {
162
167
thrownewIllegalArgumentException("blobServiceEndpoint must not be null or empty");
163
168
}
164
169
this.blobServiceEndpoint = blobServiceEndpoint;
170
+
this.connectionString = null;
171
+
this.blobServiceClient = null;
165
172
returnthis;
166
173
}
167
174
@@ -183,6 +190,7 @@ public Builder setCredential(TokenCredential credential) {
183
190
/**
184
191
* Sets a pre-configured BlobServiceClient. Mutually exclusive with
185
192
* {@link #setConnectionString(String)} and {@link #setBlobServiceEndpoint(String)}.
193
+
* Setting this clears any previously set connection string or endpoint.
186
194
*
187
195
* @param blobServiceClient the pre-configured client
188
196
* @return this builder
@@ -192,6 +200,9 @@ public Builder setBlobServiceClient(BlobServiceClient blobServiceClient) {
192
200
thrownewIllegalArgumentException("blobServiceClient must not be null");
0 commit comments