Class Connection

    • Method Detail

      • connectionName

        public final String connectionName()

        The name of the connection. Connection names must be unique in an Amazon Web Services account.

        Returns:
        The name of the connection. Connection names must be unique in an Amazon Web Services account.
      • connectionArn

        public final String connectionArn()

        The Amazon Resource Name (ARN) of the connection. The ARN is used as the connection reference when the connection is shared between Amazon Web Services.

        The ARN is never reused if the connection is deleted.

        Returns:
        The Amazon Resource Name (ARN) of the connection. The ARN is used as the connection reference when the connection is shared between Amazon Web Services.

        The ARN is never reused if the connection is deleted.

      • providerType

        public final ProviderType providerType()

        The name of the external provider where your third-party code repository is configured.

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

        Returns:
        The name of the external provider where your third-party code repository is configured.
        See Also:
        ProviderType
      • providerTypeAsString

        public final String providerTypeAsString()

        The name of the external provider where your third-party code repository is configured.

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

        Returns:
        The name of the external provider where your third-party code repository is configured.
        See Also:
        ProviderType
      • ownerAccountId

        public final String ownerAccountId()

        The identifier of the external provider where your third-party code repository is configured. For Bitbucket, this is the account ID of the owner of the Bitbucket repository.

        Returns:
        The identifier of the external provider where your third-party code repository is configured. For Bitbucket, this is the account ID of the owner of the Bitbucket repository.
      • hostArn

        public final String hostArn()

        The Amazon Resource Name (ARN) of the host associated with the connection.

        Returns:
        The Amazon Resource Name (ARN) of the host associated with the connection.
      • 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)