Package com.sap.ai.sdk.core.model
Class AiDeploymentModificationRequestWithIdentifier
java.lang.Object
com.sap.ai.sdk.core.model.AiDeploymentModificationRequestWithIdentifier
Request object for changing the target status of a deployment ( STOPPED and DELETED are
supported)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class.static interfaceBuilder helper class.static enumDeployment target status -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for AiDeploymentModificationRequestWithIdentifier. -
Method Summary
Modifier and TypeMethodDescriptioncreate()Create a type-safe, fluent-api builder object to construct a newAiDeploymentModificationRequestWithIdentifierinstance with all required arguments.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theAiDeploymentModificationRequestWithIdentifier.getId()ID of the deploymentDeployment target statusinthashCode()Set the id of thisAiDeploymentModificationRequestWithIdentifierinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisAiDeploymentModificationRequestWithIdentifierinstance.voidSet the id of thisAiDeploymentModificationRequestWithIdentifierinstance.voidSet the targetStatus of thisAiDeploymentModificationRequestWithIdentifierinstance.Set the targetStatus of thisAiDeploymentModificationRequestWithIdentifierinstance and return the same instance.toMap()Get the value of all properties of thisAiDeploymentModificationRequestWithIdentifierinstance including unrecognized properties.toString()
-
Constructor Details
-
AiDeploymentModificationRequestWithIdentifier
protected AiDeploymentModificationRequestWithIdentifier()Default constructor for AiDeploymentModificationRequestWithIdentifier.
-
-
Method Details
-
id
Set the id of thisAiDeploymentModificationRequestWithIdentifierinstance and return the same instance.- Parameters:
id- ID of the deployment- Returns:
- The same instance of this
AiDeploymentModificationRequestWithIdentifierclass
-
getId
ID of the deployment- Returns:
- id The id of this
AiDeploymentModificationRequestWithIdentifierinstance.
-
setId
Set the id of thisAiDeploymentModificationRequestWithIdentifierinstance.- Parameters:
id- ID of the deployment
-
targetStatus
@Nonnull public AiDeploymentModificationRequestWithIdentifier targetStatus(@Nonnull AiDeploymentModificationRequestWithIdentifier.TargetStatusEnum targetStatus) Set the targetStatus of thisAiDeploymentModificationRequestWithIdentifierinstance and return the same instance.- Parameters:
targetStatus- Deployment target status- Returns:
- The same instance of this
AiDeploymentModificationRequestWithIdentifierclass
-
getTargetStatus
Deployment target status- Returns:
- targetStatus The targetStatus of this
AiDeploymentModificationRequestWithIdentifierinstance.
-
setTargetStatus
public void setTargetStatus(@Nonnull AiDeploymentModificationRequestWithIdentifier.TargetStatusEnum targetStatus) Set the targetStatus of thisAiDeploymentModificationRequestWithIdentifierinstance.- Parameters:
targetStatus- Deployment target status
-
getCustomFieldNames
Get the names of the unrecognizable properties of theAiDeploymentModificationRequestWithIdentifier.- Returns:
- The set of properties names
-
getCustomField
@Nullable @Deprecated public Object getCustomField(@Nonnull String name) throws NoSuchElementException Deprecated.UsetoMap()instead.Get the value of an unrecognizable property of thisAiDeploymentModificationRequestWithIdentifierinstance.- Parameters:
name- The name of the property- Returns:
- The value of the property
- Throws:
NoSuchElementException- If no property with the given name could be found.
-
toMap
Get the value of all properties of thisAiDeploymentModificationRequestWithIdentifierinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisAiDeploymentModificationRequestWithIdentifierinstance. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
customFieldName- The name of the propertycustomFieldValue- The value of the property
-
equals
-
hashCode
public int hashCode() -
toString
-
create
Create a type-safe, fluent-api builder object to construct a newAiDeploymentModificationRequestWithIdentifierinstance with all required arguments.
-
toMap()instead.