Class ApiMetadata.Builder
- java.lang.Object
-
- com.oracle.bmc.apiaccesscontrol.model.ApiMetadata.Builder
-
- Enclosing class:
- ApiMetadata
public static class ApiMetadata.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiMetadata.BuilderapiName(String apiName)The name of the api to execute the api request.ApiMetadatabuild()ApiMetadata.Buildercopy(ApiMetadata model)ApiMetadata.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.ApiMetadata.BuilderdisplayName(String displayName)The operation Name of the api.ApiMetadata.BuilderentityType(String entityType)ResourceType to which the apiMetadata belongs to.ApiMetadata.Builderfields(List<String> fields)List of the fields that is use while calling post or put for the data.ApiMetadata.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.ApiMetadata.Builderid(String id)The OCID of the ApiDetail.ApiMetadata.BuilderlifecycleDetails(String lifecycleDetails)A message that describes the current state of the ApiMetadata in more detail.ApiMetadata.BuilderlifecycleState(ApiMetadata.LifecycleState lifecycleState)The current state of the ApiMetadata.ApiMetadata.Builderpath(String path)rest path of the api.ApiMetadata.BuilderserviceName(String serviceName)The service Name to which the api belongs to.ApiMetadata.BuildersystemTags(Map<String,Map<String,Object>> systemTags)System tags for this resource.ApiMetadata.BuildertimeCreated(Date timeCreated)The date and time the PrivilegedApiControl was created, in the format defined by RFC 3339.ApiMetadata.BuildertimeDeleted(Date timeDeleted)The date and time the PrivilegedApiControl was marked for delete, in the format defined by RFC 3339.ApiMetadata.BuildertimeUpdated(Date timeUpdated)The date and time the PrivilegedApiControl was updated, in the format defined by RFC 3339.
-
-
-
Method Detail
-
id
public ApiMetadata.Builder id(String id)
The OCID of the ApiDetail.- Parameters:
id- the value to set- Returns:
- this builder
-
serviceName
public ApiMetadata.Builder serviceName(String serviceName)
The service Name to which the api belongs to.- Parameters:
serviceName- the value to set- Returns:
- this builder
-
displayName
public ApiMetadata.Builder displayName(String displayName)
The operation Name of the api.The name must be unique.
- Parameters:
displayName- the value to set- Returns:
- this builder
-
path
public ApiMetadata.Builder path(String path)
rest path of the api.- Parameters:
path- the value to set- Returns:
- this builder
-
entityType
public ApiMetadata.Builder entityType(String entityType)
ResourceType to which the apiMetadata belongs to.- Parameters:
entityType- the value to set- Returns:
- this builder
-
apiName
public ApiMetadata.Builder apiName(String apiName)
The name of the api to execute the api request.- Parameters:
apiName- the value to set- Returns:
- this builder
-
fields
public ApiMetadata.Builder fields(List<String> fields)
List of the fields that is use while calling post or put for the data.- Parameters:
fields- the value to set- Returns:
- this builder
-
timeCreated
public ApiMetadata.Builder timeCreated(Date timeCreated)
The date and time the PrivilegedApiControl was created, in the format defined by RFC 3339.Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeUpdated
public ApiMetadata.Builder timeUpdated(Date timeUpdated)
The date and time the PrivilegedApiControl was updated, in the format defined by RFC 3339.Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeUpdated- the value to set- Returns:
- this builder
-
timeDeleted
public ApiMetadata.Builder timeDeleted(Date timeDeleted)
The date and time the PrivilegedApiControl was marked for delete, in the format defined by RFC 3339.Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeDeleted- the value to set- Returns:
- this builder
-
lifecycleState
public ApiMetadata.Builder lifecycleState(ApiMetadata.LifecycleState lifecycleState)
The current state of the ApiMetadata.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
lifecycleDetails
public ApiMetadata.Builder lifecycleDetails(String lifecycleDetails)
A message that describes the current state of the ApiMetadata in more detail.For example, can be used to provide actionable information for a resource in the Failed state.
- Parameters:
lifecycleDetails- the value to set- Returns:
- this builder
-
freeformTags
public ApiMetadata.Builder freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {"Department": "Finance"}
- Parameters:
freeformTags- the value to set- Returns:
- this builder
-
definedTags
public ApiMetadata.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {"Operations": {"CostCenter": "42"}}
- Parameters:
definedTags- the value to set- Returns:
- this builder
-
systemTags
public ApiMetadata.Builder systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.Each key is predefined and scoped to a namespace.
Example: {"orcl-cloud": {"free-tier-retained": "true"}}
- Parameters:
systemTags- the value to set- Returns:
- this builder
-
build
public ApiMetadata build()
-
copy
public ApiMetadata.Builder copy(ApiMetadata model)
-
-