public class RuleInfo
extends com.microsoft.windowsazure.services.serviceBus.implementation.EntryModel<com.microsoft.windowsazure.services.serviceBus.implementation.RuleDescription>
Constructor and Description |
---|
RuleInfo()
Creates an instance of the
RuleInfo class. |
RuleInfo(com.microsoft.windowsazure.services.serviceBus.implementation.Entry entry)
Creates an instance of the
RuleInfo class using the specified entry. |
RuleInfo(String name)
Creates an instance of the
RuleInfo class using the specified name. |
Modifier and Type | Method and Description |
---|---|
com.microsoft.windowsazure.services.serviceBus.implementation.RuleAction |
getAction()
Returns the rule action used for the rule.
|
Calendar |
getCreatedAt()
Gets the created at.
|
com.microsoft.windowsazure.services.serviceBus.implementation.Filter |
getFilter()
Returns the filter used for the rule.
|
String |
getName()
Returns the name of the rule.
|
String |
getTag()
Gets the tag.
|
RuleInfo |
setAction(com.microsoft.windowsazure.services.serviceBus.implementation.RuleAction value)
Specifies the rule action for the rule.
|
RuleInfo |
setCreatedAt(Calendar createdAt)
Sets the created at.
|
RuleInfo |
setFilter(com.microsoft.windowsazure.services.serviceBus.implementation.Filter value)
Specifies the filter used for the rule.
|
RuleInfo |
setName(String value)
Sets the name of the rule.
|
RuleInfo |
setTag(String tag)
Sets the tag.
|
RuleInfo |
withCorrelationIdFilter(String correlationId)
With correlation id filter.
|
RuleInfo |
withEmptyRuleAction()
With empty rule action.
|
RuleInfo |
withFalseFilter()
With false filter.
|
RuleInfo |
withSqlExpressionFilter(String sqlExpression)
With sql expression filter.
|
RuleInfo |
withSqlRuleAction(String sqlExpression)
With sql rule action.
|
RuleInfo |
withTrueFilter()
With true filter.
|
public RuleInfo()
RuleInfo
class.public RuleInfo(com.microsoft.windowsazure.services.serviceBus.implementation.Entry entry)
RuleInfo
class using the specified entry.entry
- An Entry
object.public RuleInfo(String name)
RuleInfo
class using the specified name.name
- A String
object that represents the name of the rule.public String getName()
String
object that represents the name of the rule.public RuleInfo setName(String value)
value
- A String
object that represents the name of the rule.RuleInfo
object that represents the updated rule.public com.microsoft.windowsazure.services.serviceBus.implementation.Filter getFilter()
Filter
object that represents the filter of the rule.public RuleInfo setFilter(com.microsoft.windowsazure.services.serviceBus.implementation.Filter value)
value
- A Filter
object that represents the filter of the rule.RuleInfo
object that represents the updated rule.public com.microsoft.windowsazure.services.serviceBus.implementation.RuleAction getAction()
RuleAction
object that represents the rule action.public RuleInfo setAction(com.microsoft.windowsazure.services.serviceBus.implementation.RuleAction value)
value
- A RuleAction
object that represents the rule action.RuleInfo
object that represents the updated rule.public RuleInfo withCorrelationIdFilter(String correlationId)
correlationId
- the correlation idRuleInfo
object that represents the updated rule.public RuleInfo withSqlExpressionFilter(String sqlExpression)
sqlExpression
- the sql expressionRuleInfo
object that represents the updated rule.public RuleInfo withTrueFilter()
RuleInfo
object that represents the updated rule.public RuleInfo withFalseFilter()
RuleInfo
object that represents the updated rule.public RuleInfo withEmptyRuleAction()
RuleInfo
object that represents the updated rule.public RuleInfo withSqlRuleAction(String sqlExpression)
sqlExpression
- A String
instance of the sql expression.RuleInfo
object that represents the updated rule.public RuleInfo setTag(String tag)
tag
- A String
instance representing the tag.RuleInfo
object that represents the updated rule.public String getTag()
String
instance representing the tag.public RuleInfo setCreatedAt(Calendar createdAt)
createdAt
- A Calendar> object which represents the time that the rule was created at.
RuleInfo
object that represents the updated rule.public Calendar getCreatedAt()
Calendar> object which represents the time that the rule was created at.
/**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/