Share via


ResourceNamer Class

  • java.lang.Object
    • com.microsoft.azure.management.resources.fluentcore.utils.ResourceNamer

public class ResourceNamer

The ResourceNamer to generate random name.

Constructor Summary

Constructor Description
ResourceNamer(String name)

Creates ResourceNamer.

Method Summary

Modifier and Type Method and Description
String randomName(String prefix, int maxLen)

Gets a random name.

String randomUuid()

Creates a random UUID.

Constructor Details

ResourceNamer

public ResourceNamer(String name)

Creates ResourceNamer.

Parameters:

name - the randName

Method Details

randomName

public String randomName(String prefix, int maxLen)

Gets a random name.

Parameters:

prefix - the prefix to be used if possible
maxLen - the max length for the random generated name

Returns:

the random name

randomUuid

public String randomUuid()

Creates a random UUID.

Returns:

the UUID string.

Applies to