Class SmbSetting
java.lang.Object
com.azure.resourcemanager.storage.models.SmbSetting
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SmbSetting>
Setting for SMB protocol.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the authenticationMethods property: SMB authentication methods supported by server.Get the channelEncryption property: SMB channel encryption supported by server.Get the encryptionInTransit property: Encryption in transit setting.static SmbSettingfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of SmbSetting from the JsonReader.Get the kerberosTicketEncryption property: Kerberos ticket encryption supported by server.Get the multichannel property: Multichannel setting.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.versions()Get the versions property: SMB protocol versions supported by server.withAuthenticationMethods(String authenticationMethods) Set the authenticationMethods property: SMB authentication methods supported by server.withChannelEncryption(String channelEncryption) Set the channelEncryption property: SMB channel encryption supported by server.withEncryptionInTransit(EncryptionInTransit encryptionInTransit) Set the encryptionInTransit property: Encryption in transit setting.withKerberosTicketEncryption(String kerberosTicketEncryption) Set the kerberosTicketEncryption property: Kerberos ticket encryption supported by server.withMultichannel(Multichannel multichannel) Set the multichannel property: Multichannel setting.withVersions(String versions) Set the versions property: SMB protocol versions supported by server.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
SmbSetting
public SmbSetting()Creates an instance of SmbSetting class.
-
-
Method Details
-
multichannel
Get the multichannel property: Multichannel setting. Applies to Premium FileStorage only.- Returns:
- the multichannel value.
-
withMultichannel
Set the multichannel property: Multichannel setting. Applies to Premium FileStorage only.- Parameters:
multichannel- the multichannel value to set.- Returns:
- the SmbSetting object itself.
-
versions
Get the versions property: SMB protocol versions supported by server. Valid values are SMB2.1, SMB3.0, SMB3.1.1. Should be passed as a string with delimiter ';'.- Returns:
- the versions value.
-
withVersions
Set the versions property: SMB protocol versions supported by server. Valid values are SMB2.1, SMB3.0, SMB3.1.1. Should be passed as a string with delimiter ';'.- Parameters:
versions- the versions value to set.- Returns:
- the SmbSetting object itself.
-
authenticationMethods
Get the authenticationMethods property: SMB authentication methods supported by server. Valid values are NTLMv2, Kerberos. Should be passed as a string with delimiter ';'.- Returns:
- the authenticationMethods value.
-
withAuthenticationMethods
Set the authenticationMethods property: SMB authentication methods supported by server. Valid values are NTLMv2, Kerberos. Should be passed as a string with delimiter ';'.- Parameters:
authenticationMethods- the authenticationMethods value to set.- Returns:
- the SmbSetting object itself.
-
kerberosTicketEncryption
Get the kerberosTicketEncryption property: Kerberos ticket encryption supported by server. Valid values are RC4-HMAC, AES-256. Should be passed as a string with delimiter ';'.- Returns:
- the kerberosTicketEncryption value.
-
withKerberosTicketEncryption
Set the kerberosTicketEncryption property: Kerberos ticket encryption supported by server. Valid values are RC4-HMAC, AES-256. Should be passed as a string with delimiter ';'.- Parameters:
kerberosTicketEncryption- the kerberosTicketEncryption value to set.- Returns:
- the SmbSetting object itself.
-
channelEncryption
Get the channelEncryption property: SMB channel encryption supported by server. Valid values are AES-128-CCM, AES-128-GCM, AES-256-GCM. Should be passed as a string with delimiter ';'.- Returns:
- the channelEncryption value.
-
withChannelEncryption
Set the channelEncryption property: SMB channel encryption supported by server. Valid values are AES-128-CCM, AES-128-GCM, AES-256-GCM. Should be passed as a string with delimiter ';'.- Parameters:
channelEncryption- the channelEncryption value to set.- Returns:
- the SmbSetting object itself.
-
encryptionInTransit
Get the encryptionInTransit property: Encryption in transit setting.- Returns:
- the encryptionInTransit value.
-
withEncryptionInTransit
Set the encryptionInTransit property: Encryption in transit setting.- Parameters:
encryptionInTransit- the encryptionInTransit value to set.- Returns:
- the SmbSetting object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<SmbSetting>- Throws:
IOException
-
fromJson
Reads an instance of SmbSetting from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of SmbSetting 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 SmbSetting.
-