次の方法で共有


WcfRelayProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.relay.fluent.models.WcfRelayProperties

Implements

public final class WcfRelayProperties
implements JsonSerializable<WcfRelayProperties>

Properties of the WCF relay.

Constructor Summary

Constructor Description
WcfRelayProperties()

Creates an instance of WcfRelayProperties class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime createdAt()

Get the createdAt property: The time the WCF relay was created.

static WcfRelayProperties fromJson(JsonReader jsonReader)

Reads an instance of WcfRelayProperties from the JsonReader.

Boolean isDynamic()

Get the isDynamic property: Returns true if the relay is dynamic; otherwise, false.

Integer listenerCount()

Get the listenerCount property: The number of listeners for this relay.

Relaytype relayType()

Get the relayType property: WCF relay type.

Boolean requiresClientAuthorization()

Get the requiresClientAuthorization property: Returns true if client authorization is needed for this relay; otherwise, false.

Boolean requiresTransportSecurity()

Get the requiresTransportSecurity property: Returns true if transport security is needed for this relay; otherwise, false.

JsonWriter toJson(JsonWriter jsonWriter)
OffsetDateTime updatedAt()

Get the updatedAt property: The time the namespace was updated.

String userMetadata()

Get the userMetadata property: The usermetadata is a placeholder to store user-defined string data for the WCF Relay endpoint.

void validate()

Validates the instance.

WcfRelayProperties withRelayType(Relaytype relayType)

Set the relayType property: WCF relay type.

WcfRelayProperties withRequiresClientAuthorization(Boolean requiresClientAuthorization)

Set the requiresClientAuthorization property: Returns true if client authorization is needed for this relay; otherwise, false.

WcfRelayProperties withRequiresTransportSecurity(Boolean requiresTransportSecurity)

Set the requiresTransportSecurity property: Returns true if transport security is needed for this relay; otherwise, false.

WcfRelayProperties withUserMetadata(String userMetadata)

Set the userMetadata property: The usermetadata is a placeholder to store user-defined string data for the WCF Relay endpoint.

Methods inherited from java.lang.Object

Constructor Details

WcfRelayProperties

public WcfRelayProperties()

Creates an instance of WcfRelayProperties class.

Method Details

createdAt

public OffsetDateTime createdAt()

Get the createdAt property: The time the WCF relay was created.

Returns:

the createdAt value.

fromJson

public static WcfRelayProperties fromJson(JsonReader jsonReader)

Reads an instance of WcfRelayProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of WcfRelayProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the WcfRelayProperties.

isDynamic

public Boolean isDynamic()

Get the isDynamic property: Returns true if the relay is dynamic; otherwise, false.

Returns:

the isDynamic value.

listenerCount

public Integer listenerCount()

Get the listenerCount property: The number of listeners for this relay. Note that min :1 and max:25 are supported.

Returns:

the listenerCount value.

relayType

public Relaytype relayType()

Get the relayType property: WCF relay type.

Returns:

the relayType value.

requiresClientAuthorization

public Boolean requiresClientAuthorization()

Get the requiresClientAuthorization property: Returns true if client authorization is needed for this relay; otherwise, false.

Returns:

the requiresClientAuthorization value.

requiresTransportSecurity

public Boolean requiresTransportSecurity()

Get the requiresTransportSecurity property: Returns true if transport security is needed for this relay; otherwise, false.

Returns:

the requiresTransportSecurity value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

updatedAt

public OffsetDateTime updatedAt()

Get the updatedAt property: The time the namespace was updated.

Returns:

the updatedAt value.

userMetadata

public String userMetadata()

Get the userMetadata property: The usermetadata is a placeholder to store user-defined string data for the WCF Relay endpoint. For example, it can be used to store descriptive data, such as list of teams and their contact information. Also, user-defined configuration settings can be stored.

Returns:

the userMetadata value.

validate

public void validate()

Validates the instance.

withRelayType

public WcfRelayProperties withRelayType(Relaytype relayType)

Set the relayType property: WCF relay type.

Parameters:

relayType - the relayType value to set.

Returns:

the WcfRelayProperties object itself.

withRequiresClientAuthorization

public WcfRelayProperties withRequiresClientAuthorization(Boolean requiresClientAuthorization)

Set the requiresClientAuthorization property: Returns true if client authorization is needed for this relay; otherwise, false.

Parameters:

requiresClientAuthorization - the requiresClientAuthorization value to set.

Returns:

the WcfRelayProperties object itself.

withRequiresTransportSecurity

public WcfRelayProperties withRequiresTransportSecurity(Boolean requiresTransportSecurity)

Set the requiresTransportSecurity property: Returns true if transport security is needed for this relay; otherwise, false.

Parameters:

requiresTransportSecurity - the requiresTransportSecurity value to set.

Returns:

the WcfRelayProperties object itself.

withUserMetadata

public WcfRelayProperties withUserMetadata(String userMetadata)

Set the userMetadata property: The usermetadata is a placeholder to store user-defined string data for the WCF Relay endpoint. For example, it can be used to store descriptive data, such as list of teams and their contact information. Also, user-defined configuration settings can be stored.

Parameters:

userMetadata - the userMetadata value to set.

Returns:

the WcfRelayProperties object itself.

Applies to