Package org.opensearch.ml.common
Class MLModelGroup
java.lang.Object
org.opensearch.ml.common.MLModelGroup
- All Implemented Interfaces:
org.opensearch.core.xcontent.ToXContent,org.opensearch.core.xcontent.ToXContentObject
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.opensearch.core.xcontent.ToXContent
org.opensearch.core.xcontent.ToXContent.DelegatingMapParams, org.opensearch.core.xcontent.ToXContent.MapParams, org.opensearch.core.xcontent.ToXContent.Params -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface org.opensearch.core.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionMLModelGroup(String name, String description, int latestVersion, List<String> backendRoles, org.opensearch.commons.authuser.User owner, String access, String modelGroupId, Instant createdTime, Instant lastUpdatedTime) MLModelGroup(org.opensearch.core.common.io.stream.StreamInput input) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static MLModelGroupfromStream(org.opensearch.core.common.io.stream.StreamInput in) intgetName()org.opensearch.commons.authuser.UsergetOwner()static MLModelGroupparse(org.opensearch.core.xcontent.XContentParser parser) voidorg.opensearch.core.xcontent.XContentBuildertoXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) voidwriteTo(org.opensearch.core.common.io.stream.StreamOutput out) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.core.xcontent.ToXContentObject
isFragment
-
Field Details
-
MODEL_GROUP_NAME_FIELD
- See Also:
-
DESCRIPTION_FIELD
- See Also:
-
LATEST_VERSION_FIELD
- See Also:
-
BACKEND_ROLES_FIELD
- See Also:
-
OWNER
- See Also:
-
ACCESS
- See Also:
-
MODEL_GROUP_ID_FIELD
- See Also:
-
CREATED_TIME_FIELD
- See Also:
-
LAST_UPDATED_TIME_FIELD
- See Also:
-
-
Constructor Details
-
MLModelGroup
-
MLModelGroup
- Throws:
IOException
-
-
Method Details
-
writeTo
- Throws:
IOException
-
toXContent
public org.opensearch.core.xcontent.XContentBuilder toXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.opensearch.core.xcontent.ToXContent- Throws:
IOException
-
parse
public static MLModelGroup parse(org.opensearch.core.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
fromStream
public static MLModelGroup fromStream(org.opensearch.core.common.io.stream.StreamInput in) throws IOException - Throws:
IOException
-
builder
-
toBuilder
-
getName
-
getDescription
-
getLatestVersion
public int getLatestVersion() -
getBackendRoles
-
getOwner
public org.opensearch.commons.authuser.User getOwner() -
getAccess
-
getModelGroupId
-
getCreatedTime
-
getLastUpdatedTime
-
setName
-