Skip to content

Commit 7bc879f

Browse files
author
Caitlin Bales (MSFT)
committed
Added missing params and return types
1 parent 7c7b079 commit 7bc879f

8 files changed

+48
-0
lines changed

Templates/Java/requests_generated/BaseEntityReferenceRequestBuilder.java.tt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,18 @@
2222

2323
/**
2424
* Creates the request
25+
*
26+
* @return The <#=ITypeReferenceRequest(c)#> instance
2527
*/
2628
public <#=ITypeReferenceRequest(c)#> buildRequest() {
2729
return buildRequest(getOptions());
2830
}
2931

3032
/**
3133
* Creates the request with specific requestOptions instead of the existing requestOptions
34+
*
35+
* @param requestOptions The options for this request
36+
* @return The <#=ITypeReferenceRequest(c)#> instance
3237
*/
3338
public <#=ITypeReferenceRequest(c)#> buildRequest(final java.util.List<? extends Option> requestOptions) {
3439
return new <#=TypeReferenceRequest(c)#>(getRequestUrl(), getClient(), requestOptions);

Templates/Java/requests_generated/BaseEntityRequestBuilder.java.tt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,18 @@
2121

2222
/**
2323
* Creates the request
24+
*
25+
* @return The <#=ITypeRequest(c)#> instance
2426
*/
2527
public <#=ITypeRequest(c)#> buildRequest() {
2628
return buildRequest(getOptions());
2729
}
2830

2931
/**
3032
* Creates the request with specific requestOptions instead of the existing requestOptions
33+
*
34+
* @param requestOptions The options for this request
35+
* @return The <#=ITypeRequest(c)#> instance
3136
*/
3237
public <#=ITypeRequest(c)#> buildRequest(final java.util.List<? extends Option> requestOptions) {
3338
return new <#=TypeRequest(c)#>(getRequestUrl(), getClient(), requestOptions);
@@ -56,6 +61,8 @@ if (c.AsOdcmClass() != null)
5661

5762
/**
5863
* Gets the request builder for <#=TypeName(prop)#>.
64+
*
65+
* @return The <#=ITypeRequestBuilder(prop)#> instance
5966
*/
6067
public <#=ITypeRequestBuilder(prop)#> <#=sanitizedProperty#>() {
6168
return new <#=TypeRequestBuilder(prop)#>(getRequestUrlWithAdditionalSegment("<#=prop.Name#>"), getClient(), null);

Templates/Java/requests_generated/BaseEntityStreamRequestBuilder.java.tt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,18 @@
2121

2222
/**
2323
* Creates the request
24+
*
25+
* @return The <#=ITypeStreamRequest(c)#> instance
2426
*/
2527
public <#=ITypeStreamRequest(c)#> buildRequest() {
2628
return buildRequest(getOptions());
2729
}
2830

2931
/**
3032
* Creates the request with specific options instead of the existing options
33+
*
34+
* @param requestOptions The options for this request
35+
* @return The <#=ITypeStreamRequest(c)#> instance
3136
*/
3237
public <#=ITypeStreamRequest(c)#> buildRequest(final java.util.List<? extends Option> requestOptions) {
3338
return new <#=TypeStreamRequest(c)#>(getRequestUrl(), getClient(), requestOptions);
@@ -53,6 +58,8 @@ if (c.AsOdcmClass() != null)
5358

5459
/**
5560
* Gets the request builder for <#=TypeName(prop)#>.
61+
*
62+
* @return The <#=ITypeRequestBuilder(prop)#>
5663
*/
5764
public <#=ITypeRequestBuilder(prop)#> <#=prop.Name#>() {
5865
return new <#=TypeRequestBuilder(prop)#>(getRequestUrlWithAdditionalSegment("<#=prop.Name#>"), getClient(), null);

Templates/Java/requests_generated/BaseEntityWithReferenceRequestBuilder.java.tt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,18 @@
2121

2222
/**
2323
* Creates the request
24+
*
25+
* @return The <#=ITypeWithReferencesRequest(c)#> instance
2426
*/
2527
public <#=ITypeWithReferencesRequest(c)#> buildRequest() {
2628
return buildRequest(getOptions());
2729
}
2830

2931
/**
3032
* Creates the request with specific options instead of the existing options
33+
*
34+
* @param requestOptions The options for this request
35+
* @return The <#=ITypeWithReferencesRequest(c)#> instance
3136
*/
3237
public <#=ITypeWithReferencesRequest(c)#> buildRequest(final java.util.List<? extends Option> requestOptions) {
3338
return new <#=TypeWithReferencesRequest(c)#>(getRequestUrl(), getClient(), requestOptions);

Templates/Java/requests_generated/IBaseEntityReferenceRequestBuilder.java.tt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,16 @@
1010

1111
/**
1212
* Creates the request
13+
*
14+
* @return The <#=ITypeReferenceRequest(c)#> instance
1315
*/
1416
<#=ITypeReferenceRequest(c)#> buildRequest();
1517

1618
/**
1719
* Creates the request with specific options instead of the existing options
20+
*
21+
* @param requestOptions The options for this request
22+
* @return The <#=ITypeReferenceRequest(c)#> instance
1823
*/
1924
<#=ITypeReferenceRequest(c)#> buildRequest(final java.util.List<? extends Option> requestOptions);
2025
}

Templates/Java/requests_generated/IBaseEntityRequestBuilder.java.tt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,16 @@
99
<#=CreateInterfaceDef(IBaseTypeRequestBuilder(c), "IRequestBuilder")#>
1010
/**
1111
* Creates the request
12+
*
13+
* @return The <#=ITypeRequest(c)#> instance
1214
*/
1315
<#=ITypeRequest(c)#> buildRequest();
1416

1517
/**
1618
* Creates the request with specific options instead of the existing options
19+
*
20+
* @param requestOptions The options for this request
21+
* @return The <#=ITypeRequest(c)#> instance
1722
*/
1823
<#=ITypeRequest(c)#> buildRequest(final java.util.List<? extends Option> requestOptions);
1924
<#
@@ -36,6 +41,8 @@ if (c.AsOdcmClass() != null)
3641

3742
/**
3843
* Gets the request builder for <#=TypeName(prop)#>.
44+
*
45+
* @return The <#=ITypeRequestBuilder(prop)#> instance
3946
*/
4047
<#=ITypeRequestBuilder(prop)#> <#=sanitizedName.ToLowerFirstChar()#>();
4148
<#

Templates/Java/requests_generated/IBaseEntityStreamRequestBuilder.java.tt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,16 @@
1010

1111
/**
1212
* Creates the request
13+
*
14+
* @return The <#=ITypeStreamRequest(c)#> instance
1315
*/
1416
<#=ITypeStreamRequest(c)#> buildRequest();
1517

1618
/**
1719
* Creates the request with specific options instead of the existing options
20+
*
21+
* @param requestOptions The options for this request
22+
* @return The <#=ITypeStreamRequest(c)#> instance
1823
*/
1924
<#=ITypeStreamRequest(c)#> buildRequest(final java.util.List<? extends Option> requestOptions);
2025
<#
@@ -35,6 +40,8 @@ if (c.AsOdcmClass() != null)
3540

3641
/**
3742
* Gets the request builder for <#=TypeName(prop)#>.
43+
*
44+
* @return The <#=ITypeRequestBuilder(prop)#> instance
3845
*/
3946
<#=ITypeRequestBuilder(prop)#> <#=prop.Name#>();
4047
<#

Templates/Java/requests_generated/IBaseEntityWithReferenceRequestBuilder.java.tt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,16 @@
1010

1111
/**
1212
* Creates the request
13+
*
14+
* @return The <#=ITypeWithReferencesRequest(c)#> instance
1315
*/
1416
<#=ITypeWithReferencesRequest(c)#> buildRequest();
1517

1618
/**
1719
* Creates the request with specific options instead of the existing options
20+
*
21+
* @param requestOptions The options for this request
22+
* @return The <#=ITypeWithReferencesRequest(c)#> instance
1823
*/
1924
<#=ITypeWithReferencesRequest(c)#> buildRequest(final java.util.List<? extends Option> requestOptions);
2025

0 commit comments

Comments
 (0)