Package com.ibm.fhir.model.resource
Class TestScript.Setup.Action.Operation.Builder
- java.lang.Object
-
- com.ibm.fhir.model.builder.AbstractBuilder<Element>
-
- com.ibm.fhir.model.type.Element.Builder
-
- com.ibm.fhir.model.type.BackboneElement.Builder
-
- com.ibm.fhir.model.resource.TestScript.Setup.Action.Operation.Builder
-
- Enclosing class:
- TestScript.Setup.Action.Operation
public static class TestScript.Setup.Action.Operation.Builder extends BackboneElement.Builder
-
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.type.BackboneElement.Builder
modifierExtension
-
Fields inherited from class com.ibm.fhir.model.type.Element.Builder
extension, id
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TestScript.Setup.Action.Operation.Builder
accept(Code accept)
The mime-type to use for RESTful operation in the 'Accept' header.TestScript.Setup.Action.Operation
build()
Build theTestScript.Setup.Action.Operation
TestScript.Setup.Action.Operation.Builder
contentType(Code contentType)
The mime-type to use for RESTful operation in the 'Content-Type' header.TestScript.Setup.Action.Operation.Builder
description(String description)
The description would be used by test engines for tracking and reporting purposes.TestScript.Setup.Action.Operation.Builder
destination(Integer destination)
The server where the request message is destined for.TestScript.Setup.Action.Operation.Builder
encodeRequestUrl(Boolean encodeRequestUrl)
Whether or not to implicitly send the request url in encoded format.TestScript.Setup.Action.Operation.Builder
extension(Extension... extension)
May be used to represent additional information that is not part of the basic definition of the element.TestScript.Setup.Action.Operation.Builder
extension(Collection<Extension> extension)
May be used to represent additional information that is not part of the basic definition of the element.protected TestScript.Setup.Action.Operation.Builder
from(TestScript.Setup.Action.Operation operation)
TestScript.Setup.Action.Operation.Builder
id(String id)
Unique id for the element within a resource (for internal references).TestScript.Setup.Action.Operation.Builder
label(String label)
The label would be used for tracking/logging purposes by test engines.TestScript.Setup.Action.Operation.Builder
method(TestScriptRequestMethodCode method)
The HTTP method the test engine MUST use for this operation regardless of any other operation details.TestScript.Setup.Action.Operation.Builder
modifierExtension(Extension... modifierExtension)
May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants.TestScript.Setup.Action.Operation.Builder
modifierExtension(Collection<Extension> modifierExtension)
May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants.TestScript.Setup.Action.Operation.Builder
origin(Integer origin)
The server where the request message originates from.TestScript.Setup.Action.Operation.Builder
params(String params)
Path plus parameters after [type].TestScript.Setup.Action.Operation.Builder
requestHeader(TestScript.Setup.Action.Operation.RequestHeader... requestHeader)
Header elements would be used to set HTTP headers.TestScript.Setup.Action.Operation.Builder
requestHeader(Collection<TestScript.Setup.Action.Operation.RequestHeader> requestHeader)
Header elements would be used to set HTTP headers.TestScript.Setup.Action.Operation.Builder
requestId(Id requestId)
The fixture id (maybe new) to map to the request.TestScript.Setup.Action.Operation.Builder
resource(FHIRDefinedType resource)
The type of the resource.TestScript.Setup.Action.Operation.Builder
responseId(Id responseId)
The fixture id (maybe new) to map to the response.TestScript.Setup.Action.Operation.Builder
sourceId(Id sourceId)
The id of the fixture used as the body of a PUT or POST request.TestScript.Setup.Action.Operation.Builder
targetId(Id targetId)
Id of fixture used for extracting the [id], [type], and [vid] for GET requests.TestScript.Setup.Action.Operation.Builder
type(Coding type)
Server interaction or operation type.TestScript.Setup.Action.Operation.Builder
url(String url)
Complete request URL.-
Methods inherited from class com.ibm.fhir.model.type.BackboneElement.Builder
from
-
Methods inherited from class com.ibm.fhir.model.type.Element.Builder
from
-
-
-
-
Method Detail
-
id
public TestScript.Setup.Action.Operation.Builder id(String id)
Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.- Overrides:
id
in classBackboneElement.Builder
- Parameters:
id
- Unique id for inter-element referencing- Returns:
- A reference to this Builder instance
-
extension
public TestScript.Setup.Action.Operation.Builder extension(Extension... extension)
May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.Adds new element(s) to the existing list
- Overrides:
extension
in classBackboneElement.Builder
- Parameters:
extension
- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
extension
public TestScript.Setup.Action.Operation.Builder extension(Collection<Extension> extension)
May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.Replaces the existing list with a new one containing elements from the Collection
- Overrides:
extension
in classBackboneElement.Builder
- Parameters:
extension
- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
modifierExtension
public TestScript.Setup.Action.Operation.Builder modifierExtension(Extension... modifierExtension)
May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
Adds new element(s) to the existing list
- Overrides:
modifierExtension
in classBackboneElement.Builder
- Parameters:
modifierExtension
- Extensions that cannot be ignored even if unrecognized- Returns:
- A reference to this Builder instance
-
modifierExtension
public TestScript.Setup.Action.Operation.Builder modifierExtension(Collection<Extension> modifierExtension)
May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
Replaces the existing list with a new one containing elements from the Collection
- Overrides:
modifierExtension
in classBackboneElement.Builder
- Parameters:
modifierExtension
- Extensions that cannot be ignored even if unrecognized- Returns:
- A reference to this Builder instance
-
type
public TestScript.Setup.Action.Operation.Builder type(Coding type)
Server interaction or operation type.- Parameters:
type
- The operation code type that will be executed- Returns:
- A reference to this Builder instance
-
resource
public TestScript.Setup.Action.Operation.Builder resource(FHIRDefinedType resource)
The type of the resource. See http://build.fhir.org/resourcelist.html.- Parameters:
resource
- Resource type- Returns:
- A reference to this Builder instance
-
label
public TestScript.Setup.Action.Operation.Builder label(String label)
The label would be used for tracking/logging purposes by test engines.- Parameters:
label
- Tracking/logging operation label- Returns:
- A reference to this Builder instance
-
description
public TestScript.Setup.Action.Operation.Builder description(String description)
The description would be used by test engines for tracking and reporting purposes.- Parameters:
description
- Tracking/reporting operation description- Returns:
- A reference to this Builder instance
-
accept
public TestScript.Setup.Action.Operation.Builder accept(Code accept)
The mime-type to use for RESTful operation in the 'Accept' header.- Parameters:
accept
- Mime type to accept in the payload of the response, with charset etc.- Returns:
- A reference to this Builder instance
-
contentType
public TestScript.Setup.Action.Operation.Builder contentType(Code contentType)
The mime-type to use for RESTful operation in the 'Content-Type' header.- Parameters:
contentType
- Mime type of the request payload contents, with charset etc.- Returns:
- A reference to this Builder instance
-
destination
public TestScript.Setup.Action.Operation.Builder destination(Integer destination)
The server where the request message is destined for. Must be one of the server numbers listed in TestScript. destination section.- Parameters:
destination
- Server responding to the request- Returns:
- A reference to this Builder instance
-
encodeRequestUrl
public TestScript.Setup.Action.Operation.Builder encodeRequestUrl(Boolean encodeRequestUrl)
Whether or not to implicitly send the request url in encoded format. The default is true to match the standard RESTful client behavior. Set to false when communicating with a server that does not support encoded url paths.This element is required.
- Parameters:
encodeRequestUrl
- Whether or not to send the request url in encoded format- Returns:
- A reference to this Builder instance
-
method
public TestScript.Setup.Action.Operation.Builder method(TestScriptRequestMethodCode method)
The HTTP method the test engine MUST use for this operation regardless of any other operation details.- Parameters:
method
- delete | get | options | patch | post | put | head- Returns:
- A reference to this Builder instance
-
origin
public TestScript.Setup.Action.Operation.Builder origin(Integer origin)
The server where the request message originates from. Must be one of the server numbers listed in TestScript.origin section.- Parameters:
origin
- Server initiating the request- Returns:
- A reference to this Builder instance
-
params
public TestScript.Setup.Action.Operation.Builder params(String params)
Path plus parameters after [type]. Used to set parts of the request URL explicitly.- Parameters:
params
- Explicitly defined path parameters- Returns:
- A reference to this Builder instance
-
requestHeader
public TestScript.Setup.Action.Operation.Builder requestHeader(TestScript.Setup.Action.Operation.RequestHeader... requestHeader)
Header elements would be used to set HTTP headers.Adds new element(s) to the existing list
- Parameters:
requestHeader
- Each operation can have one or more header elements- Returns:
- A reference to this Builder instance
-
requestHeader
public TestScript.Setup.Action.Operation.Builder requestHeader(Collection<TestScript.Setup.Action.Operation.RequestHeader> requestHeader)
Header elements would be used to set HTTP headers.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
requestHeader
- Each operation can have one or more header elements- Returns:
- A reference to this Builder instance
-
requestId
public TestScript.Setup.Action.Operation.Builder requestId(Id requestId)
The fixture id (maybe new) to map to the request.- Parameters:
requestId
- Fixture Id of mapped request- Returns:
- A reference to this Builder instance
-
responseId
public TestScript.Setup.Action.Operation.Builder responseId(Id responseId)
The fixture id (maybe new) to map to the response.- Parameters:
responseId
- Fixture Id of mapped response- Returns:
- A reference to this Builder instance
-
sourceId
public TestScript.Setup.Action.Operation.Builder sourceId(Id sourceId)
The id of the fixture used as the body of a PUT or POST request.- Parameters:
sourceId
- Fixture Id of body for PUT and POST requests- Returns:
- A reference to this Builder instance
-
targetId
public TestScript.Setup.Action.Operation.Builder targetId(Id targetId)
Id of fixture used for extracting the [id], [type], and [vid] for GET requests.- Parameters:
targetId
- Id of fixture used for extracting the [id], [type], and [vid] for GET requests- Returns:
- A reference to this Builder instance
-
url
public TestScript.Setup.Action.Operation.Builder url(String url)
Complete request URL.- Parameters:
url
- Request URL- Returns:
- A reference to this Builder instance
-
build
public TestScript.Setup.Action.Operation build()
- Specified by:
build
in interfaceBuilder<Element>
- Specified by:
build
in classBackboneElement.Builder
- Returns:
- An immutable object of type
TestScript.Setup.Action.Operation
- Throws:
IllegalStateException
- if the current state cannot be built into a valid Operation per the base specification
-
from
protected TestScript.Setup.Action.Operation.Builder from(TestScript.Setup.Action.Operation operation)
-
-