Class ImageConfig

    • Method Detail

      • repositoryAccessMode

        public final RepositoryAccessMode repositoryAccessMode()

        Set this to one of the following values:

        • Platform - The model image is hosted in Amazon ECR.

        • Vpc - The model image is hosted in a private Docker registry in your VPC.

        If the service returns an enum value that is not available in the current SDK version, repositoryAccessMode will return RepositoryAccessMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from repositoryAccessModeAsString().

        Returns:
        Set this to one of the following values:

        • Platform - The model image is hosted in Amazon ECR.

        • Vpc - The model image is hosted in a private Docker registry in your VPC.

        See Also:
        RepositoryAccessMode
      • repositoryAccessModeAsString

        public final String repositoryAccessModeAsString()

        Set this to one of the following values:

        • Platform - The model image is hosted in Amazon ECR.

        • Vpc - The model image is hosted in a private Docker registry in your VPC.

        If the service returns an enum value that is not available in the current SDK version, repositoryAccessMode will return RepositoryAccessMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from repositoryAccessModeAsString().

        Returns:
        Set this to one of the following values:

        • Platform - The model image is hosted in Amazon ECR.

        • Vpc - The model image is hosted in a private Docker registry in your VPC.

        See Also:
        RepositoryAccessMode
      • repositoryAuthConfig

        public final RepositoryAuthConfig repositoryAuthConfig()

        (Optional) Specifies an authentication configuration for the private docker registry where your model image is hosted. Specify a value for this property only if you specified Vpc as the value for the RepositoryAccessMode field, and the private Docker registry where the model image is hosted requires authentication.

        Returns:
        (Optional) Specifies an authentication configuration for the private docker registry where your model image is hosted. Specify a value for this property only if you specified Vpc as the value for the RepositoryAccessMode field, and the private Docker registry where the model image is hosted requires authentication.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)