-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathCreateEndpointRequest.java
More file actions
executable file
·87 lines (73 loc) · 2.46 KB
/
Copy pathCreateEndpointRequest.java
File metadata and controls
executable file
·87 lines (73 loc) · 2.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
// Code generated from OpenAPI specs by Databricks SDK Generator. DO NOT EDIT.
package com.databricks.sdk.service.aisearch;
import com.databricks.sdk.support.Generated;
import com.databricks.sdk.support.QueryParam;
import com.databricks.sdk.support.ToStringer;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
@Generated
public class CreateEndpointRequest {
/**
* The Endpoint resource to create. Fields other than {@code endpoint.name} carry the desired
* configuration; {@code endpoint.name} is server-assigned from {@code parent} and {@code
* endpoint_id}.
*/
@JsonProperty("endpoint")
private Endpoint endpoint;
/**
* The user-supplied short name for the Endpoint, per AIP-133. The server composes the full {@code
* Endpoint.name} as {@code {parent}/endpoints/{endpoint_id}}. AIP-133 does not list {@code
* endpoint_id} as a fields-may-be-required entry, so we annotate it OPTIONAL on the wire; the
* server still rejects empty values with INVALID_PARAMETER_VALUE.
*/
@JsonIgnore
@QueryParam("endpoint_id")
private String endpointId;
/**
* The Workspace where this Endpoint will be created. Format: {@code workspaces/{workspace_id}}
*/
@JsonIgnore private String parent;
public CreateEndpointRequest setEndpoint(Endpoint endpoint) {
this.endpoint = endpoint;
return this;
}
public Endpoint getEndpoint() {
return endpoint;
}
public CreateEndpointRequest setEndpointId(String endpointId) {
this.endpointId = endpointId;
return this;
}
public String getEndpointId() {
return endpointId;
}
public CreateEndpointRequest setParent(String parent) {
this.parent = parent;
return this;
}
public String getParent() {
return parent;
}
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
CreateEndpointRequest that = (CreateEndpointRequest) o;
return Objects.equals(endpoint, that.endpoint)
&& Objects.equals(endpointId, that.endpointId)
&& Objects.equals(parent, that.parent);
}
@Override
public int hashCode() {
return Objects.hash(endpoint, endpointId, parent);
}
@Override
public String toString() {
return new ToStringer(CreateEndpointRequest.class)
.add("endpoint", endpoint)
.add("endpointId", endpointId)
.add("parent", parent)
.toString();
}
}