Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Licensed to jclouds, Inc. (jclouds) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. jclouds licenses this file to you 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 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.
 package org.jclouds.elb.domain;
 import static;
The security group that you can use as part of your inbound rules for your LoadBalancer's back-end Amazon EC2 application instances. To only allow traffic from LoadBalancers, add a security group rule to your back end instance that specifies this source security group as the inbound source.

Adrian Cole
See also:
 public class SecurityGroupAndOwner {
    public static Builder builder() {
       return new Builder();
    public Builder toBuilder() {
       return builder().fromSourceSecurityGroup(this);
    public static class Builder {
       protected String name;
       protected String owner;

       public Builder name(String name) {
          this. = name;
          return this;

       public Builder owner(String owner) {
          this. = owner;
          return this;
       public SecurityGroupAndOwner build() {
          return new SecurityGroupAndOwner();
    protected final String name;
    protected final String owner;
    protected SecurityGroupAndOwner(String nameString owner) {
       this. = checkNotNull(name"name");
       this. = checkNotNull(owner"owner");

Name of the source security group.
    public String getName() {
       return ;

Owner of the source security group.
    public String getOwner() {
       return ;

   public int hashCode() {
      return Objects.hashCode();

   public boolean equals(Object obj) {
      if (this == obj)
         return true;
      if (obj == null)
         return false;
      if (getClass() != obj.getClass())
         return false;
      SecurityGroupAndOwner other = (SecurityGroupAndOwnerobj;
      return Objects.equal( && Objects.equal(this.other.owner);

   public String toString() {
      return Objects.toStringHelper(this).omitNullValues().add("name").add("owner").toString();
New to GrepCode? Check out our FAQ X