/** * <p> * Policies that don't contain a matching allow or deny statement for the specified action on the specified * resource. * </p> * * @param policies * Policies that don't contain a matching allow or deny statement for the specified action on the specified * resource. * @return Returns a reference to this object so that method calls can be chained together. */ public ImplicitDeny withPolicies(java.util.Collection<Policy> policies) { setPolicies(policies); return this; }
/** * <p> * Policies that don't contain a matching allow or deny statement for the specified action on the specified * resource. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setPolicies(java.util.Collection)} or {@link #withPolicies(java.util.Collection)} if you want to override * the existing values. * </p> * * @param policies * Policies that don't contain a matching allow or deny statement for the specified action on the specified * resource. * @return Returns a reference to this object so that method calls can be chained together. */ public ImplicitDeny withPolicies(Policy... policies) { if (this.policies == null) { setPolicies(new java.util.ArrayList<Policy>(policies.length)); } for (Policy ele : policies) { this.policies.add(ele); } return this; }
public ImplicitDeny unmarshall(JsonUnmarshallerContext context) throws Exception { ImplicitDeny implicitDeny = new ImplicitDeny(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (token == VALUE_NULL) { return null; } while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("policies", targetDepth)) { context.nextToken(); implicitDeny.setPolicies(new ListUnmarshaller<Policy>(PolicyJsonUnmarshaller.getInstance()).unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; } } token = context.nextToken(); } return implicitDeny; }
/** * <p> * Policies that don't contain a matching allow or deny statement for the * specified action on the specified resource. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param policies <p> * Policies that don't contain a matching allow or deny statement * for the specified action on the specified resource. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public ImplicitDeny withPolicies(java.util.Collection<Policy> policies) { setPolicies(policies); return this; }
public ImplicitDeny unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } ImplicitDeny implicitDeny = new ImplicitDeny(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("policies")) { implicitDeny.setPolicies(new ListUnmarshaller<Policy>(PolicyJsonUnmarshaller .getInstance() ) .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return implicitDeny; }
/** * <p> * Policies that don't contain a matching allow or deny statement for the specified action on the specified * resource. * </p> * * @param policies * Policies that don't contain a matching allow or deny statement for the specified action on the specified * resource. * @return Returns a reference to this object so that method calls can be chained together. */ public ImplicitDeny withPolicies(java.util.Collection<Policy> policies) { setPolicies(policies); return this; }
/** * <p> * Policies that don't contain a matching allow or deny statement for the * specified action on the specified resource. * </p> * <p> * Returns a reference to this object so that method calls can be chained * together. * * @param policies <p> * Policies that don't contain a matching allow or deny statement * for the specified action on the specified resource. * </p> * @return A reference to this updated object so that method calls can be * chained together. */ public ImplicitDeny withPolicies(java.util.Collection<Policy> policies) { setPolicies(policies); return this; }
/** * <p> * Policies that don't contain a matching allow or deny statement for the specified action on the specified * resource. * </p> * <p> * <b>NOTE:</b> This method appends the values to the existing list (if any). Use * {@link #setPolicies(java.util.Collection)} or {@link #withPolicies(java.util.Collection)} if you want to override * the existing values. * </p> * * @param policies * Policies that don't contain a matching allow or deny statement for the specified action on the specified * resource. * @return Returns a reference to this object so that method calls can be chained together. */ public ImplicitDeny withPolicies(Policy... policies) { if (this.policies == null) { setPolicies(new java.util.ArrayList<Policy>(policies.length)); } for (Policy ele : policies) { this.policies.add(ele); } return this; }
public ImplicitDeny unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } ImplicitDeny implicitDeny = new ImplicitDeny(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("policies")) { implicitDeny.setPolicies(new ListUnmarshaller<Policy>(PolicyJsonUnmarshaller .getInstance() ) .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return implicitDeny; }
public ImplicitDeny unmarshall(JsonUnmarshallerContext context) throws Exception { ImplicitDeny implicitDeny = new ImplicitDeny(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (token == VALUE_NULL) { return null; } while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("policies", targetDepth)) { context.nextToken(); implicitDeny.setPolicies(new ListUnmarshaller<Policy>(PolicyJsonUnmarshaller.getInstance()).unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; } } token = context.nextToken(); } return implicitDeny; }