Class CreateAgentResponse.Builder
- java.lang.Object
-
- com.oracle.bmc.generativeaiagent.responses.CreateAgentResponse.Builder
-
- All Implemented Interfaces:
BmcResponse.Builder<CreateAgentResponse>
- Enclosing class:
- CreateAgentResponse
public static class CreateAgentResponse.Builder extends Object implements BmcResponse.Builder<CreateAgentResponse>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateAgentResponse.Builder
__httpStatusCode__(int __httpStatusCode__)
CreateAgentResponse.Builder
agent(Agent agent)
The returned Agent instance.CreateAgentResponse
build()
Build the response object.CreateAgentResponse.Builder
contentLocation(String contentLocation)
Same as location.CreateAgentResponse.Builder
copy(CreateAgentResponse o)
Copy method to populate the builder with values from the given instance.CreateAgentResponse.Builder
etag(String etag)
For optimistic concurrency control.CreateAgentResponse.Builder
headers(Map<String,List<String>> headers)
CreateAgentResponse.Builder
location(String location)
URL for the created agent.CreateAgentResponse.Builder
opcRequestId(String opcRequestId)
Unique Oracle-assigned identifier for the request.CreateAgentResponse.Builder
opcWorkRequestId(String opcWorkRequestId)
The OCID of the asynchronous work request.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.oracle.bmc.responses.BmcResponse.Builder
isNotModified
-
-
-
-
Method Detail
-
__httpStatusCode__
public CreateAgentResponse.Builder __httpStatusCode__(int __httpStatusCode__)
- Specified by:
__httpStatusCode__
in interfaceBmcResponse.Builder<CreateAgentResponse>
-
headers
public CreateAgentResponse.Builder headers(Map<String,List<String>> headers)
- Specified by:
headers
in interfaceBmcResponse.Builder<CreateAgentResponse>
-
location
public CreateAgentResponse.Builder location(String location)
URL for the created agent.The agent OCID is generated after this request is sent.
- Parameters:
location
- the value to set- Returns:
- this builder
-
contentLocation
public CreateAgentResponse.Builder contentLocation(String contentLocation)
Same as location.- Parameters:
contentLocation
- the value to set- Returns:
- this builder
-
etag
public CreateAgentResponse.Builder etag(String etag)
For optimistic concurrency control.See if-match.
- Parameters:
etag
- the value to set- Returns:
- this builder
-
opcWorkRequestId
public CreateAgentResponse.Builder opcWorkRequestId(String opcWorkRequestId)
The OCID of the asynchronous work request.Use GetWorkRequest with this ID to track the status of the request.
- Parameters:
opcWorkRequestId
- the value to set- Returns:
- this builder
-
opcRequestId
public CreateAgentResponse.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
-
agent
public CreateAgentResponse.Builder agent(Agent agent)
The returned Agent instance.- Parameters:
agent
- the value to set- Returns:
- this builder
-
copy
public CreateAgentResponse.Builder copy(CreateAgentResponse o)
Copy method to populate the builder with values from the given instance.- Specified by:
copy
in interfaceBmcResponse.Builder<CreateAgentResponse>
- Parameters:
o
- other request from which to copy values- Returns:
- this builder instance
-
build
public CreateAgentResponse build()
Build the response object.- Specified by:
build
in interfaceBmcResponse.Builder<CreateAgentResponse>
- Returns:
- the response object
-
-