Skip to content

Commit 1af73ac

Browse files
docs: note required fields in builder javadoc (#298)
1 parent 648e2e6 commit 1af73ac

File tree

210 files changed

+17946
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

210 files changed

+17946
-0
lines changed

orb-java-client-okhttp/src/main/kotlin/com/withorb/api/client/okhttp/OrbOkHttpClient.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class OrbOkHttpClient private constructor() {
1818

1919
companion object {
2020

21+
/** Returns a mutable builder for constructing an instance of [OrbOkHttpClient]. */
2122
@JvmStatic fun builder() = Builder()
2223

2324
@JvmStatic fun fromEnv(): OrbClient = builder().fromEnv().build()

orb-java-client-okhttp/src/main/kotlin/com/withorb/api/client/okhttp/OrbOkHttpClientAsync.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class OrbOkHttpClientAsync private constructor() {
1818

1919
companion object {
2020

21+
/** Returns a mutable builder for constructing an instance of [OrbOkHttpClientAsync]. */
2122
@JvmStatic fun builder() = Builder()
2223

2324
@JvmStatic fun fromEnv(): OrbClientAsync = builder().fromEnv().build()

orb-java-core/src/main/kotlin/com/withorb/api/core/ClientOptions.kt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,15 @@ private constructor(
3333

3434
const val PRODUCTION_URL = "https://api.withorb.com/v1"
3535

36+
/**
37+
* Returns a mutable builder for constructing an instance of [ClientOptions].
38+
*
39+
* The following fields are required:
40+
* ```java
41+
* .httpClient()
42+
* .apiKey()
43+
* ```
44+
*/
3645
@JvmStatic fun builder() = Builder()
3746

3847
@JvmStatic fun fromEnv(): ClientOptions = builder().fromEnv().build()

orb-java-core/src/main/kotlin/com/withorb/api/core/Timeout.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ private constructor(
6060

6161
@JvmStatic fun default() = builder().build()
6262

63+
/** Returns a mutable builder for constructing an instance of [Timeout]. */
6364
@JvmStatic fun builder() = Builder()
6465
}
6566

orb-java-core/src/main/kotlin/com/withorb/api/errors/OrbError.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ private constructor(
2727

2828
companion object {
2929

30+
/** Returns a mutable builder for constructing an instance of [OrbError]. */
3031
@JvmStatic fun builder() = Builder()
3132
}
3233

orb-java-core/src/main/kotlin/com/withorb/api/models/Alert.kt

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,23 @@ private constructor(
154154

155155
companion object {
156156

157+
/**
158+
* Returns a mutable builder for constructing an instance of [Alert].
159+
*
160+
* The following fields are required:
161+
* ```java
162+
* .id()
163+
* .createdAt()
164+
* .currency()
165+
* .customer()
166+
* .enabled()
167+
* .metric()
168+
* .plan()
169+
* .subscription()
170+
* .thresholds()
171+
* .type()
172+
* ```
173+
*/
157174
@JvmStatic fun builder() = Builder()
158175
}
159176

@@ -358,6 +375,15 @@ private constructor(
358375

359376
companion object {
360377

378+
/**
379+
* Returns a mutable builder for constructing an instance of [Customer].
380+
*
381+
* The following fields are required:
382+
* ```java
383+
* .id()
384+
* .externalCustomerId()
385+
* ```
386+
*/
361387
@JvmStatic fun builder() = Builder()
362388
}
363389

@@ -467,6 +493,14 @@ private constructor(
467493

468494
companion object {
469495

496+
/**
497+
* Returns a mutable builder for constructing an instance of [Metric].
498+
*
499+
* The following fields are required:
500+
* ```java
501+
* .id()
502+
* ```
503+
*/
470504
@JvmStatic fun builder() = Builder()
471505
}
472506

@@ -598,6 +632,17 @@ private constructor(
598632

599633
companion object {
600634

635+
/**
636+
* Returns a mutable builder for constructing an instance of [Plan].
637+
*
638+
* The following fields are required:
639+
* ```java
640+
* .id()
641+
* .externalPlanId()
642+
* .name()
643+
* .planVersion()
644+
* ```
645+
*/
601646
@JvmStatic fun builder() = Builder()
602647
}
603648

@@ -742,6 +787,14 @@ private constructor(
742787

743788
companion object {
744789

790+
/**
791+
* Returns a mutable builder for constructing an instance of [Subscription].
792+
*
793+
* The following fields are required:
794+
* ```java
795+
* .id()
796+
* ```
797+
*/
745798
@JvmStatic fun builder() = Builder()
746799
}
747800

@@ -846,6 +899,14 @@ private constructor(
846899

847900
companion object {
848901

902+
/**
903+
* Returns a mutable builder for constructing an instance of [Threshold].
904+
*
905+
* The following fields are required:
906+
* ```java
907+
* .value()
908+
* ```
909+
*/
849910
@JvmStatic fun builder() = Builder()
850911
}
851912

orb-java-core/src/main/kotlin/com/withorb/api/models/AlertCreateForCustomerParams.kt

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,15 @@ private constructor(
135135

136136
companion object {
137137

138+
/**
139+
* Returns a mutable builder for constructing an instance of [Body].
140+
*
141+
* The following fields are required:
142+
* ```java
143+
* .currency()
144+
* .type()
145+
* ```
146+
*/
138147
@JvmStatic fun builder() = Builder()
139148
}
140149

@@ -237,6 +246,16 @@ private constructor(
237246

238247
companion object {
239248

249+
/**
250+
* Returns a mutable builder for constructing an instance of [AlertCreateForCustomerParams].
251+
*
252+
* The following fields are required:
253+
* ```java
254+
* .customerId()
255+
* .currency()
256+
* .type()
257+
* ```
258+
*/
240259
@JvmStatic fun builder() = Builder()
241260
}
242261

@@ -572,6 +591,14 @@ private constructor(
572591

573592
companion object {
574593

594+
/**
595+
* Returns a mutable builder for constructing an instance of [Threshold].
596+
*
597+
* The following fields are required:
598+
* ```java
599+
* .value()
600+
* ```
601+
*/
575602
@JvmStatic fun builder() = Builder()
576603
}
577604

orb-java-core/src/main/kotlin/com/withorb/api/models/AlertCreateForExternalCustomerParams.kt

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,15 @@ private constructor(
135135

136136
companion object {
137137

138+
/**
139+
* Returns a mutable builder for constructing an instance of [Body].
140+
*
141+
* The following fields are required:
142+
* ```java
143+
* .currency()
144+
* .type()
145+
* ```
146+
*/
138147
@JvmStatic fun builder() = Builder()
139148
}
140149

@@ -237,6 +246,17 @@ private constructor(
237246

238247
companion object {
239248

249+
/**
250+
* Returns a mutable builder for constructing an instance of
251+
* [AlertCreateForExternalCustomerParams].
252+
*
253+
* The following fields are required:
254+
* ```java
255+
* .externalCustomerId()
256+
* .currency()
257+
* .type()
258+
* ```
259+
*/
240260
@JvmStatic fun builder() = Builder()
241261
}
242262

@@ -577,6 +597,14 @@ private constructor(
577597

578598
companion object {
579599

600+
/**
601+
* Returns a mutable builder for constructing an instance of [Threshold].
602+
*
603+
* The following fields are required:
604+
* ```java
605+
* .value()
606+
* ```
607+
*/
580608
@JvmStatic fun builder() = Builder()
581609
}
582610

orb-java-core/src/main/kotlin/com/withorb/api/models/AlertCreateForSubscriptionParams.kt

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,15 @@ private constructor(
138138

139139
companion object {
140140

141+
/**
142+
* Returns a mutable builder for constructing an instance of [Body].
143+
*
144+
* The following fields are required:
145+
* ```java
146+
* .thresholds()
147+
* .type()
148+
* ```
149+
*/
141150
@JvmStatic fun builder() = Builder()
142151
}
143152

@@ -238,6 +247,17 @@ private constructor(
238247

239248
companion object {
240249

250+
/**
251+
* Returns a mutable builder for constructing an instance of
252+
* [AlertCreateForSubscriptionParams].
253+
*
254+
* The following fields are required:
255+
* ```java
256+
* .subscriptionId()
257+
* .thresholds()
258+
* .type()
259+
* ```
260+
*/
241261
@JvmStatic fun builder() = Builder()
242262
}
243263

@@ -459,6 +479,14 @@ private constructor(
459479

460480
companion object {
461481

482+
/**
483+
* Returns a mutable builder for constructing an instance of [Threshold].
484+
*
485+
* The following fields are required:
486+
* ```java
487+
* .value()
488+
* ```
489+
*/
462490
@JvmStatic fun builder() = Builder()
463491
}
464492

orb-java-core/src/main/kotlin/com/withorb/api/models/AlertDisableParams.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@ private constructor(
6161

6262
companion object {
6363

64+
/**
65+
* Returns a mutable builder for constructing an instance of [AlertDisableParams].
66+
*
67+
* The following fields are required:
68+
* ```java
69+
* .alertConfigurationId()
70+
* ```
71+
*/
6472
@JvmStatic fun builder() = Builder()
6573
}
6674

0 commit comments

Comments
 (0)