Class ApiKeysInner
- java.lang.Object
-
- com.azure.resourcemanager.cognitiveservices.fluent.models.ApiKeysInner
-
public final class ApiKeysInner extends Object
The access keys for the cognitive services account.
-
-
Constructor Summary
Constructors Constructor Description ApiKeysInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
key1()
Get the key1 property: Gets the value of key 1.String
key2()
Get the key2 property: Gets the value of key 2.void
validate()
Validates the instance.ApiKeysInner
withKey1(String key1)
Set the key1 property: Gets the value of key 1.ApiKeysInner
withKey2(String key2)
Set the key2 property: Gets the value of key 2.
-
-
-
Method Detail
-
key1
public String key1()
Get the key1 property: Gets the value of key 1.- Returns:
- the key1 value.
-
withKey1
public ApiKeysInner withKey1(String key1)
Set the key1 property: Gets the value of key 1.- Parameters:
key1
- the key1 value to set.- Returns:
- the ApiKeysInner object itself.
-
key2
public String key2()
Get the key2 property: Gets the value of key 2.- Returns:
- the key2 value.
-
withKey2
public ApiKeysInner withKey2(String key2)
Set the key2 property: Gets the value of key 2.- Parameters:
key2
- the key2 value to set.- Returns:
- the ApiKeysInner object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-