本文整理了Java中com.amazonaws.services.ec2.model.Filter.setName()
方法的一些代码示例,展示了Filter.setName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Filter.setName()
方法的具体详情如下:
包路径:com.amazonaws.services.ec2.model.Filter
类名称:Filter
方法名:setName
[英]The name of the filter. Filter names are case-sensitive.
[中]筛选器的名称。筛选器名称区分大小写。
代码示例来源:origin: aws/aws-sdk-java
/**
* Constructs a new Filter object. Callers should use the setter or fluent setter (with...) methods to initialize
* any additional object members.
*
* @param name
* The name of the filter. Filter names are case-sensitive.
*/
public Filter(String name) {
setName(name);
}
代码示例来源:origin: aws/aws-sdk-java
/**
* <p>
* The name of the filter. Filter names are case-sensitive.
* </p>
*
* @param name
* The name of the filter. Filter names are case-sensitive.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Filter withName(String name) {
setName(name);
return this;
}
代码示例来源:origin: aws/aws-sdk-java
/**
* Constructs a new Filter object. Callers should use the setter or fluent setter (with...) methods to initialize
* any additional object members.
*
* @param name
* The name of the filter. Filter names are case-sensitive.
* @param values
* One or more filter values. Filter values are case-sensitive.
*/
public Filter(String name, java.util.List<String> values) {
setName(name);
setValues(values);
}
代码示例来源:origin: aws-amplify/aws-sdk-android
/**
* Constructs a new Filter object.
* Callers should use the setter or fluent setter (with...) methods to
* initialize any additional object members.
*
* @param name The name of the filter. Filter names are case-sensitive.
*/
public Filter(String name) {
setName(name);
}
代码示例来源:origin: aws/aws-sdk-java
public Filter unmarshall(StaxUnmarshallerContext context) throws Exception {
Filter filter = new Filter();
int originalDepth = context.getCurrentDepth();
int targetDepth = originalDepth + 1;
if (context.isStartOfDocument())
targetDepth += 1;
while (true) {
XMLEvent xmlEvent = context.nextEvent();
if (xmlEvent.isEndDocument())
return filter;
if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) {
if (context.testExpression("Name", targetDepth)) {
filter.setName(StringStaxUnmarshaller.getInstance().unmarshall(context));
continue;
}
if (context.testExpression("Value", targetDepth)) {
filter.withValues(new ArrayList<String>());
continue;
}
if (context.testExpression("Value/item", targetDepth)) {
filter.withValues(StringStaxUnmarshaller.getInstance().unmarshall(context));
continue;
}
} else if (xmlEvent.isEndElement()) {
if (context.getCurrentDepth() < originalDepth) {
return filter;
}
}
}
}
代码示例来源:origin: aws-amplify/aws-sdk-android
/**
* Constructs a new Filter object.
* Callers should use the setter or fluent setter (with...) methods to
* initialize any additional object members.
*
* @param name The name of the filter. Filter names are case-sensitive.
* @param values One or more filter values. Filter values are
* case-sensitive.
*/
public Filter(String name, java.util.List<String> values) {
setName(name);
setValues(values);
}
代码示例来源:origin: com.amazonaws/aws-java-sdk-ec2
/**
* Constructs a new Filter object. Callers should use the setter or fluent setter (with...) methods to initialize
* any additional object members.
*
* @param name
* The name of the filter. Filter names are case-sensitive.
*/
public Filter(String name) {
setName(name);
}
代码示例来源:origin: com.amazonaws/aws-java-sdk-ec2
/**
* <p>
* The name of the filter. Filter names are case-sensitive.
* </p>
*
* @param name
* The name of the filter. Filter names are case-sensitive.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Filter withName(String name) {
setName(name);
return this;
}
代码示例来源:origin: com.amazonaws/aws-java-sdk-ec2
/**
* Constructs a new Filter object. Callers should use the setter or fluent setter (with...) methods to initialize
* any additional object members.
*
* @param name
* The name of the filter. Filter names are case-sensitive.
* @param values
* One or more filter values. Filter values are case-sensitive.
*/
public Filter(String name, java.util.List<String> values) {
setName(name);
setValues(values);
}
代码示例来源:origin: tmobile/pacbot
public static Filter setFilters(String filterName, String filterValue) {
Filter filter = new Filter();
filter.setName(filterName);
filter.setValues(Arrays.asList(filterValue));
return filter;
}
代码示例来源:origin: tmobile/pacbot
filter.setName(PacmanRuleConstants.RESOURCE_NAME);
filter.setValues(Arrays.asList(entityId));
describeFlowLogsRequest.setFilter(Arrays.asList(filter));
代码示例来源:origin: com.amazonaws/aws-java-sdk-ec2
public Filter unmarshall(StaxUnmarshallerContext context) throws Exception {
Filter filter = new Filter();
int originalDepth = context.getCurrentDepth();
int targetDepth = originalDepth + 1;
if (context.isStartOfDocument())
targetDepth += 1;
while (true) {
XMLEvent xmlEvent = context.nextEvent();
if (xmlEvent.isEndDocument())
return filter;
if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) {
if (context.testExpression("Name", targetDepth)) {
filter.setName(StringStaxUnmarshaller.getInstance().unmarshall(context));
continue;
}
if (context.testExpression("Value", targetDepth)) {
filter.withValues(new ArrayList<String>());
continue;
}
if (context.testExpression("Value/item", targetDepth)) {
filter.withValues(StringStaxUnmarshaller.getInstance().unmarshall(context));
continue;
}
} else if (xmlEvent.isEndElement()) {
if (context.getCurrentDepth() < originalDepth) {
return filter;
}
}
}
}
内容来源于网络,如有侵权,请联系作者删除!