Class Script.Builder
- java.lang.Object
- 
- com.oracle.bmc.apmsynthetics.model.Script.Builder
 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Scriptbuild()Script.Buildercontent(String content)The content of the script.Script.BuildercontentFileName(String contentFileName)File name of the uploaded script content.Script.BuildercontentSizeInBytes(Integer contentSizeInBytes)Size of the script content.Script.BuildercontentType(ContentTypes contentType)Content type of the script.Script.Buildercopy(Script model)Script.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.Script.BuilderdisplayName(String displayName)Unique name that can be edited.Script.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.Script.Builderid(String id)The OCID of the script.Script.BuildermonitorStatusCountMap(MonitorStatusCountMap monitorStatusCountMap)Script.Builderparameters(List<ScriptParameterInfo> parameters)List of script parameters.Script.BuildertimeCreated(Date timeCreated)The time the resource was created, expressed in RFC 3339 timestamp format.Script.BuildertimeUpdated(Date timeUpdated)The time the resource was updated, expressed in RFC 3339 timestamp format.Script.BuildertimeUploaded(Date timeUploaded)The time the script was uploaded.
 
- 
- 
- 
Method Detail- 
idpublic Script.Builder id(String id) The OCID of the script.scriptId is mandatory for creation of SCRIPTED_BROWSER and SCRIPTED_REST monitor types. For other monitor types, it should be set to null. - Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
displayNamepublic Script.Builder displayName(String displayName) Unique name that can be edited.The name should not contain any confidential information. - Parameters:
- displayName- the value to set
- Returns:
- this builder
 
 - 
contentTypepublic Script.Builder contentType(ContentTypes contentType) Content type of the script.- Parameters:
- contentType- the value to set
- Returns:
- this builder
 
 - 
contentpublic Script.Builder content(String content) The content of the script.It may contain custom-defined tags that can be used for setting dynamic parameters. The format to set dynamic parameters is: param name param value isParamValueSecret(true/false) param name param name param value - Parameters:
- content- the value to set
- Returns:
- this builder
 
 - 
timeUploadedpublic Script.Builder timeUploaded(Date timeUploaded) The time the script was uploaded.- Parameters:
- timeUploaded- the value to set
- Returns:
- this builder
 
 - 
contentSizeInBytespublic Script.Builder contentSizeInBytes(Integer contentSizeInBytes) Size of the script content.- Parameters:
- contentSizeInBytes- the value to set
- Returns:
- this builder
 
 - 
contentFileNamepublic Script.Builder contentFileName(String contentFileName) File name of the uploaded script content.- Parameters:
- contentFileName- the value to set
- Returns:
- this builder
 
 - 
parameterspublic Script.Builder parameters(List<ScriptParameterInfo> parameters) List of script parameters.Example: [{“scriptParameter”: {“paramName”: “userid”, “paramValue”:“testuser”, “isSecret”: false}, “isOverwritten”: false}] - Parameters:
- parameters- the value to set
- Returns:
- this builder
 
 - 
monitorStatusCountMappublic Script.Builder monitorStatusCountMap(MonitorStatusCountMap monitorStatusCountMap) 
 - 
timeCreatedpublic Script.Builder timeCreated(Date timeCreated) The time the resource was created, expressed in RFC 3339 timestamp format.Example: 2020-02-12T22:47:12.613Z - Parameters:
- timeCreated- the value to set
- Returns:
- this builder
 
 - 
timeUpdatedpublic Script.Builder timeUpdated(Date timeUpdated) The time the resource was updated, expressed in RFC 3339 timestamp format.Example: 2020-02-13T22:47:12.613Z - Parameters:
- timeUpdated- the value to set
- Returns:
- this builder
 
 - 
freeformTagspublic Script.Builder freeformTags(Map<String,String> freeformTags) Simple key-value pair that is applied without any predefined name, type or scope.Exists for cross-compatibility only. Example: {“bar-key”: “value”} - Parameters:
- freeformTags- the value to set
- Returns:
- this builder
 
 - 
definedTagspublic Script.Builder definedTags(Map<String,Map<String,Object>> definedTags) Defined tags for this resource.Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}} - Parameters:
- definedTags- the value to set
- Returns:
- this builder
 
 - 
buildpublic Script build() 
 - 
copypublic Script.Builder copy(Script model) 
 
- 
 
-