forked from Azure/azure-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplifying the policy definition flow and some clean up
- Loading branch information
Showing
36 changed files
with
399 additions
and
257 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
.../src/main/java/com/microsoft/azure/management/servicebus/CheckNameAvailabilityResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/** | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for | ||
* license information. | ||
*/ | ||
|
||
package com.microsoft.azure.management.servicebus; | ||
|
||
import com.microsoft.azure.management.servicebus.implementation.CheckNameAvailabilityResultInner; | ||
|
||
/** | ||
* The {@link com.microsoft.azure.management.servicebus.Namespaces#checkNameAvailability} action result. | ||
*/ | ||
public class CheckNameAvailabilityResult { | ||
private CheckNameAvailabilityResultInner inner; | ||
/** | ||
* Creates an instance of the check name availability result object. | ||
* | ||
* @param inner the inner object | ||
*/ | ||
public CheckNameAvailabilityResult(CheckNameAvailabilityResultInner inner) { | ||
this.inner = inner; | ||
} | ||
/** | ||
* @return a boolean value that indicates whether the name is available for | ||
* you to use. If true, the name is available. If false, the name has | ||
* already been taken or invalid and cannot be used. | ||
*/ | ||
public boolean isAvailable() { | ||
return inner.nameAvailable(); | ||
} | ||
/** | ||
* @return the reason that a namespace name could not be used. The | ||
* Reason element is only returned if NameAvailable is false. Possible | ||
* values include: 'AccountNameInvalid', 'AlreadyExists'. | ||
*/ | ||
public UnavailableReason reason() { | ||
return inner.reason(); | ||
} | ||
/** | ||
* @return an error message explaining the Reason value in more detail | ||
*/ | ||
public String message() { | ||
return inner.message(); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.