本文整理了Java中com.amazonaws.services.ec2.model.DescribeSecurityGroupsRequest.getGroupNames()
方法的一些代码示例,展示了DescribeSecurityGroupsRequest.getGroupNames()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DescribeSecurityGroupsRequest.getGroupNames()
方法的具体详情如下:
包路径:com.amazonaws.services.ec2.model.DescribeSecurityGroupsRequest
类名称:DescribeSecurityGroupsRequest
方法名:getGroupNames
[英][EC2-Classic and default VPC only] One or more security group names. You can specify either the security group name or the security group ID. For security groups in a nondefault VPC, use the group-name
filter to describe security groups by name.
Default: Describes all your security groups.
[中][仅限EC2经典和默认VPC]一个或多个安全组名称。您可以指定安全组名称或安全组ID。对于非默认VPC中的安全组,请使用group-name
筛选器按名称描述安全组。
默认值:描述所有安全组。
代码示例来源:origin: aws/aws-sdk-java
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getFilters() == null) ? 0 : getFilters().hashCode());
hashCode = prime * hashCode + ((getGroupIds() == null) ? 0 : getGroupIds().hashCode());
hashCode = prime * hashCode + ((getGroupNames() == null) ? 0 : getGroupNames().hashCode());
hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode());
hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode());
return hashCode;
}
代码示例来源:origin: aws/aws-sdk-java
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getFilters() != null)
sb.append("Filters: ").append(getFilters()).append(",");
if (getGroupIds() != null)
sb.append("GroupIds: ").append(getGroupIds()).append(",");
if (getGroupNames() != null)
sb.append("GroupNames: ").append(getGroupNames()).append(",");
if (getNextToken() != null)
sb.append("NextToken: ").append(getNextToken()).append(",");
if (getMaxResults() != null)
sb.append("MaxResults: ").append(getMaxResults());
sb.append("}");
return sb.toString();
}
代码示例来源:origin: aws/aws-sdk-java
if (other.getGroupIds() != null && other.getGroupIds().equals(this.getGroupIds()) == false)
return false;
if (other.getGroupNames() == null ^ this.getGroupNames() == null)
return false;
if (other.getGroupNames() != null && other.getGroupNames().equals(this.getGroupNames()) == false)
return false;
if (other.getNextToken() == null ^ this.getNextToken() == null)
代码示例来源:origin: aws-amplify/aws-sdk-android
Default: Describes all your security groups. Default: Describes all your security groups./**
* [EC2-Classic and default VPC only] One or more security group names.
* You can specify either the security group name or the security group
* ID. For security groups in a nondefault VPC, use the
* group-name
filter to describe security groups by name.
*
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param groupNames [EC2-Classic and default VPC only] One or more security group names.
* You can specify either the security group name or the security group
* ID. For security groups in a nondefault VPC, use the
* group-name
filter to describe security groups by name.
*
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public DescribeSecurityGroupsRequest withGroupNames(String... groupNames) {
if (getGroupNames() == null) setGroupNames(new java.util.ArrayList
for (String value : groupNames) {
getGroupNames().add(value);
}
return this;
}
代码示例来源:origin: aws-amplify/aws-sdk-android
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getGroupNames() == null) ? 0 : getGroupNames().hashCode());
hashCode = prime * hashCode + ((getGroupIds() == null) ? 0 : getGroupIds().hashCode());
hashCode = prime * hashCode + ((getFilters() == null) ? 0 : getFilters().hashCode());
return hashCode;
}
代码示例来源:origin: aws-amplify/aws-sdk-android
/**
* Returns a string representation of this object; useful for testing and
* debugging.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getGroupNames() != null) sb.append("GroupNames: " + getGroupNames() + ",");
if (getGroupIds() != null) sb.append("GroupIds: " + getGroupIds() + ",");
if (getFilters() != null) sb.append("Filters: " + getFilters() );
sb.append("}");
return sb.toString();
}
代码示例来源:origin: aws-amplify/aws-sdk-android
@Override
public boolean equals(Object obj) {
if (this == obj) return true;
if (obj == null) return false;
if (obj instanceof DescribeSecurityGroupsRequest == false) return false;
DescribeSecurityGroupsRequest other = (DescribeSecurityGroupsRequest)obj;
if (other.getGroupNames() == null ^ this.getGroupNames() == null) return false;
if (other.getGroupNames() != null && other.getGroupNames().equals(this.getGroupNames()) == false) return false;
if (other.getGroupIds() == null ^ this.getGroupIds() == null) return false;
if (other.getGroupIds() != null && other.getGroupIds().equals(this.getGroupIds()) == false) return false;
if (other.getFilters() == null ^ this.getFilters() == null) return false;
if (other.getFilters() != null && other.getFilters().equals(this.getFilters()) == false) return false;
return true;
}
代码示例来源:origin: aws/aws-sdk-java
.getGroupNames();
if (!describeSecurityGroupsRequestGroupNamesList.isEmpty() || !describeSecurityGroupsRequestGroupNamesList.isAutoConstruct()) {
int groupNamesListIndex = 1;
代码示例来源:origin: aws-amplify/aws-sdk-android
request.addParameter("Version", "2015-10-01");
java.util.List
int groupNamesListIndex = 1;
代码示例来源:origin: com.amazonaws/aws-java-sdk-ec2
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getFilters() == null) ? 0 : getFilters().hashCode());
hashCode = prime * hashCode + ((getGroupIds() == null) ? 0 : getGroupIds().hashCode());
hashCode = prime * hashCode + ((getGroupNames() == null) ? 0 : getGroupNames().hashCode());
hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode());
hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode());
return hashCode;
}
代码示例来源:origin: com.amazonaws/aws-java-sdk-ec2
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getFilters() != null)
sb.append("Filters: ").append(getFilters()).append(",");
if (getGroupIds() != null)
sb.append("GroupIds: ").append(getGroupIds()).append(",");
if (getGroupNames() != null)
sb.append("GroupNames: ").append(getGroupNames()).append(",");
if (getNextToken() != null)
sb.append("NextToken: ").append(getNextToken()).append(",");
if (getMaxResults() != null)
sb.append("MaxResults: ").append(getMaxResults());
sb.append("}");
return sb.toString();
}
代码示例来源:origin: com.amazonaws/aws-java-sdk-ec2
if (other.getGroupIds() != null && other.getGroupIds().equals(this.getGroupIds()) == false)
return false;
if (other.getGroupNames() == null ^ this.getGroupNames() == null)
return false;
if (other.getGroupNames() != null && other.getGroupNames().equals(this.getGroupNames()) == false)
return false;
if (other.getNextToken() == null ^ this.getNextToken() == null)
代码示例来源:origin: com.amazonaws/aws-java-sdk-ec2
.getGroupNames();
if (!describeSecurityGroupsRequestGroupNamesList.isEmpty() || !describeSecurityGroupsRequestGroupNamesList.isAutoConstruct()) {
int groupNamesListIndex = 1;