Package com.oracle.bmc.dns.responses
Class GetViewResponse.Builder
- java.lang.Object
-
- com.oracle.bmc.dns.responses.GetViewResponse.Builder
-
- All Implemented Interfaces:
BmcResponse.Builder<GetViewResponse>
- Enclosing class:
- GetViewResponse
public static class GetViewResponse.Builder extends Object implements BmcResponse.Builder<GetViewResponse>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetViewResponse.Builder__httpStatusCode__(int __httpStatusCode__)GetViewResponsebuild()Build the response object.GetViewResponse.Buildercopy(GetViewResponse o)Copy method to populate the builder with values from the given instance.GetViewResponse.Builderetag(String etag)The current version of the resource, ending with a representation-specific suffix.GetViewResponse.Builderheaders(Map<String,List<String>> headers)GetViewResponse.BuilderisNotModified(boolean isNotModified)Flag to indicate whether or not the object was modified.GetViewResponse.BuilderopcRequestId(String opcRequestId)Unique Oracle-assigned identifier for the request.GetViewResponse.Builderview(View view)The returned View instance, or null ifGetViewResponse.isNotModified()is true.
-
-
-
Method Detail
-
__httpStatusCode__
public GetViewResponse.Builder __httpStatusCode__(int __httpStatusCode__)
- Specified by:
__httpStatusCode__in interfaceBmcResponse.Builder<GetViewResponse>
-
headers
public GetViewResponse.Builder headers(Map<String,List<String>> headers)
- Specified by:
headersin interfaceBmcResponse.Builder<GetViewResponse>
-
etag
public GetViewResponse.Builder etag(String etag)
The current version of the resource, ending with a representation-specific suffix.This value may be used in If-Match and If-None-Match headers for later requests of the same resource.
- Parameters:
etag- the value to set- Returns:
- this builder
-
opcRequestId
public GetViewResponse.Builder opcRequestId(String opcRequestId)
Unique Oracle-assigned identifier for the request.If you need to contact Oracle about a particular request, please provide the request ID.
- Parameters:
opcRequestId- the value to set- Returns:
- this builder
-
view
public GetViewResponse.Builder view(View view)
The returned View instance, or null ifGetViewResponse.isNotModified()is true.- Parameters:
view- the value to set- Returns:
- this builder
-
isNotModified
public GetViewResponse.Builder isNotModified(boolean isNotModified)
Flag to indicate whether or not the object was modified.If this is true, the getter for the object itself will return null. Callers should check this if they specified one of the request params that might result in a conditional response (like ‘if-match’/‘if-none-match’).
- Specified by:
isNotModifiedin interfaceBmcResponse.Builder<GetViewResponse>- Parameters:
true- if the object was not modified
-
copy
public GetViewResponse.Builder copy(GetViewResponse o)
Copy method to populate the builder with values from the given instance.- Specified by:
copyin interfaceBmcResponse.Builder<GetViewResponse>- Parameters:
o- other request from which to copy values- Returns:
- this builder instance
-
build
public GetViewResponse build()
Build the response object.- Specified by:
buildin interfaceBmcResponse.Builder<GetViewResponse>- Returns:
- the response object
-
-