ResourceNamer Class
- java.
lang. Object - com.
microsoft. azure. management. resources. fluentcore. utils. ResourceNamer
- com.
public class ResourceNamer
The ResourceNamer to generate random name.
Constructor Summary
Constructor | Description |
---|---|
ResourceNamer(String name) |
Creates Resource |
Method Summary
Modifier and Type | Method and Description |
---|---|
org.joda.time.DateTime | dateTimeNow() |
java.lang.String |
randomName(String prefix, int maxLen)
Gets a random name. |
java.lang.String |
randomUuid()
Creates a random UUID. |
Methods inherited from java.lang.Object
java.lang.Object.clone
java.lang.Object.equals
java.lang.Object.finalize
java.lang.Object.getClass
java.lang.Object.hashCode
java.lang.Object.notify
java.lang.Object.notifyAll
java.lang.Object.toString
java.lang.Object.wait
java.lang.Object.wait
java.lang.Object.wait
Constructor Details
ResourceNamer
public ResourceNamer(String name)
Creates ResourceNamer.
Parameters:
name
- the randName
Method Details
dateTimeNow
public DateTime dateTimeNow()
Returns:
the current time.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for