/** * Creates or finds a KeySource from its string representation. * @param name a name to look for * @return the corresponding KeySource */ @JsonCreator public static KeySource fromString(String name) { return fromString(name, KeySource.class); }
/** * @return known KeySource values */ public static Collection<KeySource> values() { return values(KeySource.class); } }
/** * Gets the encryption key source. * * @param inner the storage account * @return the encryption key source type */ static StorageAccountEncryptionKeySource encryptionKeySource(StorageAccountInner inner) { if (inner.encryption() == null || inner.encryption().keySource() == null) { return null; } return StorageAccountEncryptionKeySource.fromString(inner.encryption().keySource().toString()); }
/** * Gets the encryption key source. * * @param inner the storage account * @return the encryption key source type */ static StorageAccountEncryptionKeySource encryptionKeySource(StorageAccountInner inner) { if (inner.encryption() == null || inner.encryption().keySource() == null) { return null; } return StorageAccountEncryptionKeySource.fromString(inner.encryption().keySource().toString()); }
/** * Creates or finds a KeySource from its string representation. * @param name a name to look for * @return the corresponding KeySource */ @JsonCreator public static KeySource fromString(String name) { return fromString(name, KeySource.class); }
/** * @return known KeySource values */ public static Collection<KeySource> values() { return values(KeySource.class); } }