Class SourceCredentialsInfo

    • Method Detail

      • arn

        public final String arn()

        The Amazon Resource Name (ARN) of the token.

        Returns:
        The Amazon Resource Name (ARN) of the token.
      • serverType

        public final ServerType serverType()

        The type of source provider. The valid options are GITHUB, GITHUB_ENTERPRISE, or BITBUCKET.

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

        Returns:
        The type of source provider. The valid options are GITHUB, GITHUB_ENTERPRISE, or BITBUCKET.
        See Also:
        ServerType
      • serverTypeAsString

        public final String serverTypeAsString()

        The type of source provider. The valid options are GITHUB, GITHUB_ENTERPRISE, or BITBUCKET.

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

        Returns:
        The type of source provider. The valid options are GITHUB, GITHUB_ENTERPRISE, or BITBUCKET.
        See Also:
        ServerType
      • authType

        public final AuthType authType()

        The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH, or PERSONAL_ACCESS_TOKEN.

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

        Returns:
        The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH, or PERSONAL_ACCESS_TOKEN.
        See Also:
        AuthType
      • authTypeAsString

        public final String authTypeAsString()

        The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH, or PERSONAL_ACCESS_TOKEN.

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

        Returns:
        The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH, or PERSONAL_ACCESS_TOKEN.
        See Also:
        AuthType
      • 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)