/** * <p> * A list of AWS account IDs that are associated with the registries for which to get authorization tokens. If you * do not specify a registry, the default registry is assumed. * </p> * * @param registryIds * A list of AWS account IDs that are associated with the registries for which to get authorization tokens. * If you do not specify a registry, the default registry is assumed. * @return Returns a reference to this object so that method calls can be chained together. */ public GetAuthorizationTokenRequest withRegistryIds(java.util.Collection<String> registryIds) { setRegistryIds(registryIds); return this; }
/** * <p> * A list of AWS account IDs that are associated with the registries for which to get authorization tokens. If you * do not specify a registry, the default registry is assumed. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setRegistryIds(java.util.Collection)} or {@link #withRegistryIds(java.util.Collection)} if you want to * override the existing values. * </p> * * @param registryIds * A list of AWS account IDs that are associated with the registries for which to get authorization tokens. * If you do not specify a registry, the default registry is assumed. * @return Returns a reference to this object so that method calls can be chained together. */ public GetAuthorizationTokenRequest withRegistryIds(String... registryIds) { if (this.registryIds == null) { setRegistryIds(new java.util.ArrayList<String>(registryIds.length)); } for (String ele : registryIds) { this.registryIds.add(ele); } return this; }
/** * <p> * A list of AWS account IDs that are associated with the registries for which to get authorization tokens. If you * do not specify a registry, the default registry is assumed. * </p> * * @param registryIds * A list of AWS account IDs that are associated with the registries for which to get authorization tokens. * If you do not specify a registry, the default registry is assumed. * @return Returns a reference to this object so that method calls can be chained together. */ public GetAuthorizationTokenRequest withRegistryIds(java.util.Collection<String> registryIds) { setRegistryIds(registryIds); return this; }
/** * <p> * A list of AWS account IDs that are associated with the registries for which to get authorization tokens. If you * do not specify a registry, the default registry is assumed. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setRegistryIds(java.util.Collection)} or {@link #withRegistryIds(java.util.Collection)} if you want to * override the existing values. * </p> * * @param registryIds * A list of AWS account IDs that are associated with the registries for which to get authorization tokens. * If you do not specify a registry, the default registry is assumed. * @return Returns a reference to this object so that method calls can be chained together. */ public GetAuthorizationTokenRequest withRegistryIds(String... registryIds) { if (this.registryIds == null) { setRegistryIds(new java.util.ArrayList<String>(registryIds.length)); } for (String ele : registryIds) { this.registryIds.add(ele); } return this; }