Class MLRegisterModelGroupInput
java.lang.Object
org.opensearch.ml.common.transport.model_group.MLRegisterModelGroupInput
- All Implemented Interfaces:
org.opensearch.core.common.io.stream.Writeable,org.opensearch.core.xcontent.ToXContent,org.opensearch.core.xcontent.ToXContentObject
public class MLRegisterModelGroupInput
extends Object
implements org.opensearch.core.xcontent.ToXContentObject, org.opensearch.core.common.io.stream.Writeable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classNested 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.ParamsNested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable
org.opensearch.core.common.io.stream.Writeable.Reader<V>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface org.opensearch.core.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionMLRegisterModelGroupInput(String name, String description, List<String> backendRoles, AccessMode modelAccessMode, Boolean isAddAllBackendRoles) MLRegisterModelGroupInput(org.opensearch.core.common.io.stream.StreamInput in) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleangetName()inthashCode()static MLRegisterModelGroupInputparse(org.opensearch.core.xcontent.XContentParser parser) voidsetBackendRoles(List<String> backendRoles) voidsetDescription(String description) voidsetIsAddAllBackendRoles(Boolean isAddAllBackendRoles) voidsetModelAccessMode(AccessMode modelAccessMode) voidtoString()org.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, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opensearch.core.xcontent.ToXContentObject
isFragment
-
Field Details
-
NAME_FIELD
- See Also:
-
DESCRIPTION_FIELD
- See Also:
-
BACKEND_ROLES_FIELD
- See Also:
-
MODEL_ACCESS_MODE
- See Also:
-
ADD_ALL_BACKEND_ROLES
- See Also:
-
-
Constructor Details
-
MLRegisterModelGroupInput
-
MLRegisterModelGroupInput
public MLRegisterModelGroupInput(org.opensearch.core.common.io.stream.StreamInput in) throws IOException - Throws:
IOException
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceorg.opensearch.core.common.io.stream.Writeable- 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 MLRegisterModelGroupInput parse(org.opensearch.core.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
builder
-
toBuilder
-
getName
-
getDescription
-
getBackendRoles
-
getModelAccessMode
-
getIsAddAllBackendRoles
-
setName
-
setDescription
-
setBackendRoles
-
setModelAccessMode
-
setIsAddAllBackendRoles
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-