Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
   * 
   * Licensed under the Apache License, Version 2.0 (the "License").
   * You may not use this file except in compliance with the License.
   * A copy of the License is located at
   * 
   *  http://aws.amazon.com/apache2.0
   * 
  * or in the "license" file accompanying this file. This file 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 com.amazonaws.services.route53domains.model;
 
 
Container for the parameters to the DeleteTagsForDomain operation.

This operation deletes the specified tags for a domain.

All tag operations are eventually consistent; subsequent operations may not immediately represent all issued operations.

 
 public class DeleteTagsForDomainRequest extends AmazonWebServiceRequest implements SerializableCloneable {

    
The domain for which you want to delete one or more tags.

The name of a domain.

Type: String

Default: None

Constraints: The domain name can contain only the letters a through z, the numbers 0 through 9, and hyphen (-). Hyphens are allowed only when they're surrounded by letters, numbers, or other hyphens. You can't specify a hyphen at the beginning or end of a label. To specify an Internationalized Domain Name, you must convert the name to Punycode.

Required: Yes

Constraints:
Length: 0 - 255
Pattern: [a-zA-Z0-9_\-.]*

 
     private String domainName;

    
A list of tag keys to delete.

Type: A list that contains the keys of the tags that you want to delete.

Default: None

Required: No'>

 
The domain for which you want to delete one or more tags.

The name of a domain.

Type: String

Default: None

Constraints: The domain name can contain only the letters a through z, the numbers 0 through 9, and hyphen (-). Hyphens are allowed only when they're surrounded by letters, numbers, or other hyphens. You can't specify a hyphen at the beginning or end of a label. To specify an Internationalized Domain Name, you must convert the name to Punycode.

Required: Yes

Constraints:
Length: 0 - 255
Pattern: [a-zA-Z0-9_\-.]*

Returns:
The domain for which you want to delete one or more tags.

The name of a domain.

Type: String

Default: None

Constraints: The domain name can contain only the letters a through z, the numbers 0 through 9, and hyphen (-). Hyphens are allowed only when they're surrounded by letters, numbers, or other hyphens. You can't specify a hyphen at the beginning or end of a label. To specify an Internationalized Domain Name, you must convert the name to Punycode.

Required: Yes

 
     public String getDomainName() {
         return ;
     }
    
    
The domain for which you want to delete one or more tags.

The name of a domain.

Type: String

Default: None

Constraints: The domain name can contain only the letters a through z, the numbers 0 through 9, and hyphen (-). Hyphens are allowed only when they're surrounded by letters, numbers, or other hyphens. You can't specify a hyphen at the beginning or end of a label. To specify an Internationalized Domain Name, you must convert the name to Punycode.

Required: Yes

Constraints:
Length: 0 - 255
Pattern: [a-zA-Z0-9_\-.]*

Parameters:
domainName The domain for which you want to delete one or more tags.

The name of a domain.

Type: String

Default: None

Constraints: The domain name can contain only the letters a through z, the numbers 0 through 9, and hyphen (-). Hyphens are allowed only when they're surrounded by letters, numbers, or other hyphens. You can't specify a hyphen at the beginning or end of a label. To specify an Internationalized Domain Name, you must convert the name to Punycode.

Required: Yes

    public void setDomainName(String domainName) {
        this. = domainName;
    }
    
    
The domain for which you want to delete one or more tags.

The name of a domain.

Type: String

Default: None

Constraints: The domain name can contain only the letters a through z, the numbers 0 through 9, and hyphen (-). Hyphens are allowed only when they're surrounded by letters, numbers, or other hyphens. You can't specify a hyphen at the beginning or end of a label. To specify an Internationalized Domain Name, you must convert the name to Punycode.

Required: Yes

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 0 - 255
Pattern: [a-zA-Z0-9_\-.]*

Parameters:
domainName The domain for which you want to delete one or more tags.

The name of a domain.

Type: String

Default: None

Constraints: The domain name can contain only the letters a through z, the numbers 0 through 9, and hyphen (-). Hyphens are allowed only when they're surrounded by letters, numbers, or other hyphens. You can't specify a hyphen at the beginning or end of a label. To specify an Internationalized Domain Name, you must convert the name to Punycode.

Required: Yes

Returns:
A reference to this updated object so that method calls can be chained together.
    public DeleteTagsForDomainRequest withDomainName(String domainName) {
        this. = domainName;
        return this;
    }

    
A list of tag keys to delete.

Type: A list that contains the keys of the tags that you want to delete.

Default: None

Required: No'>

Returns:
A list of tag keys to delete.

Type: A list that contains the keys of the tags that you want to delete.

Default: None

Required: No'>

    public java.util.List<StringgetTagsToDelete() {
        if ( == null) {
               = new com.amazonaws.internal.ListWithAutoConstructFlag<String>();
              .setAutoConstruct(true);
        }
        return ;
    }
    
    
A list of tag keys to delete.

Type: A list that contains the keys of the tags that you want to delete.

Default: None

Required: No'>

Parameters:
tagsToDelete A list of tag keys to delete.

Type: A list that contains the keys of the tags that you want to delete.

Default: None

Required: No'>

    public void setTagsToDelete(java.util.Collection<StringtagsToDelete) {
        if (tagsToDelete == null) {
            this. = null;
            return;
        }
        tagsToDeleteCopy.addAll(tagsToDelete);
        this. = tagsToDeleteCopy;
    }
    
    
A list of tag keys to delete.

Type: A list that contains the keys of the tags that you want to delete.

Default: None

Required: No'>

NOTE: This method appends the values to the existing list (if any). Use setTagsToDelete(java.util.Collection) or withTagsToDelete(java.util.Collection) if you want to override the existing values.

Returns a reference to this object so that method calls can be chained together.

Parameters:
tagsToDelete A list of tag keys to delete.

Type: A list that contains the keys of the tags that you want to delete.

Default: None

Required: No'>

Returns:
A reference to this updated object so that method calls can be chained together.
    public DeleteTagsForDomainRequest withTagsToDelete(String... tagsToDelete) {
        if (getTagsToDelete() == nullsetTagsToDelete(new java.util.ArrayList<String>(tagsToDelete.length));
        for (String value : tagsToDelete) {
            getTagsToDelete().add(value);
        }
        return this;
    }
    
    
A list of tag keys to delete.

Type: A list that contains the keys of the tags that you want to delete.

Default: None

Required: No'>

Returns a reference to this object so that method calls can be chained together.

Parameters:
tagsToDelete A list of tag keys to delete.

Type: A list that contains the keys of the tags that you want to delete.

Default: None

Required: No'>

Returns:
A reference to this updated object so that method calls can be chained together.
        if (tagsToDelete == null) {
            this. = null;
        } else {
            com.amazonaws.internal.ListWithAutoConstructFlag<StringtagsToDeleteCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<String>(tagsToDelete.size());
            tagsToDeleteCopy.addAll(tagsToDelete);
            this. = tagsToDeleteCopy;
        }
        return this;
    }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getDomainName() != nullsb.append("DomainName: " + getDomainName() + ",");
        if (getTagsToDelete() != nullsb.append("TagsToDelete: " + getTagsToDelete() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getDomainName() == null) ? 0 : getDomainName().hashCode()); 
        hashCode = prime * hashCode + ((getTagsToDelete() == null) ? 0 : getTagsToDelete().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof DeleteTagsForDomainRequest == falsereturn false;
        
        if (other.getDomainName() == null ^ this.getDomainName() == nullreturn false;
        if (other.getDomainName() != null && other.getDomainName().equals(this.getDomainName()) == falsereturn false
        if (other.getTagsToDelete() == null ^ this.getTagsToDelete() == nullreturn false;
        if (other.getTagsToDelete() != null && other.getTagsToDelete().equals(this.getTagsToDelete()) == falsereturn false
        return true;
    }
    
    @Override
    public DeleteTagsForDomainRequest clone() {
        
            return (DeleteTagsForDomainRequestsuper.clone();
    }
}
    
New to GrepCode? Check out our FAQ X