Skip to content

Commit 4ce1dcf

Browse files
committed
Adds missing classes
Signed-off-by: Christopher Grote <[email protected]>
1 parent c4d1d62 commit 4ce1dcf

File tree

3 files changed

+280
-0
lines changed

3 files changed

+280
-0
lines changed
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
/*
2+
* Copyright 2020 IBM Corp. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
package com.ibm.watson.data.client.model;
17+
18+
import com.fasterxml.jackson.annotation.JsonInclude;
19+
import com.fasterxml.jackson.annotation.JsonProperty;
20+
import java.util.Objects;
21+
22+
/**
23+
* CopyAssetFile
24+
*/
25+
public class CopyAssetFile {
26+
27+
private CopyAssetFileDetail source;
28+
private CopyAssetFileDetail target;
29+
30+
public CopyAssetFile source(CopyAssetFileDetail source) {
31+
this.source = source;
32+
return this;
33+
}
34+
35+
/**
36+
* Get source
37+
* @return source
38+
**/
39+
@javax.annotation.Nullable
40+
@JsonProperty("source")
41+
@JsonInclude(value = JsonInclude.Include.NON_NULL)
42+
public CopyAssetFileDetail getSource() { return source; }
43+
public void setSource(CopyAssetFileDetail source) { this.source = source; }
44+
45+
public CopyAssetFile target(CopyAssetFileDetail target) {
46+
this.target = target;
47+
return this;
48+
}
49+
50+
/**
51+
* Get target
52+
* @return target
53+
**/
54+
@javax.annotation.Nullable
55+
@JsonProperty("target")
56+
@JsonInclude(value = JsonInclude.Include.NON_NULL)
57+
public CopyAssetFileDetail getTarget() { return target; }
58+
public void setTarget(CopyAssetFileDetail target) { this.target = target; }
59+
60+
@Override
61+
public boolean equals(java.lang.Object o) {
62+
if (this == o) { return true; }
63+
if (o == null || getClass() != o.getClass()) { return false; }
64+
CopyAssetFile copyAssetFile = (CopyAssetFile)o;
65+
return Objects.equals(this.source, copyAssetFile.source) &&
66+
Objects.equals(this.target, copyAssetFile.target);
67+
}
68+
69+
@Override
70+
public int hashCode() {
71+
return Objects.hash(source, target);
72+
}
73+
74+
@Override
75+
public String toString() {
76+
StringBuilder sb = new StringBuilder();
77+
sb.append("class CopyAssetFile {\n");
78+
sb.append(" source: ").append(toIndentedString(source)).append("\n");
79+
sb.append(" target: ").append(toIndentedString(target)).append("\n");
80+
sb.append("}");
81+
return sb.toString();
82+
}
83+
84+
/**
85+
* Convert the given object to string with each line indented by 4 spaces
86+
* (except the first line).
87+
*/
88+
private String toIndentedString(java.lang.Object o) {
89+
if (o == null) { return "null"; }
90+
return o.toString().replace("\n", "\n ");
91+
}
92+
93+
}
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
/*
2+
* Copyright 2020 IBM Corp. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
package com.ibm.watson.data.client.model;
17+
18+
import com.fasterxml.jackson.annotation.JsonInclude;
19+
import com.fasterxml.jackson.annotation.JsonProperty;
20+
import java.util.Objects;
21+
22+
/**
23+
* CopyAssetFileTarget
24+
*/
25+
public class CopyAssetFileDetail {
26+
27+
private String type;
28+
private String guid;
29+
private String path;
30+
31+
public CopyAssetFileDetail type(String type) {
32+
this.type = type;
33+
return this;
34+
}
35+
36+
/**
37+
* The type of the source container.
38+
* @return type
39+
**/
40+
@javax.annotation.Nullable
41+
@JsonProperty("type")
42+
@JsonInclude(value = JsonInclude.Include.NON_NULL)
43+
public String getType() { return type; }
44+
public void setType(String type) { this.type = type; }
45+
46+
public CopyAssetFileDetail guid(String guid) {
47+
this.guid = guid;
48+
return this;
49+
}
50+
51+
/**
52+
* The guid of the source container.
53+
* @return guid
54+
**/
55+
@javax.annotation.Nullable
56+
@JsonProperty("guid")
57+
@JsonInclude(value = JsonInclude.Include.NON_NULL)
58+
public String getGuid() { return guid; }
59+
public void setGuid(String guid) { this.guid = guid; }
60+
61+
public CopyAssetFileDetail path(String path) {
62+
this.path = path;
63+
return this;
64+
}
65+
66+
/**
67+
* The location where the asset should be copied
68+
* @return path
69+
**/
70+
@javax.annotation.Nullable
71+
@JsonProperty("path")
72+
@JsonInclude(value = JsonInclude.Include.NON_NULL)
73+
public String getPath() { return path; }
74+
public void setPath(String path) { this.path = path; }
75+
76+
@Override
77+
public boolean equals(java.lang.Object o) {
78+
if (this == o) { return true; }
79+
if (o == null || getClass() != o.getClass()) { return false; }
80+
CopyAssetFileDetail copyAssetFileTarget = (CopyAssetFileDetail)o;
81+
return Objects.equals(this.type, copyAssetFileTarget.type) &&
82+
Objects.equals(this.guid, copyAssetFileTarget.guid) &&
83+
Objects.equals(this.path, copyAssetFileTarget.path);
84+
}
85+
86+
@Override
87+
public int hashCode() {
88+
return Objects.hash(type, guid, path);
89+
}
90+
91+
@Override
92+
public String toString() {
93+
StringBuilder sb = new StringBuilder();
94+
sb.append("class CopyAssetFileTarget {\n");
95+
sb.append(" type: ").append(toIndentedString(type)).append("\n");
96+
sb.append(" guid: ").append(toIndentedString(guid)).append("\n");
97+
sb.append(" path: ").append(toIndentedString(path)).append("\n");
98+
sb.append("}");
99+
return sb.toString();
100+
}
101+
102+
/**
103+
* Convert the given object to string with each line indented by 4 spaces
104+
* (except the first line).
105+
*/
106+
private String toIndentedString(java.lang.Object o) {
107+
if (o == null) { return "null"; }
108+
return o.toString().replace("\n", "\n ");
109+
}
110+
111+
}
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
/*
2+
* Copyright 2020 IBM Corp. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
package com.ibm.watson.data.client.model;
17+
18+
import com.fasterxml.jackson.annotation.JsonInclude;
19+
import com.fasterxml.jackson.annotation.JsonProperty;
20+
21+
import java.util.Objects;
22+
23+
/**
24+
* StatusResponse
25+
*/
26+
public class StatusResponse {
27+
28+
private String status;
29+
30+
public StatusResponse status(String status) {
31+
this.status = status;
32+
return this;
33+
}
34+
35+
/**
36+
* The status of the response.
37+
* @return messageCode
38+
**/
39+
@javax.annotation.Nullable
40+
@JsonProperty("status")
41+
@JsonInclude(value = JsonInclude.Include.NON_NULL)
42+
public String getStatus() { return status; }
43+
public void setStatus(String status) { this.status = status; }
44+
45+
@Override
46+
public boolean equals(Object o) {
47+
if (this == o) { return true; }
48+
if (o == null || getClass() != o.getClass()) { return false; }
49+
StatusResponse that = (StatusResponse)o;
50+
return Objects.equals(this.status, that.status);
51+
}
52+
53+
@Override
54+
public int hashCode() {
55+
return Objects.hash(status);
56+
}
57+
58+
@Override
59+
public String toString() {
60+
StringBuilder sb = new StringBuilder();
61+
sb.append("class StatusResponse {\n");
62+
sb.append(" status: ").append(toIndentedString(status)).append("\n");
63+
sb.append("}");
64+
return sb.toString();
65+
}
66+
67+
/**
68+
* Convert the given object to string with each line indented by 4 spaces
69+
* (except the first line).
70+
*/
71+
private String toIndentedString(Object o) {
72+
if (o == null) { return "null"; }
73+
return o.toString().replace("\n", "\n ");
74+
}
75+
76+
}

0 commit comments

Comments
 (0)