Share via


CognitiveServicesConnectionUsernamePassword Class

Definition

The CognitiveServicesConnectionUsernamePassword.

public class CognitiveServicesConnectionUsernamePassword : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.CognitiveServices.Models.CognitiveServicesConnectionUsernamePassword>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.CognitiveServices.Models.CognitiveServicesConnectionUsernamePassword>
type CognitiveServicesConnectionUsernamePassword = class
    interface IJsonModel<CognitiveServicesConnectionUsernamePassword>
    interface IPersistableModel<CognitiveServicesConnectionUsernamePassword>
Public Class CognitiveServicesConnectionUsernamePassword
Implements IJsonModel(Of CognitiveServicesConnectionUsernamePassword), IPersistableModel(Of CognitiveServicesConnectionUsernamePassword)
Inheritance
CognitiveServicesConnectionUsernamePassword
Implements

Constructors

CognitiveServicesConnectionUsernamePassword()

Initializes a new instance of CognitiveServicesConnectionUsernamePassword.

Properties

Password

Gets or sets the password.

SecurityToken

Optional, required by connections like SalesForce for extra security in addition to UsernamePassword.

Username

Gets or sets the username.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<CognitiveServicesConnectionUsernamePassword>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<CognitiveServicesConnectionUsernamePassword>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<CognitiveServicesConnectionUsernamePassword>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<CognitiveServicesConnectionUsernamePassword>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<CognitiveServicesConnectionUsernamePassword>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to