You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/importcontainers/ImportContainer.java
+42-6Lines changed: 42 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,7 @@
14
14
15
15
importio.vrap.rmf.base.client.utils.Generated;
16
16
17
+
importjakarta.validation.Valid;
17
18
importjakarta.validation.constraints.NotNull;
18
19
19
20
/**
@@ -37,7 +38,7 @@
37
38
publicinterfaceImportContainer {
38
39
39
40
/**
40
-
* <p>User-defined unique identifier for the ImportContainer. Keys can only contain alphanumeric characters (a-Z, 0-9), underscores and hyphens (_, -).</p>
41
+
* <p>User-defined unique identifier for the ImportContainer.</p>
41
42
* @return key
42
43
*/
43
44
@NotNull
@@ -61,23 +62,39 @@ public interface ImportContainer {
61
62
publicLonggetVersion();
62
63
63
64
/**
64
-
* <p>The time when the ImportContainer was created.</p>
65
+
* <p>The retention policy of the ImportContainer.</p>
66
+
* @return retentionPolicy
67
+
*/
68
+
@Valid
69
+
@JsonProperty("retentionPolicy")
70
+
publicRetentionPolicygetRetentionPolicy();
71
+
72
+
/**
73
+
* <p>Date and time (UTC) the ImportContainer was initially created.</p>
65
74
* @return createdAt
66
75
*/
67
76
@NotNull
68
77
@JsonProperty("createdAt")
69
78
publicZonedDateTimegetCreatedAt();
70
79
71
80
/**
72
-
* <p>The last time when the ImportContainer was modified.</p>
81
+
* <p>Date and time (UTC) the ImportContainer was last updated.</p>
73
82
* @return lastModifiedAt
74
83
*/
75
84
@NotNull
76
85
@JsonProperty("lastModifiedAt")
77
86
publicZonedDateTimegetLastModifiedAt();
78
87
79
88
/**
80
-
* <p>User-defined unique identifier for the ImportContainer. Keys can only contain alphanumeric characters (a-Z, 0-9), underscores and hyphens (_, -).</p>
89
+
* <p>Date and time (UTC) the ImportContainer is automatically deleted. Only present if a <code>retentionPolicy</code> is set. ImportContainers without <code>expiresAt</code> are permanent until manually deleted.</p>
90
+
* @return expiresAt
91
+
*/
92
+
93
+
@JsonProperty("expiresAt")
94
+
publicZonedDateTimegetExpiresAt();
95
+
96
+
/**
97
+
* <p>User-defined unique identifier for the ImportContainer.</p>
81
98
* @param key value to be set
82
99
*/
83
100
@@ -98,19 +115,33 @@ public interface ImportContainer {
98
115
publicvoidsetVersion(finalLongversion);
99
116
100
117
/**
101
-
* <p>The time when the ImportContainer was created.</p>
118
+
* <p>The retention policy of the ImportContainer.</p>
* <p>Date and time (UTC) the ImportContainer is automatically deleted. Only present if a <code>retentionPolicy</code> is set. ImportContainers without <code>expiresAt</code> are permanent until manually deleted.</p>
Copy file name to clipboardExpand all lines: commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/importcontainers/ImportContainerBuilder.java
* <p>User-defined unique identifier for the ImportContainer. Keys can only contain alphanumeric characters (a-Z, 0-9), underscores and hyphens (_, -).</p>
48
+
* <p>User-defined unique identifier for the ImportContainer.</p>
42
49
* @param key value to be set
43
50
* @return Builder
44
51
*/
@@ -72,7 +79,33 @@ public ImportContainerBuilder version(final Long version) {
72
79
}
73
80
74
81
/**
75
-
* <p>The time when the ImportContainer was created.</p>
82
+
* <p>The retention policy of the ImportContainer.</p>
* <p>Date and time (UTC) the ImportContainer was initially created.</p>
76
109
* @param createdAt value to be set
77
110
* @return Builder
78
111
*/
@@ -83,7 +116,7 @@ public ImportContainerBuilder createdAt(final java.time.ZonedDateTime createdAt)
83
116
}
84
117
85
118
/**
86
-
* <p>The last time when the ImportContainer was modified.</p>
119
+
* <p>Date and time (UTC) the ImportContainer was last updated.</p>
87
120
* @param lastModifiedAt value to be set
88
121
* @return Builder
89
122
*/
@@ -94,7 +127,18 @@ public ImportContainerBuilder lastModifiedAt(final java.time.ZonedDateTime lastM
94
127
}
95
128
96
129
/**
97
-
* <p>User-defined unique identifier for the ImportContainer. Keys can only contain alphanumeric characters (a-Z, 0-9), underscores and hyphens (_, -).</p>
130
+
* <p>Date and time (UTC) the ImportContainer is automatically deleted. Only present if a <code>retentionPolicy</code> is set. ImportContainers without <code>expiresAt</code> are permanent until manually deleted.</p>
* <p>Date and time (UTC) the ImportContainer is automatically deleted. Only present if a <code>retentionPolicy</code> is set. ImportContainers without <code>expiresAt</code> are permanent until manually deleted.</p>
198
+
* @return expiresAt
199
+
*/
200
+
201
+
@Nullable
202
+
publicjava.time.ZonedDateTimegetExpiresAt() {
203
+
returnthis.expiresAt;
204
+
}
205
+
142
206
/**
143
207
* builds ImportContainer with checking for non-null required values
144
208
* @return ImportContainer
@@ -148,15 +212,17 @@ public ImportContainer build() {
148
212
Objects.requireNonNull(version, ImportContainer.class + ": version is missing");
149
213
Objects.requireNonNull(createdAt, ImportContainer.class + ": createdAt is missing");
150
214
Objects.requireNonNull(lastModifiedAt, ImportContainer.class + ": lastModifiedAt is missing");
Copy file name to clipboardExpand all lines: commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/importcontainers/ImportContainerDraft.java
* <p>User-defined unique identifier of the ImportContainer. Keys can only contain alphanumeric characters (a-Z, 0-9), underscores and hyphens (_, -).</p>
37
+
* <p>User-defined unique identifier of the ImportContainer.</p>
37
38
* @return key
38
39
*/
39
40
@NotNull
@@ -49,7 +50,15 @@ public interface ImportContainerDraft extends io.vrap.rmf.base.client.Draft<Impo
49
50
publicImportResourceTypegetResourceType();
50
51
51
52
/**
52
-
* <p>User-defined unique identifier of the ImportContainer. Keys can only contain alphanumeric characters (a-Z, 0-9), underscores and hyphens (_, -).</p>
53
+
* <p>Set a retention policy to automatically delete the ImportContainer after a defined period.</p>
54
+
* @return retentionPolicy
55
+
*/
56
+
@Valid
57
+
@JsonProperty("retentionPolicy")
58
+
publicRetentionPolicygetRetentionPolicy();
59
+
60
+
/**
61
+
* <p>User-defined unique identifier of the ImportContainer.</p>
53
62
* @param key value to be set
54
63
*/
55
64
@@ -62,6 +71,13 @@ public interface ImportContainerDraft extends io.vrap.rmf.base.client.Draft<Impo
0 commit comments